F87_ABS

Redundant instruction

NOTE

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.

Parameters

Output

d (WORD, INT, UINT)

16-bit area for storing original data and its absolute value

Remarks

If the required data type is supported, we recommend using the IEC instruction ABS. Please refer also to advantages of the IEC instructions.

Related topics:

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)

if the 16-bit data is the negative minimum value -32768 (16#8000).

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)

if the 16-bit data is the negative minimum value -32768 (16#8000).

sys_bIsCarry (turns to TRUE for one scan)

if the 16-bit data is the negative value in the range from -1 to -32767 (16#FFFF to 16#8001).

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline