Chapter 5 Applied Instructions D : Device whose absolute value will be gotten When the instruction ABS is executed, the absolute value of the value in Explanation D is gotten If KnM/KnS is used, it is suggested that M device numbers/S device numbers should start from a number which is a multiple of 16 in the decimal numeral system, e.g. K4M0 and K4S16 (decimal numeral system). Generally, the pulse instructions ABSP and DABSP are used. When X0.0 is turned from OFF to ON, the absolute value of the value in Example D0 is gotten.
X0.0 5-77 API Instruction code Operand Function 87 D ABS P D Absolute value Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z D Pulse instruction 16-bit instruction (3 steps) 32-bit instruction (3 steps ) ABS D0