EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 807

Omron CP - PROGRAMMING MANUAL 05-2007
1175 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...
774
Basic I/O Unit Instructions Section 3-22
Examples When CIO 0.00 turns ON in the following example, the contents of the 3 digits
beginning with digit 1 in D100 will be converted from hexadecimal data to 7-
segment data, and the results will be output to the upper byte of D200 and
both bytes of D201. The specifications of the bytes to be converted and the
location of the output bytes are made in CIO 1000.
7-segment Data The following table shows the data conversions from a hexadecimal digit (4
bits) to 7-segment code (8 bits).
S: D100
Di: 1000
Di
3
0.00
D100
1000
D200
D: D200
D201
Hexadecimal to 7-segment data conversion
(F 71, 1 06, and 2 5B)
Original data Converted code (segments) Display
Original data
Digit Bits –gf edcbaHex
0 0000001111113F
1 00010000011006
2 0010010110115B
3 0011010011114F
4 01000110011066
5 0101011011016D
6 0110011111017D
7 01110010011127
8 1000011111117F
9 1001011011116F
A 10100111011177
B 1011011111007C
C 11000011100139
D 1101010111105E
E 11100111100179
F 11110111000171
1
1
1
1
1
1
1
0
g
fb
c
d
e
a
a
b
c
d
e
f
g
LSB
MSB

Table of Contents

Related product manuals