3 . I ns t r uc ti on Se t3- 4 3 7API Mnemonic Operands Function ControllersES2/EX2 SS2 SA2SESX2181 MOR P Matrix ORTypeOPBit Devices Word devices Program StepsX Y M S K H KnX KnY KnM KnS T C D E F MOR, MORP: 9 stepsS1 * * * * * * *S2 * * * * * * *D * * * * * *n * * *PULSE 16-bit 32-bitES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2Operands:S1: Matrix source device 1 S2: Matrix source device 2. D: Operation resultn: Matrix length (n = K1~K256)Explanations:1. MOR instruction performs matrix OR operation between matrix source device 1 and 2 withmatrix length n and stores the operation result in D.2. Rule of matrix OR operation: the result is 1 if either of the two bits is 1. The result is 0 onlywhen both two bits are 0.3. If operands S 1, S 2, D use KnX, KnY, KnM, KnS format, only n = 4 is applicable.Program Example:When X0 = ON, MOR performs matrix OR operation between 16-bit registers D0~D2 and 16-bitregisters D10~D12. The operation result is then stored in 16-bit registers D20~D22.X0MOR D0 D10 D20 K3111 0 00 1100 0011 0 00 1100 0011 0 00 1100 000 10 10 10 10 10 10 1010 10 10 10 10 10 10 1010 10 10 10 10 10 10 1011111100011111111 0 0110011 0 0110011 0 0110011111111111111 1111111111b15 b0MORBeforeExecutionAfterExecutionD0D1D2D10D11D12D20D21D22