Omron CP1E-N@@D@-@ Computer Hardware User Manual


 
2 Instructions
2-368
CP1E CPU Unit Instructions Reference Manual(W483)
Precaution
Do not read or write the system word (D) from any other instruction. 7SEG(214) will not operate cor-
rectly if the system word is accessed by another instruction. The system word is not initialized by
7SEG(214) in the first cycle when program execution starts. If 7SEG(214) is being used from the first
cycle, clear the system word from the program.
After the 7-segment data is output in 12 cycles, 7SEG(214) starts over and converts the present con-
tents of the source word(s) in the next 12 cycles.
When executed, 7SEG(214) begins on latch output 0 at the beginning of the round, regardless of the
point at which the last instruction was stopped.
Even if the connected 7-segment display has fewer than 4 digits or 8 digits in its display, 7SEG(214)
will still output 4 digits or 8 digits of data.
Sample program
In this example, 7SEG(214) converts the 8 digits of BCD data in D100 and D101 and outputs the data
through CIO 100.
There are 8 digits of data being output and the 7-segment display’s logic is the same as the Output
Unit’s logic, so the control data (C) is set to 4. D200 is used as the system word, D.
S
O
C
D
7SEG(214)
D100
100
4
D200
P_On
Always ON Flag