Global Device; Local Device - Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

21.18

Global Device

This device can be shared by all the programs. All the devices that do not set as local device are handled as global device.
21.19

Local Device

This device can be used independently in each program. When creating multiple programs, programming can be completed
without being aware of devices used in other programs.
Program execution
Program A
MOV K3 #D100
MOV K1 D100
Program B
MOV K4 #D100
MOV K2 D100
END processing
The local device area must be reserved independently from the global device area. Therefore a local device
and global device with the same device number can exist.
Devices available as local device
The following devices are available as local devices.
• Internal relay (M)
• Edge relay (V)
• Timer (T, LT, ST, LST)
• Counter (C, LC)
• Data register (D)
• Pointer (P)
Because the index register (Z, LZ) saves/returns during program execution, it should be regarded separately
as the local index register unlike other local devices. ( Page 353 Index Register (Z/LZ))
Local device area
The CPU module reserves the local device area on the device/label memory based on the number of points setting of the
local device when:
• CPU module is powered off and on or is reset.
• Operating status of the CPU module is changed from STOP to RUN.
21 DEVICES
366
21.18 Global Device
Global device
D0
The value is
K1
K2
D99
For the program A
D100
D199
D200
D300
Local device
The value is K3.
For the program B
#D100
#D100
#D199
#D199
The value is K4.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents