Panasonic FP Series Programming Manual page 652

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F82_DBCD
Converts the 32-bit binary data specified by s to the BCD code that expresses 8-digit decimals if
Description
the trigger EN is in the ON-state. The converted data is stored in d. The binary data that can be
converted to BCD code are in the range of 0 (0 hex) to 99,999,999 (5F5E0FF hex).
Source [s]: 72811730
Bit position
Binary data
Decimal
Destination [d]: 16#72811730
Bit position
BCD code
BCD Hex code
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.
See also: BCD data
Availability of F82_DBCD (see page 1326)
PLC types
Data types
Variable
Data type
ANY32
s
DWORD
d
Operands
For
DWX DWY
s
d
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
32-bit BIN -> 8-digit BCD conversion
· · ·
· ·
· ·
15
12
11
8
7
4
0 0 0
0
0 1 0
0
0 1 0
1
· · ·
· ·
· ·
15
12
11
8
7
4
0 1 1
1
0 0 1
0
1 0 0
0
7
2
8
Function
binary data (source), range: 0 to 99,999,999
32-bit area for 8-digit BCD code (destination)
Relay
DWR
DWL
DSV
-
DWY
DWR
DWL
DSV
Set
permanently
for an instant
· ·
· · ·
· ·
3
0
15
12
11
8
0 1 1
1
0 0 0
0
0 1 0
0
72811730
32-bit area
· ·
· · ·
· ·
3
0
15
12
11
8
0 0 0
1
0 0 0
1
0 1 1
1
1
1
7
T/C
Register
DEV
DDT
DLD
DFL
DEV
DDT
DLD
DFL
If
 32-bit data specified by s outside the
range of 0 (16#0) to 99999999
(16#5F5E0FF) is converted.
Conversion instructions
· ·
· ·
7
4
3
0
1 1 0
1
0 0 1
0
· ·
· ·
7
4
3
0
0 0 1
1
0 0 0
0
3
0
Constant
dec. or hex.
-
651

Advertisement

Table of Contents
loading

Table of Contents