2-365

2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Basic I/O Unit Instructions
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
815 1211 0347
S+1
815 1211 0347
Digit 1
Digit 2
Digit 3
Digit 4
Digit 5
Digit 6
Digit 7
Digit 8
0123456789101112131415
O
D0
D1
D2
D3
LE3
LE2
LE1
LE0
4-digit data output
Latch outputs
One Round Flag