F88_DABS

Redundant instruction

NOTE

This is a redundant instruction. It is replaced by: ABS

Gets the absolute value of 32-bit data with the sign specified by d if the trigger EN is in the ON-state. The absolute value of the 32-bit data with sign is stored in d. This instruction is useful for handling data whose sign (+/-) may vary.

Parameters

Output

d (DWORD, DINT, UDINT, DATE, TOD, DT)

32-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.

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 32-bit data is the negative value in the range from -1 to -2147483647 (16#FFFFFFFF to 16#80000001).

Related topics:

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