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.
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.
Summary of Contents for MELSEC iQ-R-R00CPU
Page 2: ......
Page 151: ...9 MONITOR FUNCTION 9 1 Real Time Monitor Function 149 9 MEMO ...
Page 323: ...18 SEQUENCE SCAN SYNCHRONIZATION SAMPLING FUNCTION 321 18 MEMO ...
Page 330: ...328 20 ROUTING SETTING 20 3 Precautions MEMO ...
Page 423: ...26 BASIC CONCEPT 26 8 State Transition of the Redundant System 421 26 MEMO ...
Page 1014: ...1012 APPX Appendix 15 Added and Enhanced Functions MEMO ...
Page 1027: ......