Chapter 6 Applied Instructions Example When M0 is ON, the instruction performs the matrix exclusive operation OR on each pair of corresponding bits in the 16-bit devices D0–D2 and the data in 16-bit devices D10–D12. It stores the operation result in the 16-bit devices D20–D22. S1 b0 b15 After the instruction is executed Before the instruction is executed D b0 b15 S2 b0 b15 MXOR Additional remarks 6_ 1. If S 1 +n-1 , S 2 +n-1 , or D+n-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 is not between 1–256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B.
6-245 DY00 DY11 D2 Y2 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 DY2200 DY2211 Y22 D22 0 1 0 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0 0 0 DY1100 DY1111 DY1122 0 0 0 1 0 1 1 1 1 0 1 0 0 1 0 1 0 0 0 1 0 1 1 1 1 0 1 0 0 1 0 1 0 0 0 1 0 0 1 1 1 0 1 0 0 1 0 1