Description of the TwinCAT-OPC-Server XML configuration
Schemes
Namespace
Devices
Device <see Device-Parameters>
Device <see Device-Parameters>
SimulationSignals
Simulation <see Signal-Parameters>
Simulation <see Signal-Parameters>
Simulation <see Signal-Parameters>
Simulation <see Signal-Parameters>
...
Conversions
Conversion <see Conversion-Parameters>
Conversion <see Conversion-Parameters>
Conversion <see Conversion-Parameters>
Conversion <see Conversion-Parameters>
...
Device-Parameters
Device-Parameters
Type | Req./Opt. | Description |
---|---|---|
Name | Req | Name for device like "PLC1". OPC-Client browse this name. |
Description | Optional |
|
AdsPort | Req | Number of ADS-PortID, like 801 for first PLC-runtime system. |
AdsNetId | Optional | specific ADS-NetId, like "174.12.15.45.1.1" If not specified or like "0.0.0.0.0.0", the OPC-Server will always communicate to AdsNetId of local ADS-router. |
AdsTimeout | Optional | ADS timeout in ms for this ADS device |
AdsTimeSuspend | Optional | ADS suspend time in ms for this ADS device, if the ads communication fails. |
AutoCfg | Optional | 0 : do not include symbol-file defined under <AutoCfgSymFile> 8 : Include tpy-file of TwinCAT28-project defined under <AutoCfgSymFile>, but import only symbols with symbol-property "OPC=1" |
AutoCfgSymFile | Optional | full path and name of symbol-file to be included like |
Signal-Parameters
Signal-Parameters
Type | Req./Opt. | Description |
---|---|---|
SignalID | Req | unique ID-number which identifies this simulation-signal |
SignalDesc | Optional |
|
SignalType | Req | 0 : Read Count 1 : Write Count Read Count : incremented by one every time when the item is read Write Count : incremented by one every time when the item is written Random: generates random value within the Amplitude range starting with Position Ramp, Sine, Square, Triangle, Step: (periodical signals) Their time behavior is influenced by Period and Phase parameters. Period specifies the signal frequency, while Phase moves the signal origin on the time axis Square and Triangle signal types have one more parameter: Ratio. Ratio defines Triangle signal steepness, or Square signal H/L proportions. NumSteps parameter of the Step signal defines a number of steps signal amplitude will be divided into. |
NumSteps | Optional, depends on <SignalType> |
|
Amplitude | Optional, depends on <SignalType> |
|
Period | Optional, depends on <SignalType> |
|
Phase | Optional, depends on <SignalType> |
|
Position | Optional, depends on <SignalType> |
|
Ratio | Optional, depends on <SignalType> |
|
Conversion-Parameters
Conversion-Parameters
Type | Req./Opt. | Description |
---|---|---|
ConversionID | Req | unique ID-number which identifies this conversion |
ConversionDesc | Optional |
|
ConversionType | Req | 0 : NoConversion |
Clamping | Optional | 0 : No clamping 1 : Clamp on EU If clamping is active, the data value will be limited to its High clamp/EU value, when it exceeds the upper limit, and similarly with Low clamp parameter. |
HighClamp | Optional, depends on <ConversionType>/<Clamping> | 1.0 (Default) |
LowClamp | Optional, depends on <ConversionType>/<Clamping> | 0.0 (Default) |
HighEU | Optional, depends on <ConversionType>/<Clamping> | engineering unit (client scale) 1.0 (Default) |
LowEU | Optional, depends on <ConversionType>/<Clamping> | engineering unit (client scale) 0.0 (Default) |
HighIR | Optional, depends on <ConversionType>/<Clamping> | instrument range (device scale) 10000 (Default) |
LowIR | Optional, depends on <ConversionType>/<Clamping> | instrument range (device scale) 0 (Default) |