IBH OPC UA:Consistent Reading/Writing arrays and structures

From IBHsoftec Wiki English
Jump to: navigation, search

Consistent Reading/Writing arrays and structures from data blocks

Arrays und Structures within data blocks

Simple arrays and structures are displayed as a variable with all values. This is only possible as long as the structure does not contain further substructures (i.e. the last Level), otherwise it will be displayed as a directory:


IBH Link UA DB Structure Simple.png


Sample of a data block created with TIA Portal:


IBH Link UA DB Structure Array.png


Reading the Variable: Consistent

Data can only be read consistently from a PLC if all the data of a structure fits in a telegram (PDU size).


The telegram size can be different. If a structure can be read or written consistently, the value of the variable 'Consistent' will be set to 'true' . As long the structure or size of the CPU does not change, the value of the variable will not change. That means the value must be evaluated only once during commissioning.


IBH Link UA DB Structure Array Client.png


Data can only be read consistently from a PLC, if all the data of a structure fits in a telegram (PDU size). This allows the OPC UA client very confortable and safe to check the consistency of the data.