Delta AH500 Programming Manual page 602

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1904
EPUSH
Device X
Y
M
D
Symbol:
Explanation:
1.
The values in E0~E31 are stored in the devices specified by the value in D.
2.
The execution of the instruction involves thirty-four devices, and the last two devices are for
system use. If the instruction is executed and the number of times the data is stored is n, which
is the value in D, the data in E0~E31 is stored in D+34*n+1~D+34*n+32, and the value in D
becomes n+1.
3.
If the instruction EPUSH is executed several times, the data in E0~E31 is stored several times
in the devices specified by the changeable value in D. Therefore, the range of devices should
be wide enough.
4.
If the instruction is used with the instruction EPOP, the value which is stored last in the device
specified by the value in D is read first.
Example:
Suppose the value in D0 is 0. When X0.0 is ON for the first time, the data in E0~E31 is transmitted
to D1~D32, and the value in D0 becomes 1. When X0.0 is switched from OFF to ON for the second
time, the data in E0~E31 is transmitted to D35~D66, and the value in D0 becomes 2. When X0.0 is
switched from OFF to ON for the n
D0)*34+1~D+(the value in D0)*34+32.
6 - 4 3 4
Operand
P
D
S
T
C
HC
D
Pulse instruction 16-bit instruction (3 steps) 32-bit instruction
AH500
Device in which the value in the
D :
index register is stored
Th e n umb er of ti mes
D
th e d ata is sto re d
E0
+1
D
E1
D +2
E31
D +32
D +33
F or s ystem use
D +34
E0
+35
D
E1
+36
D
E2
D +37
th
time, the data in E0~E31 is transmitted to D+(the value in
Storing the contents of the index
registers
L
SM SR
E
PR
AH500
Function
K
16# "$"
DF
Word

Advertisement

Table of Contents
loading

Table of Contents