AS Series Programming Manual Symbol D : Device holding the original value Explanation 1. This instruction finds the absolute value of the value in the device specified by D . _6 2. In general, the ABSP pulse instruction is used. 3. Only the 32-bit instructions can use the 32-bit counter, but not the device E. Example Suppose the value in D0 is originally -1234. When X0.0 switches from OFF to ON, the instruction finds the absolute value of -1234 in D0. That is, the value in D0 becomes 1234 after the instruction is executed.
6-362 API Instruction code Operand Function 1210 D ABS P D Finding the absolute value Device X Y M S T C HC D FR SM SR E K 16# “$” F D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type D Pulse instruction 16-bit instruction 32-bit instruction AS AS AS