Structures

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. In that case, corresponding members of all declared variables having this structure type will be initialized with the initial value of the member.

To specify a member of a structured variable in PLCClosed "Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events languages, use the following 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