Справочник Пользователя для Mitsubishi Electronics QnUCPU

Скачать
Страница из 630
9
 
-
 
84
9.14  Convenient Usage of Devices
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.
9.14.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.
Figure 9.97 Using a global device
Y12
M0
Program A
Y11
M0
Program B
M0 ON/OFF data
Device memory
Internal relay
ON/OFF
M0
M0 ON/OFF data
Global device can be shared by the programs that are being executed.
CPU module