7seg, Applicable program areas operands, 2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 401: S: source word, O: output word (data and latch outputs)
2-365
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Basic
I/O U
n
it I
n
stru
ctio
ns
2
7SEG
7SEG
Applicable Program Areas
Operands
S: Source Word
Specify the first source word containing the data that will be converted to 7-segment display data.
O: Output Word (Data and Latch Outputs)
Specify the output word allocated to the Output Unit and connect the 7-segment display to the Output
Unit as shown in the following diagram.
• Converting 4 digits
Instruction
Mnemonic
Variations
Function
code
Function
7-SEGMENT DISPLAY
OUTPUT
7SEG
---
214
Converts the source data (either 4-digit or 8-digit
BCD) to 7-segment display data, and outputs that
data to the specified output word.
Symbol
7SEG
Area
Step program areas
Subroutines
Interrupt tasks
Usage
OK
OK
Not allowed
Operand
Description
Data type
Size
S
Source word
WORD
Variable
O
Output word
UINT
1
C
Control word
#+10 decimal only
1
D
System word
WORD
1
S: Source word
O: Output word
C: Control data
D: System word
7SEG(214)
S
O
C
D
S
8
15
12 11
0
3
4
7
S+1
8
15
12 11
0
3
4
7
Digit 1
Digit 2
Digit 3
Digit 4
Digit 5
Digit 6
Digit 7
Digit 8
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
O
D0
D1
D2
D3
LE3
LE2
LE1
LE0
4-digit data output
Latch outputs
One Round Flag