Delta DVP-ES2 Manuale Utente Pagina 533

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 702
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 532
3. Instruction Set
3-417
API Mnemonic Operands Function
187
MBWR P
Matrix bit write
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
* * * * * * *
n * * *
D
* * * * * ***
MBWR, MBWRP: 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 n: Matrix length (K1~K256) D: Pointer Pr (bit number).
Explanations:
1. MBWR instruction writes the bit status of the matrix. When MBWR executes, the status of
M1094 (Matrix pointer clear flag) will be checked first. If M1094 = ON, Pr value in D will be
cleared and the instruction writes from the first bit. The bit status of M1096 (Borrow flag for
matrix operation) is written into the first bit of the matrix. After a bit is written, MBWR checks
the status of M1093 (Matrix pointer increasing flag). If M1093 = ON, MBWR instruction will
proceed to write the next bit, i.e. Pr value plus 1. When MBWR proceeds to the last bit,
M1089 = ON, indicating the end of the Matrix, and D records the last bit number. After this,
MBWR instruction stops.
2. The Pointer (Pr) of the matrix is designated by the user in the instruction. The valid range of
Pr is 0 ~ 16n -1, corresponding to b0 ~ b16n-1 in the matrix. If the Pr value exceeds the valid
range, M1092 = ON and the instruction will be disabled.
3. If operands S or D use KnX, KnY, KnM, KnS format, only n = 4 is applicable.
Program Example:
1. When X0 goes from OFFON with M1094 = OFF (Starts from Pr value) and M1093 = ON
(Increase Pr value), the writing will start from the bit number in Pr and Pr value increases 1
after a bit is written.
2. Assume present value of pointer D20 = 45 and M1096 = ON (1) , the following result can be
obtained when X0 is executed once from OFFON.
X0
MBWRP D0 K3 D20
Vedere la pagina 532
1 2 ... 528 529 530 531 532 533 534 535 536 537 538 ... 701 702

Commenti su questo manuale

Nessun commento