F30_MUL

Redundant instruction

NOTE

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

Multiplies the 16-bit data or 16-bit equivalent constant specified by s1 and the 16-bit data or 16-bit equivalent constant specified by s2 if the trigger EN is in the ON-state. The result is stored in d (32-bit area). All 16-bit values are treated as integer values.

Parameters

Input

s1 (WORD, INT, UINT)

Multiplicand

s2 (WORD, INT, UINT)

Multiplier

Output

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

Result

Example

  1.  (1) Example value 10
  2.  (2) Example value 17
  3.  (3) Result value 170 if trigger is ON
  4.  (4) 32-bit area

Remarks

Error flags

sys_bIsEqual (turns to TRUE for one scan)

if the calculated result is 0.

Related topics:

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