366
21 DEVICES
21.18 Global Device
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.
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.
MOV K3 #D100
MOV K1 D100
MOV K4 #D100
MOV K2 D100
D0
D99
D100
D199
D200
D300
#D100
#D199
#D100
#D199
Program execution
Program A
Program B
END processing
Global device
The value is
K1 K2
Local device
For the program A For the program B
The value is K4.
The value is K3.