Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 834

Table of Contents

Advertisement

3. Instructions
7SEG
Instruction
7-SEGMENT DISPLAY
OUTPUT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Source word
O
Output word
C
Control word
D
System word
S: Source Word
Specify the first source word containing the data that will be converted to 7-segment display data.
15
12 11
S
Digit 4
15
12 11
S+1
Digit 8
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
15
14
13
12
O
One Round Flag
Latch outputs
796
Mnemonic
Variations
7SEG
---
Block program areas
Step program areas
Not allowed
OK
Description
8
7
4
3
0
Digit 3
Digit 2
Digit 1
8
7
4
3
0
Digit 6
Digit 7
Digit 5
11
10
9
8
7
6
5
4
3
2
1
LE3
LE2
LE1
LE0
Function
code
Converts the source data (either 4-digit or 8-digit
214
BCD) to 7-segment display data, and outputs that
data to the specified output word.
7SEG
7SEG(214)
S: Source word
S
O: Output word
O
C: Control data
C
D: System word
D
Subroutines
OK
Data type
WORD
UINT
#+10 decimal only
WORD
0
D0
D1
4-digit data output
D2
D3
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
Not allowed
OK
Size
Variable
1
1
1

Advertisement

Table of Contents
loading

Table of Contents