Chapter 6 Applied Instructions Symbol S 1 : Matrix source 1 S 2 : Matrix source 2 D : Operation result n : Length of the array 6_ 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.
6-235 API Instruction code Operand Function 0801 MAND P S1, S2, D, n Matrix AND operation Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 D n BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 D n Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 -