Delta DVP-ES3 — 6.12.2 Explanation of Shift Instructions

DVP-ES3 Series Programming Manual Example Suppose the value in D0 is 9, and n is 4. When M0 is ON, the instruction stores the data in D4 in D20. After the instruction deletes the data in D4, it shifts the data in D5–D9 to the right, and decrements the value in D0 by one. S D n=4 D20 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 The length of the data The data is deleted. D20 D8 D7 D6 D5 D4 D3 D2 D1 D0 D9 22 The length of the data _6 Additional remarks 1. If the value in S is less than 0, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If S + n exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3.

If S +(the value in S ) exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 4. If n is not between 0– S , the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 6-324 4712 857 123 100 111 22 48 5 799 9 0 4712 857 123 100 111 48 5 799 8