F51_DBMUL

Redundant instruction

NOTE

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

Multiplies the 32-bit BCD (8-digit) equivalent constant or 8-digit BCD data specified by s1 and the one specified by s2 if the trigger EN is in the ON-state. The result is stored in the ARRAY d[0], d[1] (64-bit area).

Parameters

Input

s1 (DWORD)

Multiplicand, 32-bit area for 8-digit BCD data or equivalent constant

s1 (DWORD)

Multiplier, 32-bit area for 8-digit BCD data or equivalent constant

Output

d (ARRAY [0..1] OF DWORD)

Result

Example

  1.  (1) Example value 16#60008 (BCD)
  2.  (2) Example value 16#40002 (BCD)
  3.  (3) Result value 16#2400440016 (BCD) if trigger is ON stored in the ARRAY [0..1] of
  4.  (4) 32-bit area
  5.  (5)  output_array [0]
  6.  (6)  output_array [1]

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