Delta DVP-ES2 User Manual Page 537

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 536
3. Instruction Set
3-421
API Mnemonic Operands Function
189
MBR P
Matrix bit rotate
Controllers
ES2/EX2 SS2 SA2
SE
SX2
Bit Devices Word devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
S * * * * * * *
D * * * * * *
n * * *
MBR, MBRP: 7 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
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:
b16n-1) after rotation performed once will be filled with the bit which is rotated out of the
matrix (left rotate: b16n-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)
X0
MBRP D0 D20 K3
RST
M1097
Page view 536
1 2 ... 532 533 534 535 536 537 538 539 540 541 542 ... 701 702

Comments to this Manuals

No comments