189
Outline
Converts BCD code that expresses 4-digit decimals to 16-bit binary data.
Program example
■
Operands
*
The K constant available here is in the range of K0 to K9999.
**
The H data specified here should be in the form of BCD code that express 4-digit decimal ranging from H0 (BCD) to H9999 (BCD).
■
Explanation of example
• Converts word external input relay WX0 to 16-bit binary data when trigger X0 turns ON.
The converted data is stored in data register DT0.
Bit position
DT0
Decimal
0 0 0 0
0 0 0 0
11
8
0 0 0 0
1 1 1 1
3
0
15
•
•
12
•
•
•
•
7
4
•
•
K15
X0: ON
Source [S]: H15 (BCD)
Destination [D]: K15
Bit position
WX0
BCD H code
0 0 0 0
0 0 0 0
11
8
0 0 0 1
0 1 0 1
3
0
15
•
•
12
•
•
•
•
7
4
•
•
0
0
1
5
Timer/Counter
EV
Relay
SV
WR
WY
WX
Operand
S
A
A
A
A
A:
N/A: Not Available
Register
DT
A
IY
IX
A
A
H
K
A
*
A
**
Constant
Index
modifier
A
Index
register
Available
A
D
N/A A
A
A
A
A
A
N/A N/A
A
A
6-3. Description of High-level Instructions
F81
(BIN)
4-digit BCD data
→
16-bit data
Availability
Step
5
All series
S
D
4-digit BCD equivalent constant or 16-bit area for 4-digit BCD data (source)
16-bit area for storing 16-bit binary data (destination)
Ladder Diagram
Boolean Non-ladder
Address
Instruction
10
X0
F81 BIN , WX0 , DT 0
D
Trigger
S
10
11
ST
X
0
F 81
(BIN)
WX
0
DT
0
Summary of Contents for FP1
Page 1: ...PROGRAMMABLE CONTROLLER FP1 is a global brand name of Matsushita Electric Works Hardware ...
Page 28: ...20 ...
Page 98: ...90 ...
Page 150: ...142 ...
Page 208: ...200 ...
Page 226: ...218 ...
Page 280: ...272 ...