EasyManua.ls Logo

Panasonic FP-E - Page 1077

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4.6 Handling BCD Data
4-25
4.6 Handling BCD Data
4.6.1 BCD Data
BCD is an acronym for binary−coded decimal, and means that each digit of a decimal
number is expressed as a binary number.
Example: Expressing a decimal number in BCD
Decimal number
BCD
(Binary−coded
decimal)
0110 0100 0101
Each digit is converted to a binary
number.
4.6.2 Handling BCD Data in the Programmable Controller
When inputting data from a digital switch to the programmable controller or outputting
data to a 7−segment display (with decoder), the data must be in BCD form. In this case,
use a data conversion instruction as shown in the examples at below.
BCD arithmetic instructions (F40 through F58), also exist which allow direct operation
on BCD data, however, it is normally most convenient to use BIN operation instructions
(F20 through F38) as operation in the programmable controller takes place in binary.
Input from a digital switch
Use the BCD−to−BIN conversion instruction F81 (BIN).
1 9 9 2
Programmable
controller
BCD
↓
BIN
(Conversion
using F81
(BIN)
instruction)
Digital
switch
0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 0
Data inputted into the
programmable
controller (BCD data)
1 9 9 2
0 0 0 0 0 1 1 1 1 1 0 0 1 0 0 0
Data which can be
processed in the
programmable
controller (BIN data)
Converted to 1992 in decimal
data.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com