Panasonic FP Series Programming Manual page 357

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Arithmetic instructions
F43_DBADD2
The 8-digit BCD equivalent constant or 32-bit area for 8-digit BCD data specified by s1 and s2 are
Description
added together if the trigger EN is in the ON-state. The result is stored in d.
Example value 16#12345678 (BCD)
Bit
31 . . 28 27 . . 24 23 . . 20 19 . . 16
s1
16# BCD
Example value 16#87654321 (BCD)
Bit
31 . . 28 27 . . 24 23 . . 20 19 . . 16
s2
16# BCD
Result value 16#99999999 (BCD) if trigger is ON
Bit
31 . . 28 27 . . 24 23 . . 20 19 . . 16
d
16# BCD
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F43_DBADD2 (see page 1325)
PLC types
Data types
Variable
Data type
DWORD
s1
DWORD
s2
DWORD
d
356
8-digit BCD addition, destination can be specified
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
1
2
3
1 0 0 0
0 1 1 1
0 1 1 0
0 1 0 1
8
7
6
1 0 0 1
1 0 0 1
1 0 0 1
1 0 0 1
9
9
9
Function
augend, 32-bit area for 8-digit BCD data or equivalent
constant
addend, 32-bit area for 8-digit BCD data or equivalent
constant
sum, 32-bit area for 8-digit BCD data
15 . . 12 10 . . 8 7 . . 4 3 . . 0
0 1 0 1
0 1 1 0
0 1 1 1
4
5
6
32-bit area
15 . . 12 10 . . 8 7 . . 4 3 . . 0
0 1 0 0
0 0 1 1
0 0 1 0
5
4
3
15 . . 12 10 . . 8 7 . . 4 3 . . 0
1 0 0 1
1 0 0 1
1 0 0 1
9
9
9
1 0 0 0
7
8
0 0 0 1
2
1
1 0 0 1
9
9

Advertisement

Table of Contents
loading

Table of Contents