Chapter 6 Applied Instructions API 1210 Symbol: D : Device involved in the getting of the absolute value Word/Double word 1. When the instruction ABS is executed, the absolute value of the value in the device specified by D is gotten. 2. Generally, the pulse instruction ABSP is used. 3. Only the 32-bit instructions can use the 32-bit counter. Explanation: Example: Suppose the value in D0 before the execution of the instruction is -1234. When X0.0 is switched from OFF to ON, the absolute value of -1234 in D0 is gotten. That is, the value in D0 becomes 1234 after the instruction is executed.
6-283 Instruction code Operand Function D ABS P D Absolute value 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 (3 steps) AH500 AH500 AH500