Chapter 6 Applied Instructions Symbol: S 1 : Negative deviation Word/Double word S 2 : Positive deviation Word/Double word S 3 : Input value Word/Double word D : Output value Word/Double word Explanation: 1. The negative deviation in S 1 or the positive deviation in S 2 is added to the input value in S 3 , and the sum is stored in D . If the input value in S 3 is less than 0, the negative deviation in S 1 is added to the input value in S 3 , and the sum is stored in D . If the input value in S 3 is larger than 0, the positive deviation in S 2 is added to the input value in S 3 , and the sum is stored in D . If the input value in S 3 is equal to 0, the output value stored in D is 0. 2.
The figures: ZONE is executed. ZONE is not executed. Output value Output value Positive deviation Input value Input value 3. Only the 32-bit instructions can use the 32-bit counter. 4. The negative deviation in S 1 , the positive deviation in S 2 , the input value in S 3 , and the output Negative deviation 6-305 API Instruction code Operand Function 1223 D ZONE P S , S , S , D 1 2 3 Controlling the zone Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S 1 S 2 S 3 D Pulse instruction 16-bit instruction (9 steps) 32-bit instruction (9 steps) AH500 AH500 AH500 N