DVP-ES3 Series Programming Manual Symbol S 1 : Matrix source 1 S 2 : Matrix source 2 D : Operation result _6 n : Length of the array Explanation 1. This instruction applies the logical operator OR 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 OR 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, the second bit is 1, or both bits are 1; otherwise, the result is 0. 3. The operand n must be between 1–256.
Example When M0 is ON, the instruction performs the matrix 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. 6-240 API Instruction code Operand Function 0803 MOR P S1, S2, D, n Matrix OR 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 -