DVP-ES3 Series Programming Manual Example When M0 is ON, the instruction adds up the values in the three registers starting from D0. The instruction divides the sum by 3. The instruction stores the quotient in D10, and leaves out the remainder. (D0+D1+D2)/3 D10 D0 100 D10 After the instruction is executed D1 113 112 D2 125 The quotient 2 is left out. Additional remarks 1. For 16-bit instructions, if n 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 instruction, if n is not between1–128, the instruction is not executed, SM0 is ON, and the error code in _6 SR0 is 16#200B. 3.
If S + n -1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 6-364