7Seg - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

7SEG

Instruction
7-SEGMENT DISPLAY
OUTPUT
Symbol
Applicable Program Areas
Area
Step program areas
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
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
7SEG
---
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
O: Output word
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
2 Instructions
Function
Interrupt tasks
Not allowed
Size
Variable
1
1
1
2-365
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents