Structure

A structure is a complex data type defined as a set of members.

  • Members of a structure can have various data types.
    • A member of a structure can have dimensions or can be an instance of another structure.
  • When a structure is defined, it can be used like other data types to declare variables.
  • Members of a structure can have an initial value.
    • Corresponding members of all declared variables having this structure type are initialized with the initial value of the member.
  • To specify a member of a structured variable in PLC languages, use this notation:
    VariableName.MemberName

Limitation

If a member of a structure is an instance of another structure, the nested structure must be declared BEFORE in the list.

Concept Link IconSee Also