F50_BMUL

Redundant instruction

NOTE

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

Multiplies the 4-digit BCD equivalent constant or 16-bit area for 4-digit BCD data specified by s1 and s2 if the trigger EN is in the ON-state. The result is stored in d (8-digit area).

Parameters

Input

s1 (WORD)

Multiplicand, 16-bit area for 4-digit BCD data or equivalent constant

s2 (WORD)

Multiplier, 16-bit area for 4-digit BCD data or equivalent constant

Output

d (DWORD)

Result, 32-bit area for 8-digit BCD data

Example

  1.  (1) Example value 16#20 BCD
  2.  (2) Example value 16#2 BCD
  3.  (3) Example value 16#40 if trigger is ON
  4.  (4) 32-bit area

Remarks

Instead of using this F instruction, we recommend using the corresponding FP7 instruction: FP_MUL_BCD

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