115
2
3
4
5
6
7
8
3.9
O
per
atio
n when the
OUT
, SET/RST
, or PLS/PLF
Inst
ructions Use the Same
Device
3.9
Operation when the OUT, SET/RST, or PLS/PLF
Instructions Use the Same Device
The following describes the operation for executing multiple instructions of the OUT, SET/RST, or PLS/PLF that use the same
device in one scan.
(1) OUT instructions using the same device
Do not program more than one OUT instruction using the same device in one scan. If the OUT instructions using the
same device are programmed in one scan, the specified device will turn ON or OFF every time the OUT instruction is
executed, depending on the operation result of the program up to the relevant OUT instruction. Since turning ON or OFF
of the device is determined when each OUT instruction is executed, the device may turn ON and OFF repeatedly during
one scan. The following diagram shows an example of a ladder that turns the same internal relay (M0) with inputs X0
and X1 ON and OFF.
[Ladder]
[Timing Chart]
With the refresh type CPU module, when the output (Y) is specified by the OUT instruction, the ON/OFF status of the last
OUT instruction of the scan will be output.
(2) SET/RST instructions using the same device
(a) The SET instruction turns ON the specified device when the execution command is ON and performs nothing when
the execution command is OFF.
For this reason, when the SET instructions using the same device are executed two or more times in one scan, the
specified device will be ON if any one of the execution commands is ON.
(b) The RST instruction turns OFF the specified device when the execution command is ON and performs nothing
when the execution command is OFF.
For this reason, when the RST instructions using the same device are executed two or more times in one scan, the
specified device will be OFF if any one of the execution commands is ON.
M0
X0
M0
X1
M0
M0
M0
M0
O
FF
O
N
O
N
O
FF
O
N
EN
D
EN
D
EN
D
X0
X1
M0
X0
X0
X1
X1
O
FF
M0
turns
O
N because
X0
is
O
N.
M0
turns
O
FF because
X1
is
O
FF.
M0
remains
O
FF because
X0
is
O
FF.
M0
turns
O
N because
X1
is
O
N.