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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Basic I/O Unit Instructions
Operands
S: Source Word
Specify the first source word containing the data that will be converted to 7-
segment display data.
15
12 11
8
7
S
Digit 4
Digit 3
15
12 11
8
7
S+1
Digit 8
Digit 7
O: Output Word (Data and Latch Outputs)
Specify the output word allocated to the Output Unit and connect the 7-seg-
ment display to the Output Unit as shown in the following diagram.
• Converting 4 digits
15
14
13
12
11
10
9
O
One Round Flag
LE3
LE2
Latch outputs
LE1
LE0
• Converting 8 digits
15
14
13
12
11
O
One Round Flag
LE3
LE2
Latch outputs
LE1
LE0
C: Control Data
The value of C indicates the number of digits of source data and the logic for
the Input and Output Units, as shown in the following table. (The logic refers to
the transistor output's NPN or PNP logic.)
Source data
Display's data input logic
4 digits (S)
Same as Output Unit
Different from Output Unit
8 digits
Same as Output Unit
(S, S+1)
Different from Output Unit
4
3
0
Digit 2
Digit 1
4
3
0
Digit 6
Digit 5
8
7
6
5
4
3
2
1
0
D0
D1
D2
D3
10
9
8
7
6
5
4
3
2
1
D0
D1
Rightmost 4-digit data output
D2
D3
Display's latch input logic
Same as Output Unit
Different from Output Unit
Same as Output Unit
Different from Output Unit
Same as Output Unit
Different from Output Unit
Same as Output Unit
Different from Output Unit
Section 3-22
4-digit data output
0
D0
D1
Leftmost 4-digit data output
D2
D3
C
0000
0001
0002
0003
0004
0005
0006
0007
791

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents