10
DEVICE EXPLANATION
10.14 Convenient Usage of Devices
10.14.2 Local devices
10
- 116
9
P
a
ra
met
e
rs
10
Device
Exp
la
n
at
ion
11
CP
U
M
odu
le
P
ro
cessi
ng
Ti
m
e
12
P
roc
e
d
ure
f
or W
rit
in
g
P
rog
ra
m t
o CP
U Mo
du
le
A
p
pe
nd
ic
e
s
In
de
x
10.14.2 Local devices
Local devices are used independently by the programs.
The use of local devices permits programming of multiple "independent execution"
programs without regard to other programs.
Note that the local device data can be stored to the standard RAM and the memory card
(SRAM) only.
(1) Devices that can be used as local devices
The following devices can be used as local devices.
• internal relays (M)
• edge relays (V)
• timers (T, ST)
• counters (C)
• data registers (D)
(2) Saving and restoration of local device file
Programs which use the local device exchange the local device file data stored in the
standard RAM or the memory card (SRAM) with the data in the device memory of the
CPU module.
Therefore the scan time is extended by this data exchange time.
Figure 10.98 Using the local devices
Figure 10.99 Saving and restoration of local device file
Y12
M7000
Y11
M7000
ON/OFF
M7000
ON/OFF
M7000
If local devices are designated as M7000 or later, they can be used independently in
each program executing M7000 or later.
Program B
Program A
M7000 ON/OFF data
M7000 ON/OFF data
For program A
For program B
Internal relay
Internal relay
Standard RAM/Memory card (SRAM)
CPU module
Y12
M7000
Y11
M7000
ON/OFF
M7000
ON/OFF
M7000
If local devices are designated as M7000 or later, they can be used independently in
each program executing M7000 or later.
Program B
Program A
M7000 ON/OFF data
M7000 ON/OFF data
For program A
For program B
Internal relay
Internal relay
Standard RAM/Memory card (SRAM)
CPU module
Local devices
Program A
Program B
Program C
Local devices
Local devices
Restored
Saved
Restored
Saved
Restored
Sequence program
For
program A
For
program B
For
program C
For
program A
For
program B
For
program C
For
program A
For
program B
For
program C