Delta Electronics — 6.20.2 Explanation of Other Instructions

AS Series Programming Manual Symbol D : Device from which the value is read Explanation 1. This instruction reads the values in the devices specified by D into E0–E9, and decrements the value in D by one. The valid value for D is between 1–100. The instruction does not execute values that exceed the range. _6 2. The instruction involves sixteen devices, and the last six devices are for system use. If you execute the instruction and the number of times the data is stored is n (the value in D) , the instruction stores the data in E0–E9 in D +16*(n-1)+1– D +16*(n-1)+10, and decrements the value in D to n-1. 3.

This instruction uses a pulse instruction to interact with the stack, taking the TOP VALUE from the stack and assigning it to the specified variable; therefore, you must reset the contact before the next operation. 4. The value that the instruction stores last in the device specified by D is read first, following the LIFO (last in first out) principle. 6-638 API Instruction code Operand Function 1905 EPOP P D Reading the data into the index registers Device X Y M S T C HC D FR SM SR E K 16# “$” F D  BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type D    Pulse instruction 16-bit instruction 32-bit instruction AS AS ─