F43_DBADD2

Redundant instruction

NOTE

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

The 8-digit BCD equivalent constants or 32-bit areas for 8-digit BCD data specified by s1 and s2 are added together if the trigger EN is in the ON-state. The result is stored in d.

Example

  1.  (1) Example value 16#12345678 (BCD)
  2.  (2) Example value 16#87654321 (BCD)
  3.  (3) Result value 16#99999999 (BCD) if trigger is on
  4.  (4) 32-bit area

Parameters

Input

s1 (DWORD)

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

s2 (DWORD)

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

Output

d (DWORD)

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

Error flags

sys_bIsEqual (turns to TRUE for one scan)

if the calculated result is 0.

sys_bIsCarry (turns to TRUE for one scan)

if the result exceeds the range of 8-digit BCD data (overflow).

Related topics:

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