F34_MULW

Redundant instruction

NOTE

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

The function multiplies the value specified at input s1 by the value specified at input s2. The result of the function is returned at output d. The result at output d lies between -32768 and 32767 (i.e. between 16#0 and 16#FFFF). All 16-bit values are treated as integer values.

Parameters

Input

s1 (WORD, INT, UINT)

Multiplicand

s2 (WORD, INT, UINT)

Multiplier

Output

d (WORD, INT, UINT)

Result

Example

  1.  (1) Example value 6
  2.  (2) Example value 5
  3.  (3) Result value 30 if trigger is ON

Remarks

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

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)

if the result calculated exceeds the 16-bit area specified at output d.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)

if the result calculated exceeds the 16-bit area specified at output d.

sys_bIsEqual (turns to TRUE and remains TRUE)

if the result calculated is 0.

Related topics:

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