22 LABELS
22.6 Structures
381
22
22.6
Structures
A structure is a data type containing one or more labels and can be used in all POUs.
Members (labels) included in a structure can be defined even when their data types are different.
Creating structures
To create a structure, first define the structure, and then define members in the structure.
How to use structures
To use a structure, register a label using the defined structure as the data type.
To specify each member in a structure, add the member name after the structure label name with a period '.' as a delimiter in
between.
Ex.
Specifying a member in the structure
• When labels are registered by defining multiple data types in a structure and used in a program, the order
the data is stored after operation is not the order the data types were defined. When programs are
converted using the engineering tool, labels are classified into type and data type, and then assigned to the
memory (memory assignment by packing blocks).
GX Works3 Operating Manual
• If the label of a structure is specified for an instruction that uses control data (a group of operands that
determines operation of the instruction), the labels are not assigned in the order defined by packing blocks.
·
Member (label 1)
Member (label 2)
Member (label 3)
Member (label 4)
Structure
stLabel1 . bLabel1
Structure label name
Member name
Summary of Contents for MELSEC iQ-R-R00CPU
Page 2: ......
Page 151: ...9 MONITOR FUNCTION 9 1 Real Time Monitor Function 149 9 MEMO ...
Page 323: ...18 SEQUENCE SCAN SYNCHRONIZATION SAMPLING FUNCTION 321 18 MEMO ...
Page 330: ...328 20 ROUTING SETTING 20 3 Precautions MEMO ...
Page 423: ...26 BASIC CONCEPT 26 8 State Transition of the Redundant System 421 26 MEMO ...
Page 1014: ...1012 APPX Appendix 15 Added and Enhanced Functions MEMO ...
Page 1027: ......