AS Series Programming Manual Symbol S 1 : Matrix source 1 S 2 : Matrix source 2 _6 D : Operation result n : Length of the array Explanation 1. This instruction applies the logical operator MAND to the n rows of binary representations in S 1 and the n rows of binary representations in S 2 . It performs the matrix operation AND on each pair of corresponding bits, and stores the operation result in D . 2. The result in each position is 1 if the first bit is 1 and the second bit is 1; otherwise, the result is 0. 3. The operand n must be between 1–256.
Example When X0.0 is ON, this instruction performs the matrix operation AND on each pair of corresponding bits on the data in the 16-bit devices Y0–Y2 and the data in 16-bit devices Y10–Y12. It stores the result in the 16-bit devices Y20–Y22. 6-236 API Instruction code Operand Function 0801 MAND P S , S , D, n 1 2 Matrix AND operation Device X Y M S T C HC D FR SM SR E K 16# “$” F S 1 S 2 D n BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S 1 S 2 D n Pulse instruction 16-bit instruction 32-bit instruction AS AS -