
Chapter 4. Basic instructions
4-18
The on / off toggle control (Example of D instructions)
1. Operation
When the push-button PB0 is pushed, the P060 is switched on. It is switched off when the PB0 is pushed
again. The P060 will repeat on / off whenever the PB0 is pushed.
2. System structure
3. Program
4. Time chart
0
1
2
3
.
.
.
.
Program
0
1
2
.
.
.
.
.
PB0
Digital input
module P00
Digital output
module P06
Repeat On/Off
P000
[
D M000
]
(
P060
)
P060
M000
P060
M000
0000
0003
0009
[
END
]
P000
P060