4 - 17
Other Useful Ways of PLS and PLF
Part 2
• The program for the repeated operation such as switching on/off status alternately
by pressing the push button switch can be made with the instructions.
If the PLS instruction is used in the above program, the rising edge caused when
the push button switch is pressed triggers the program. If the PLF instruction is
used, the falling edge caused when the switch is released is the trigger.
[Timing chart]
X0
Y70
Y71
[Program example]
Project name QB-7
Program name MAIN
Y70
M0
M1PLF
5
Y70
M0PLS
0
X0
M0
Y70
Y71
M1
11
Y71
M1
Y71