Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming Operands: S : Matrix source device D : Operation result n : Matrix length (K1~K256) Explanations: 1. MBR instruction rotates the bits in the matrix to the left or the right. M1097 = OFF, bits rotate to the left, M1097 = ON, bits rotate to the right. The empty bit (left rotate: b0; right rotate: b16 n -1) after rotation performed once will be filled with the bit which is rotated out of the matrix (left rotate: b16 n -1; right rotate: b0) and the operation result is stored in D . In addition, the bit which is rotated out of the matrix will also be moved to M1095 (Carry flag for matrix operation). 2.

The pulse execution instruction MBRP is generally adopted. 3. If operands S or D use KnX, KnY, KnM, KnS format, only n = 4 is applicable. 4. Associated flags: M1095: Carry flag for matrix rotation/shift/output. M1097: Direction flag for matrix rotation/shift Program Example 1: When X0 = ON, M1097 = OFF, indicating a left matrix rotation is performed. The 16-bit registers D0 ~ D2 will perform a left matrix rotation and the result will be stored in the matrix of the 16-bit registers D20 ~ D22.

The matrix carry flag M1095 will be ON (1) 3-454 API Mnemonic Operands Function Controllers 189 MBR P Matrix bit rotate ES2/EX2 SS2 SA2 SX2 SE Typ e OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F MBR, MBRP: 7 steps S * * * * * * * D * * * * * * n * * * PULSE 16-bit 32-bit SA2 SA2 SA2 ES2/EX2 SS2 SX2 ES2/EX2 SS2 SX2 ES2/EX2 SS2 SX2 SE SE SE X RST M1097 MBRP D0 D20 K3