336
Example When IR 00000 is ON and SR 28908 (the Communications Board Port A Instruc-
tion Execution Flag) is OFF, communications sequence 100 is called in the Com-
munications Board and data is transferred through Communications Board
port A.
Send data is read from the range of words beginning at DM 0000 (the first output
word) and reception data is stored in the range of words beginning at DM 0010
(the first input word).
00200 LD 00000
00201 AND NOT 28908
00202 PMCR(––)
# 1100
DM 0000
DM 0010
Address Instruction Operands
PMCR
#1100
DM0000
DM0010
00000 28908
5-28 Advanced I/O Instructions
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 Mnemonic Function
7-SEGMENT DISPLAY OUTPUT 7SEG(––) BCD output to 7-segment dis-
play
DIGITAL SWITCH INPUT DSW(––) Data input from a digital switch
HEXADECIMAL KEY INPUT HKY(––) Hexadecimal input from 16-key
keypad
TEN-KEY INPUT TKY(––) BCD input from 10-key keypad
MATRIX INPUT MTR(––) Data input from an 8 x 8 matrix
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.
5-28-1 7-SEGMENT DISPLAY OUTPUT – 7SEG(––)
S: First source word
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols Operand Data Areas
7SEG(––)
S
O
C
C: Control data
000 to 007
O: Output word
IR, SR, AR, DM, HR, LR
Limitations S and S+1 must be in the same data area.
DM 0000 to DM6143 can be used for O.
Advanced I/O Instructions Section 5-28