187
Outline
Converts 16-bit binary data to BCD code that expresses 4-digit decimals.
Program example
■
Operands
■
Explanation of example
• Converts the contents of timer/counter elapsed value area EV0 to BCD code that expresses 4-digit decimals when
trigger X0 turns ON. The converted data is stored in word external output relay WY0.
Bit position
EV0
Decimal
0 0 0 0
0 0 0 0
11
8
0 0 0 1
0 0 0 0
3
0
15
•
•
12
•
•
•
•
7
4
•
•
K16
Bit position
WY0
BCD H code
0 0 0 0
0 0 0 0
11
8
0 0 0 1
0 1 1 0
3
0
15
•
•
12
•
•
•
•
7
4
•
•
0
0
1
6
X0: ON
Source [S]: K16
Destination [D]: H16 (BCD)
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
F80
(BCD)
16-bit data
→
4-digit BCD data
Availability
Step
5
All series
S
D
16-bit equivalent constant or 16-bit area for storing binary data (source)
Available range: K0 to K9999
16-bit area for 4-digit BCD code (destination)
Ladder Diagram
Boolean Non-ladder
Address
Instruction
10
X0
F80 BCD , EV0 , WY0
D
Trigger
S
10
11
ST
X
0
F 80 (BCD)
EV
0
WY
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 ...