Delta DVP-ES3 — 6.9.2 Explanation of Logic Instructions

DVP-ES3 Series Programming Manual Example When M0 is ON, this instruction performs the matrix operation AND on each pair of corresponding bits on the data in the 16-bit devices D0–D2 and the data in 16-bit devices D10–D12. It stores the result in the 16-bit devices D20–D22. _6 Additional remarks 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. 3. Explanation of matrix instructions:  A matrix is composed of more than one 16-bit register.

The number of registers in a matrix is the length of the array n . There are 16Ч n bits in a matrix, and the matrix operation is performed on one bit at a time.  The matrix instruction takes the 16Ч n bits in a matrix as a string of bits, rather than as values. The matrix operation is performed on each bit.

 Matrix instructions mainly process the one-to-many or many-to-many status, such as moving, copying, 6-236 S1 b 15 b0 DY0 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 DY1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 D Y2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 Before the instructi on is executed S2 b 15 b0 D1Y10 00 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 D1Y110 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 D12 Y1 20 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 D b15 b0 DY22000 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 After the i nstruction D21 Y210 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 is executed D22 Y220 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 Y2200 21 Y21 22 Y22 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 DY0 DY1 D Y2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1Y10 0 1Y11 12 Y1 2 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0