Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 807

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Basic I/O Unit Instructions
Examples
0.00
D100
1000
Di
D200
7-segment Data
Original data
Digit
Bits
0
0
0
0
0
1
0
0
0
1
2
0
0
1
0
3
0
0
1
1
4
0
1
0
0
5
0
1
0
1
6
0
1
1
0
7
0
1
1
1
8
1
0
0
0
9
1
0
0
1
A
1
0
1
0
B
1
0
1
1
C
1
1
0
0
D
1
1
0
1
E
1
1
1
0
F
1
1
1
1
774
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.
Di: 1000
S: D100
D: D200
D201
The following table shows the data conversions from a hexadecimal digit (4
bits) to 7-segment code (8 bits).
Converted code (segments)
g
f
e
d
c
0
0
1
1
1
1
0
0
0
0
0
1
0
1
0
1
1
0
0
1
0
0
1
1
0
1
1
0
0
1
0
1
1
0
1
1
0
1
1
1
1
1
0
0
1
0
0
1
0
1
1
1
1
1
0
1
1
0
1
1
0
1
1
1
0
1
0
1
1
1
1
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
1
0
0
1
1
1
0
0
3
Hexadecimal to 7-segment data conversion
(F
71, 1
b
a
Hex
1
1
3F
1
0
06
1
1
5B
1
1
4F
1
0
66
0
1
6D
0
1
7D
1
1
27
1
1
7F
1
1
6F
1
1
77
0
0
7C
0
1
39
1
0
5E
0
1
79
0
1
71
Section 3-22
06, and 2
5B)
Display
Original data
LSB
a
1
b
1
f
c
1
g
d
1
e
e
1
f
1
g
1
0
MSB
a
b
c
d

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents