Structures - Mitsubishi Electric MELSEC iQ-R Series User Manual

Process cpu module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

28.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.
Structure
Member (label 1)
Member (label 2)
Member (label 3)
Member (label 4)
·
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
stLabel1 . bLabel1
Member name
Structure label name
• 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.
28 LABELS
504
28.6 Structures

Advertisement

Table of Contents
loading

Table of Contents