Chapter 6 Applied Instructions
6-155
6.8.2 Explanation of Miscellaneous Instructions
API
Instruction code Operand
Function
0700 ALT P
D
Alternating between ON and
OFF
Device
X Y M S T C HC D L SM SR E PR K 16# “$” DF
Pulse instruction
16-Bit instruction (3 steps)
32-Bit instruction
Symbol:
D
:
Destination device Bit
Explanation:
1. When the instruction ALT is executed, the state of the device specified by D alternate between
ON and OFF.
2. Generally, the pulse instruction ALTP is used.
Example 1:
When X0.0 is switched from OFF to ON for the first time, Y0.0 is ON. When X0.0 is switched from
OFF to ON for the second time, Y0.0 is OFF.
Example 2:
In the beginning, M0 is OFF. Therefore, Y0.0 is ON, and Y0.1 is OFF. When X0.0 is switched from
OFF to ON for the first time, M0 is ON. Therefore, Y0.1 is ON, and Y0.0 is OFF. When X0.0 is
switched from OFF to ON for the second time, M0 is OFF. Therefore, Y0.0 is ON, and Y0.1 is OFF.