AH500 Programming Manual 6.8.2 Explanation of Convenience Instructions 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 firs 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. 6-156 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 D Pulse instruction 16-Bit instruction (3 steps) 32-Bit instruction AH500 AH500 -