F33_DDIV

Redundant instruction

NOTE

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

The 32-bit data or 32-bit equivalent constant specified by s1 is divided by the 32-bit data or 32-bit equivalent constant specified by s2 if the trigger EN is in the ON-state. The quotient is stored in d and the remainder is stored in the system variable sys_diDDivRemainder. All 32-bit values are treated as double integer values.

Parameters

Input

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

Dividend

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

Divisor

Output

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

Quotient

Example

  1.  (1) Example value 16908416
  2.  (2) Example value 589828
  3.  (3) Result value 28 if trigger is ON
  4.  (4) Remainder 393232
  5.  (5) 32-bit area
  6.  (6)  DT9016/DDT90016
  7.  (7) DT9015/DDT90015

Remarks

Related topics:

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