Structure

Structure definitions are extended data types for process variable definitions.

Process variables provide various methods of accessing PLC data:

  • Single access (primitive data types)

    • A request for a process variable value triggers a protocol call between communication component and PLC. In extensive applications, data transfer between PLC and the PC often is a bottleneck. Each read/write access to the PLC memory requires a frame protocol.

  • Block-by-block access (arrays of primitive data types)

    • This type of access transfers data blocks that contain data cells of the data type of the process variable. The advantage is that transmitting the complete data block does not require but one frame protocol.

  • Extended block-by-block access (structures)

    • This type of access transfers data blocks, too. The variables server divides a data block into single process variables that match the assigned structure definition. While an array can only include data of the same data type (e.g. VT_I4), a structure can contain data cells of various data types (VT_I2, VT_I4, VT_R4, etc.).

Parameters

Parameter name

Description of the

Comment

Optional comment on the definition.

Name

Name of the definition.

Order number as byte offset

The order number of the structure elements is either interpreted as byte offset or as order number.

Related topics: