CHAPTER 7
When multiple programs are executed in the CPU module, each program can be executed independently by specifying
an internal user device as a local device. Devices of the CPU module are classified into the following two types:
• Global device that can be shared by multiple programs that are being executed.
• Local device that is used independently for each program.
7.1
Global Device
Programs being executed in the CPU module can share the global device. Global device data are stored in the device
memory of the CPU module, and can be shared by all programs.
Program A
Program B
● All of the devices that have not been set as local devices ( Page 345, Section 7.2) are global devices.
● For execution of multiple programs, the range to be shared by all programs and the range to be used independently by
each program must be specified in advance. ( Page 345, Section 7.2)
344
CONVENIENT USAGE OF DEVICES
Example: Internal relay
M0 Shared by all programs.
Used in program A.
Used in program B.
Used in program C.
Device memory
Internal relay
M0
ON/OFF data of M0
ON/OFF data of M0
The ranges must be specified
for each program.
ON/OFF