F336_FABS

Redundant instruction

NOTE

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

Calculates the absolute value of real number data specified by s. The result (absolute value) is stored in d.

NOTE

This instruction cannot be programmed in the interrupt program.

Parameters

Input

s (REAL)

Real number data (source).

Output

d (REAL)

Converted data for absolute value result (destination).

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 data other than real number data is specified in s

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)

if data other than real number data is specified in s

sys_bIsEqual (turns to TRUE and remains TRUE)

if the result of processing is recognized as "0".

sys_bIsCarry (turns to TRUE for one scan)

if the result is overflowed

Related topics:

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