Redundant instruction
This is a redundant instruction. It is replaced by: ABS
Gets the absolute value of 16-bit data with the sign specified by d if the trigger EN is in the ON-state.
The absolute value of the 16-bit data with +/- sign is stored in d. This instruction is useful for handling data whose sign (+/-) may vary.
Output
16-bit area for storing original data and its absolute value
If the required data type is supported, we recommend using the IEC instruction ABS. Please refer also to advantages of the IEC instructions.
if the 16-bit data is the negative minimum value -32768 (16#8000).
if the 16-bit data is the negative minimum value -32768 (16#8000).
if the 16-bit data is the negative value in the range from -1 to -32767 (16#FFFF to 16#8001).