EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R-R6SFM - Structures

Mitsubishi Electric MELSEC iQ-R-R6SFM
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals