Delta AH500 Programming Manual page 331

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0704
MTR
Device X
Y
M
S
D
1
D
2
n
Symbol:
Explanation:
1.
S specifies the initial input device in the matrix scan. The eight devices starting from the device
specified by S are the input devices in the matrix scan.
2.
D
specifies the transistor output device Y as the initial device in the matrix scan. When the
1
conditional contact is OFF, the states of the n devices starting from D
3.
One row of inputs is refreshed every scan cycle. There are 16 inputs in a row, and the scan
starts from the first row to the n
4.
The eight input devices starting from the device specified by S are connected to the n output
devices starting from the device specified by D
the n rows of switches are read in the matrix scan, and stored in the devices starting from the
device specified by D
5.
When the instruction is used, users can connect at most 8 rows of input switches in parallel to
get 64 inputs (8×8=64).
6.
The interval between the time when the instruction is executed and the next time when it is
executed should be longer than the time it takes for the states of the I/O points on the module
to be refreshed. Otherwise, the correct states of the inputs can not be read.
7.
Generally, the conditional contact used in the instruction is the normally-open contact SM400.
8.
The operand n should be within the range between 2 and 8.
Example 1:
1.
When M0 is ON, the instruction MTR is executed. The states of the two rows of switches are
read in order, and stored in the internal relays M10~M17 and M20~M27 respectively.
2.
The diagram below is the external wiring diagram of the 2-by-8 matrix input circuit which is
Operand
S, D
, D
1
2
S
T
C
HC
D
Pulse instruction
S : Initial input device in the matrix scan
: Initial output device in the matrix scan
D
1
Initial corresponding device in the matrix
D
2
scan
n : Number of rows which are scanned
th
row.
.
2
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
, n
L
SM SR
E
16-Bit instruction (9 steps) 32-Bit instruction
AH500
to form the n rows of switches. The states of
1
Function
Matrix input
PR
K
16# "$"
DF
Bit
Bit
Bit
Word
are OFF.
1
6 - 1 6 3

Advertisement

Table of Contents
loading

Table of Contents