153
PLS, PLF
1
2
3
4
5
6
7
8
5.3
O
u
tput Instructio
ns
5.3.8
P
LS, PLF
PLF
(1) Turns ON the designated device when the execution command is turned ON OFF, and turns OFF the device in any
other case the execution command is turned ON OFF (i.e., at OFF OFF, OFF ON or ON ON of the execution
command).
When there is one PLF instruction for the device designated by during one scan, the specified device turns ON one
scan.
See Page 115, Section 3.9 for the operation to be performed when the PLF instruction for the same device is executed
more than once during one scan.
(2) If the RUN/STOP key switch is changed from RUN to STOP after the execution of the PLF instruction, the PLF
instruction will not be executed again even if the switch is set back to RUN.
Note that the device designated by
may remain ON for more than one scan if the PLS or PLF instruction is jumped by
the CJ instruction or if the executed subroutine program was not called by the CALL instruction.
Operation Error
(1) There is no operation error in the PLS or PLF instruction.
Program Example
(1) The following program executes the PLS instruction when X9 goes ON.
[Ladder Mode]
[List Mode]
[Timing Chart]
(2) The following program executes the PLF instruction when X9 goes OFF.
[Ladder Mode]
[List Mode]
D
X5
O
FF
M0
O
FF
O
N
O
N
1
scan
X5
M0
P
LF
1
scan
D
Step
Instruction
Device
X9 OFF
M9 OFF
ON
ON
1 scan
Step
Instruction
Device