AH500 Programming Manual 
6-282 
API 
Instruction code  Operand  Function 
1210  D  ABS  P 
D 
Absolute value 
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 (3 steps)
  AH500  AH500  AH500 
Symbol: 
 
 
D
:
Device involved in the getting of the 
absolute value 
Word/Double word 
Explanation: 
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. 
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.