F313_FDIV

Redundant instruction

NOTE

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

The real number data specified by s1 is divided by the real number data specified by s2 when the trigger turns on. The result is stored in d.

Parameters

Input

s1 (REAL)

Real number data for dividend.

s2 (REAL)

Real number data for divisor.

Output

d (REAL)

32-bit area for result (destination).

Remarks

If the required data type is supported, we recommend using the IEC instruction .

This instruction cannot be programmed in the interrupt program.

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)

if data other than real number data is specified in s1 and s2.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)

if data other than real number data is specified in s1 and s2.

sys_bIsCarry (turns to TRUE for one scan)

if the result is overflowed.

Related topics:

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