Chapter 28 Labels; Global Labels - Mitsubishi Electric MELSEC iQ-R Series User Manual

Process cpu module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

28
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 509 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.
 Let's start iQ Works Version 2
[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
28.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.
Item
Label to which no device is assigned
Label to which a device is assigned
Description
• 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.
• 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.
28
28 LABELS
495
28.1 Global Labels

Advertisement

Table of Contents
loading

Table of Contents