Omron SYSMAC C200HS Operation Manual page 311

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Advanced I/O Instructions
5-28 Advanced I/O Instructions
5-28-1 7-SEGMENT DISPLAY OUTPUT – 7SEG(––)
Limitations
Overview
Advanced I/O instructions enable control, with a single instruction, of previously
complex operations involving external I/O devices (digital switches, 7-segment
displays, etc.).
There are five advanced I/O instructions, as shown in the following table. All of
these are expansion instructions and must be assigned to function codes before
they can be used.
Name
7-SEGMENT DISPLAY OUTPUT
DIGITAL SWITCH INPUT
HEXADECIMAL KEY INPUT
TEN-KEY INPUT
MATRIX INPUT
Although TKY(––) is used only to simplify programming, the other advanced I/O
instructions can be used to shorten cycle time, reduce the need for Special I/O
Units, and reduce system cost. With the exception of TKY(––), however, the ad-
vanced I/O instructions can only be used once each in the program and cannot
be used for I/O Units mounted to Slave Racks, where Special I/O Units must be
used.
Ladder Symbols
7SEG(––)
S
O
C
S and S+1 must be in the same data area.
Do not set C to values other than 000 to 007.
When the execution condition is OFF, 7SEG(––) is not executed. When the exe-
cution condition is ON, 7SEG(––) reads the source data (either 4 or 8-digit), con-
verts it to 7-segment display data, and outputs that data to the 7-segment display
connected to the output indicated by O.
The value of C indicates the number of digits of source data and the logic for the
Input and Output Units, as shown in the following table.
Source data
Display's data input logic
4 digits (S)
g
( )
Same as Output Unit
Different from Output Unit
8 digits
g
Same as Output Unit
(S S 1)
(S, S+1)
Different from Output Unit
Mnemonic
7SEG(––)
BCD output to 7-segment dis-
play
DSW(––)
Data input from a digital switch
HKY(––)
Hexadecimal input from 16-key
keypad
TKY(––)
BCD input from 10-key keypad
MTR(––)
Data input from an 8 x 8 matrix
Operand Data Areas
S: First source word
IR, SR, AR, DM, HR, TC, LR
O: Output word
IR, SR, AR, HR, LR
C: Control data
000 to 007
Display's latch input logic
p
Same as Output Unit
Different from Output Unit
p
Same as Output Unit
Different from Output Unit
p
Same as Output Unit
Different from Output Unit
p
Same as Output Unit
Different from Output Unit
Section 5-28
Function
C
0000
0001
0002
0003
0004
0005
0006
0007
301

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents