Structures - Mitsubishi MELSEC-Q Series Programming Manual

Mitsubishi programmable controller
Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

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 Version1 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.
The arranged structured data can be specified as arguments of functions and function blocks.
Creating structures
Structure name
samp_fb1
4.4 Method for Specifying Data
4-34
4.4.8 Structures
Example) When using the element
of the structured data
dut_a1 . in00
Structure
Element name
label name
Example) When using the element
of the arranged structured data
dut_b1 [0] . in00
Structure
Index Element
label name
name
Element
Bit bo00
Define labels
Bit bo01
Word (signed) in00
Expression in a program
dut_a1.bo00
dut_a1.bo01
MOV
EN
dut_a1.in00
s
Structure label name
dut_a1
ENO
d
idata1
Structure name
samp_fb1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l seriesMelsec-f series

Table of Contents