Chapter 3 Standard Instructions n used in the 32-bit instruction should be within the range between 1 and 128. 3. Only the 32-bit instructions can use the 32-bit counter. Example: When the instruction WSUM is executed, the values in D0~D2 are added up, and the sum is stored in D10. (D0+D1+D2) D10 D0 100 D10 After the instruction is executed D1 113 338 D2 125 3_ Additional remark: 1. If n used in the 16-bit instruction is less than 1 or larger than 256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 2. If n used in the 32-bit instruction is less than 1 or larger than 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. 3-349