Specifications

4.4 Method for Specifying Data
4.4.8 Structures
4-37
4
PROGRAM
CONFIGURATION
4.4.8 Structures
A structure is an aggregation of different data type labels.
Structures can be used in all POUs.
To use structures, first create the configuration of structure, and define a structure label name for
the created structure as a new data type
( GX Works2 Version 1 Operating Manual (Structured Project))
To use each element of structure, append an element name after the structure label name with '.'
as a delimiter in between.
Structures can also be used as arrays. When a structure is declared as an array, append an
index enclosed by '[ ]' after the structure label name. When arrays are used and accessed using
array indices to specify a label or device, the maximum value in an array is 32767.
The arranged structured data can be specified as arguments of functions and function blocks.
When arrays are used and accessed using array indices to specify a label or device, a bit-
specified word device can not be specified for a bit type element.
dut_a1 . in00
Structure
label name
Element name
Example) When using the element
of the structured data
dut_b1 [0] . in00
Index Element
name
Structure
label name
Example) When using the element
of the arranged structured data
Bit bo00
Bit bo01
Word (signed) in00
dut_a1 samp_fb1
samp_fb1
Creating structures
Define labels
Structure name
Expression in a program
Structure name
Structure label name
Element
dut_a1.bo00 dut_a1.bo01
MOV
EN ENO
ds
idata1dut_a1.in00