DVP-ES3 Series Programming Manual 2. For 16-bit instructions, the value in n must be between 1 – 256. 3. For 32-bit instructions, the value in n must be between 1 – 128. 4. Only the 32-bit instructions can use the 32-bit counter, but not the device E. Example The WSUM instruction adds up the values in D0–D2, and stores the sum (32-bit) in D10. (D0+D1+D2) D10 D0 100 D1 113 D10 After the instruction is executed 338 D2 125 _6 Additional remarks 1. For 16-bit instructions, the value in n is not between 1 – 256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 2.
For 32-bit instructions, the value in n is not between 1 – 128, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 3. If S + n -1 or D exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 4. For 16-bit instructions, ff you declare the operand D in ISPSoft, the data type is DWORD or ARRAY [2] of WORD. 5. For 32-bit instructions, if you declare the operand D in ISPSoft, the data type is ARRAY [2] of DWORD. 6-382