The configuration of individual channels of an IO module can be specified in the Channels section of the IoConfiguration of the module configuration.
Under IoConfiguration, you can provide a configuration for one or more channels under both Inputs (for input channels) and Outputs (for output channels).
- A channel is identified via the channel
Number. - For each channel, you can specify parameters in the channel's
Parameterslist. - Which parameters are available depends on the type of module you are configuring.
The following example shows the configuration for an analog input and an analog output module:
{
"Modules": [
{
"Name": "Analog_Input",
"TypeIdentifier": {
"OrderNumber": "6ES7 531-7KF00-0AB0",
"Version": "V2.2"
},
"IoConfiguration": {
"InputAddress": "10",
"Inputs": {
"Channels": [
{
"Number": 0,
"Parameters": {
"OperatingType": 10,
"OperatingRange": 20,
"TemperatureUnit": 1,
"DiagnosticsReferenceJunction": true,
"DiagnosticsWireBreak": true,
"Smoothing": 0
}
},
{
"Number": 1,
"Parameters": {
"OperatingType": 10,
"Smoothing": 2
}
},
{
"Number": 3,
"Parameters": {
"OperatingType": 0
}
}
]
}
}
},
{
"Name": "Analog_Output",
"TypeIdentifier": {
"OrderNumber": "6ES7 532-5HF00-0AB0",
"Version": "V2.2"
},
"IoConfiguration": {
"OutputAddress": "10",
"Outputs": {
"Channels": [
{
"Number": 1,
"Parameters": {
"ReactionToCpuStop": 1,
"DiagnosticsUnderflow": true
}
},
{
"Number": 2,
"Parameters": {
"ReactionToCpuStop": 1,
"DiagnosticsUnderflow": true
}
}
]
}
}
}
]
}