F32_DIV

Redundant instruction

NOTE

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

The 16-bit data or 16-bit equivalent constant specified by s1 is divided by the 16-bit data or 16-bit equivalent constant specified by s3 if the trigger EN is in the ON-state.

Parameters

Input

s1 (WORD, INT, UINT)

Dividend

s2 (WORD, INT, UINT)

Divisor

Output

d (WORD, INT, UINT)

Quotient

The variables s1, s2 and d have to be of the same data type.

Example

  1.  (1) Example value 36
  2.  (2) Example value 17
  3.  (3) Result value 2 if trigger is ON
  4.  (4) Remainder 2 stored in DT9015/90015

Remarks

Error flags

sys_bIsEqual (turns to TRUE for one scan)

if the calculated result is 0.

sys_bIsCarry (turns to TRUE for one scan)

if the negative minimum value -32768 (16#8000) is divided by -1 (16#FFFF)

Related topics:

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