Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual page 384

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

Structure arrays
A structure can also be used as an array.
Structure label [1]
Member (label 1)
Member (label 2)
Member (label 3)
Member (label 4)
·
When a structure is declared as an array, add an index enclosed by '[ ]' after the structure label name.
A structure array can also be specified as an argument of a function or function block.
Ex.
Specifying an element of a structure declared as an array
stLabel [0] . bLabel1
Member name
Index
Structure label name
Data types that can be specified
The following data types can be specified as structure members.
• Primitive data type
• Pointer type
• Array
• Other structures
Types of structures
Each of the following labels is predefined as a structure.
Type
Module label
Timer type
Retentive timer type
Counter type
Long timer type
Long retentive timer type
Long counter type
22 LABELS
382
22.6 Structures
Structure label [2]
Member (label 1)
Member (label 2)
Member (label 3)
Member (label 4)
·
Structure label [3]
Member (label 1)
Member (label 2)
Member (label 3)
Member (label 4)
·
Reference
 Function Block Reference for the module used
Page 374 Data Types
Structure label [4]
Member (label 1)
Member (label 2)
Member (label 3)
Member (label 4)
·

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents