Floating point conversion IEEE-S5/S7

The structure of process values in the PLC is individual for each PLC type. This means that individual data types may be structured differently. When exchanging individual process variable values, the adaptation for visualisation is usually carried out by the communication component.

If a structure is used to access PLC data block by block (via a process variable that has the data type of a structure) as a byte stream ( structure access parameter (OPC)), the communication component can no longer carry out this adaptation as it is not informed about the structure of the byte block. This adaptation must therefore be carried out in the variable server.

The floating point conversion IEEE-S5/S7 parameter causes structure elements of data type VT_R4/VT_R8 in a transmitted byte block to be converted into a valid format.

Setting

Description of the

1

When reading from the PLC, a byte block is requested from the variable server via the communication component. The internal process variable cache is filled with the bytes of the received block according to the structure of the structure. If an addressed structure element is of data type VT_R4 /VT_R8, the floating point number is converted from the PLC-specific IEEE format into a format that can be understood by the visualisation.

When writing, a byte block is compiled from the internal process variable cache according to the structure specifications. The variable server checks whether a structure element has the data type VT_R4/VT_R8. If this is the case, the value from the internal process variable cache is converted into the PLC-specific IEEE format. The block is then transferred to the PLC.

0

When reading from the PLC, a byte block is requested from the variable server via the communication component. The internal process variable cache is filled with the bytes of the received block without any further adjustments according to the structure.

When writing, a byte block is compiled from the internal process variable cache according to the structure specifications. This block is then transferred directly to the PLC.

The use of this parameter depends on the PLC used and only makes sense if:

  • the parameter Structure access is set to As byte stream and
  • structures can be used as data types for process variables.

Further customisation options for this type of access:

Parameters for module: