Delta AH500 — 6.20.2 Explanation of Other Instructions

Chapter 6 Applied Instructions Symbol: D : Device in which the value in the index register is stored Word 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. D The number of times the data is stored D +1 E0 E1 D +2 ...... ...... ...... ...... D +32 E31 D +33 For system use D +34 +35 D E0 E1 +36 D D +37 E2 ...... 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 th time, the data in E0~E31 is transmitted to D+(the value in D0)*34+1~D+(the value in D0)*34+32. 6-435 API Instruction code Operand Function 1904 EPUSH P D Storing the contents of the index registers Device X Y M S T C HC D L SM SR E PR K 16# “$” DF D        Pulse instruction 16-bit instruction (3 steps) 32-bit instruction AH500 AH500 ─