Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 842

Table of Contents

Advertisement

3. Instructions
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.
• I/O refreshing must be performed with the Output Unit connected to the 7-segment display after each
7SEG(214) instruction is executed. If the cycle time is short, operation may not be correct depending
on the ON/OFF response time of the I/O Unit. If necessary, use an I/O Unit with a short ON/OFF
response time or use the minimum cycle time function to adjust the cycle time. Do not connect the 7-
segment display 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.
Example Programming
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
806
7SEG(214)
D100
S
O
100
C
4
D
D32000
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents