Panasonic FP Series Programming Manual page 648

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F80_BCD
Converts the 16-bit binary data specified by s to the BCD code that expresses 4-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 9999 (270F hex).
Source [s]: 16
Bit position
Binary data
Decimal
Destination [d]: 16#16 (BCD)
Bit position
Binary data
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 in the online help
PLC types
Availability of F80_BIN (see page 1326)
Data types
Variable
Data type
ANY16
s
WORD
d
Operands
For
s
d
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
16-bit BIN -> 4-digit BCD conversion
15
12
11
8
7
4
3
· · ·
· ·
· ·
0 0 0
0
0 0 0
0
0 0 0
1
0 0 0
16
Conversion (to BCD code)
15
12
11
8
7
4
3
· · ·
· ·
· ·
0 0 0
0
0 0 0
0
0 0 0
1
0 1 1
0
0
1
Function
binary data (source), range: 0 to 9999
16-bit area for 4-digit BCD code (destination)
Relay
WX
WY
WR
WL
-
WY
WR
WL
Set
permanently
for an instant
0
· ·
0
0
· ·
0
6
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
If
 16-bit binary data outside the range of 0
(16#0) to 9999 (16#270F) is converted
Conversion instructions
Constant
dec. or hex.
-
647

Advertisement

Table of Contents
loading

Table of Contents