Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 836

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Precaution
• Do not read or write the system word (D) from any other instruction. 7SEG(214) will not operate
correctly 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.
• 7SEG(214) will not operate correctly if I/O refreshing is not performed with the Output Unit connected
to the 7-segment display after 7SEG(214) is executed. Consequently, do not connect the external
matrix to the following Units.
• Basic I/O Units or High-density I/O Units mounted in a SYSMAC BUS Remote I/O Slave Rack
• Communications Slaves (DeviceNet or CompoBus/S Slaves)
• After the 7-segment data is output in 12 cycles, 7SEG(214) starts over and converts the present
contents 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 to a 7-segment display connected to a CS1W-OD211 16-point Transistor Output Unit.
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. D32000 is used as the system word, D.
P_On
Always ON Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
7SEG(214)
D100
S
100
O
C
4
D
D32000
3. Instructions
3
799

Advertisement

Table of Contents
loading

Table of Contents