Operation When Out, Set/Rst, Or Pls/Plf Instructions Use The Same Device - Mitsubishi MELSEC QS Series Programming Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

3.7
Operation when OUT, SET/RST, or PLS/PLF
Instructions Use the Same Device
The following describes the operation for executing multiple instructions of 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 circuit that turns the same internal relay (M0)
with inputs X0 and X1 ON and OFF.
[Circuit]
[Timing Chart]
When specifying output (Y) in OUT instruction, the ON/OFF status of the device at the
execution of the last OUT instruction in the scan is returned as the output (Y).
3-14

3.7 Operation when OUT, SET/RST, or PLS/PLF Instructions Use the Same Device

X0
X1
END
ON
OFF
X0
ON
X1
OFF
OFF
M0
M0
M0
X0
M0
X1
M0
END
ON
M0 is turned OFF
because X1 is OFF.
M0 is turned ON
because X0 is ON.
X0
M0
X1
M0
END
M0 is turned ON
because X1 is ON.
M0 remains OFF
because X0 is OFF.

Advertisement

Table of Contents
loading

Table of Contents