Panasonic FP Series Programming Manual page 650

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F81_BIN
Converts the BCD code that expresses 4-digit decimals specified by s to 16-bit binary data if the
Description
trigger EN is in the ON-state. The converted result is stored in the area specified by d.
Source [s]: 16#15 (BCD)
Bit position
15
BCD code
BCD Hex
code
Destination [d]: 15
Bit position
15
Binary data
Decimal
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 F81_BIN (see page 1326)
PLC types
Data types
Variable
Data type
WORD
s
ANY16
d
Operands
For
s
d
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
4-digit BCD -> 16-bit BIN conversion
12
11
8
7
4
3
· · ·
· ·
· ·
0 0 0
0
0 0 0
0
0 0 0
1
0 1 0
0
0
1
Conversion (to binary data)
12
11
8
7
4
3
· · ·
· ·
· ·
0 0 0
0
0 0 0
0
0 0 0
0
1 1 1
15
Function
16-bit area for 4-digit BCD data (source)
16-bit area for storing 16-bit binary data (destination)
Relay
WX
WY
WR
WL
-
WY
WR
WL
Set
permanently
for an instant
0
· ·
1
5
0
· ·
1
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
If
 the data specified by s is not BCD data.
Conversion instructions
Constant
dec. or hex.
-
649

Advertisement

Table of Contents
loading

Table of Contents