Chapter 6 Applied Instructions Four registers as a group are shifted to the left. 5 Being carried 2 1 3 4 Example 2: 1. When X0.0 is switched from OFF to ON, the data in the sixteen word devices starting from D20 is divided into groups (five words as a group), and these groups are shifted to the left. 2. The shift of the data in the word devices to the left during a scan is illustrated as follows. D35 → Being carried D30 → D35 D29~D25 → D34~D30 D24~D20 → D29~D25 D14~D10 → D24~D20 Five registers as a group are shifted to the left. Being carried 5 1 2 3 4 Additional remark: 1.
If S + n 2 -1 or D + n 1 -1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If n 1 is less than 1, or if n 1 is larger than 512, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 3. If n 2 is less than 1, or if n 2 is larger than n 1 , the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 6-243 13 D12 D11 D10 D3 5 D34 D33 D32 D31 D30 D29 D28 D27 D26 D25 D24 D 23 D22 D21 D20 D14 D1 3 D12 D11 D10 D3 5 D34 D33 D32 D31 D30 D29 D28 D27 D26 D25 D24 D2 3 D22 D21 D20