Thanks, In that case how to map the I/Os at plc side. any manuals available??
The I/O data is embedded in the module defined tags that are created when you put the I/O modules into the configuration...
Example : You put an Input module in slot 2, it will create two tags Local:2:C and Local:2:I.
The "C" tag contains module configuration that is downloaded to the module when the "connection" is established.
The "I" tag contains a 32-bit DINT member (.Data) that is the data from the 32 inputs. If only 16-bit module is used, then the lowest 16-bits of the DINT member is used.
For an output module it creates 3 tags - example Local:3:C, Local:3:O, and Local:3:I.
"C" tag is module configuration.
"I" tag is module and channel status data
"O" tag contains the .Data element, again that's a 32-bit DINT.
For mapping you could simply copy these DINT elements into/out of DINT arrays for communication with the DCS.