Conversion instructions
653
Part III FP Instructions
F83_DBIN
8-digit BCD -> 32-bit BIN conversion
·········
15
000
12
0
11
010
8
0
7
010
4
1
3
011
0
1
·········
15
011
12
1
11
001
8
0
7
100
4
0
3
000
0
1
7
281
·········
15
000
12
0
11
010
8
0
7
110
4
1
3
001
0
0
·········
15
000
12
1
11
011
8
1
7
001
4
1
3
000
0
0
1730
72811730
Source [s]: 16#72811730 (BCD)
Destination [d]: 72811730
32-bit area
Bit position
Bit position
Binary data
Decimal
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
PLC types
Availability of F83_DBIN (see page 1326)
Variable Data type Function
s DWORD area for 8-digit BCD data (source)
d ANY32 32-bit area for storing 32-bit data (destination)
For Relay T/C Register Constant
s DWX DWY DWR DWL DSV DEV DDT DLD DFL dec. or hex.
d - DWY DWR DWL DSV DEV DDT DLD DFL -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the data specified by s is not BCD data.
Description
Converts the BCD code that expresses 8-digit decimals specified by s to 32-bit binary data if the
trigger EN is in the ON-state. The converted result is stored in the area specified by d.
Data types
Operands
Error flags