192
6-4. Hints for Programming High-level Instructions
2) Processing BCD Data in the Programmable Controllers
• Since the data in the programmable controllers are basically processed in standard binary, it is recommended that
data in the programmable controllers be proceeded by the binary form using the F80 (BCD), F81 (BIN), F82
(DBCD), and F83 (DBIN) instructions.
[BCD data flow]
■
Application Example:
High-level instruction
F81 (4-digit BCD data
16-bit data)
Bit position
Binary data
0 0 0 0
0 1 1 1
11
8
1 1 0 0
1 0 0 1
3
0
15
•
•
12
•
•
•
•
7
4
•
•
Decimal
BCD data
0 0 0 1
1 0 0 1
9
1 0 0 1
0 0 1 1
3
1
9
Decimal
BCD data
0 0 0 1
1 0 0 1
9
1 0 0 1
0 0 1 1
3
1
9
High-level instruction
F80 (16-bit data
4-digit BCD data)
FP1
Programmable
Controller
Digital switches
7-segment indicator
BCD BIN
BIN BCD
1
9
9
3
Input device
Output device
FP1
F81/F83
F80/F82
BCD data
BCD data
BCD Binary
Data
processing
Binary BCD
• When data of a digital
switch is input to the
programmable controller,
use the F81 (BIN) or F83
(DBIN) instruction.
• When data is output to the
7-segment digital indicator,
use the F80 (BCD) or F82
(DBCD) instruction.
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 ...