EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R-R00CPU - Chapter 22 Labels; Global Labels; Local Labels

Mitsubishi Electric MELSEC iQ-R-R00CPU
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...
372
22 LABELS
22.1 Global Labels
22 LABELS
A label is a variable consisting of a specified string used in I/O data or internal processing.
Programs can be created without considering the size of devices and buffer memory by using labels. For this reason, a
program using labels can be reused easily even in a system having a different module configuration.
When labels are used, there are some precautions on programming and functions used. For details, refer to the following.
Page 385 Precautions
There are two types of labels described in this manual.
Global labels
Local labels
There are other types of labels available in addition to the global labels and local labels.
[System labels]
A system label is a label that provides the same data in all projects compatible with iQ Works. It can be
referenced from the GOT and the CPU modules and Motion controllers on other stations, and used for
monitoring and accessing data.
For details, refer to the following.
iQ Works Beginner's Manual
[Module labels]
A module label is a label defined uniquely by each module. A module label is automatically generated by the
engineering tool from the module used, and can be used as a global label.
For details, refer to the following.
Function Block Reference for the module used
22.1 Global Labels
A global label is a label that provides the same data within a single project. It can be used in all programs in the project.
A global label can be used in program blocks and function blocks.
The settings of a global label include a label name, class, and data type.
By opening global labels, they can be referenced from GOT and other stations, and can be used for monitoring and accessing
data.
Device assignment
Devices can be assigned to global labels.
22.2 Local Labels
A local label is a label that can be used only in the declared POU. Local labels outside the declared POU cannot be used.
The settings of a local label include a label name, class, and data type.
Item Description
Label to which no device is assigned Programming without being aware of devices is possible.
Defined labels are allocated to the label area or latch label area in the device/label memory.
Label to which a device is assigned If a device is to be programmed as a label against a device that is being used for input or output, the device can be
assigned directly.
Defined labels are allocated to the device area in the device/label memory.

Table of Contents

Related product manuals