Chapter 6: Instructions
75
Transfer Instructions
Mnemonic
Command
Word
Double Word
Description
LDR
(DLDR)
Load D
←
(Sr)
LDR
D =
Sr =
DLDR
D =
Sr =
Store value at absolute address Sr in
D.
Register
Absolute
Data
Value
Address
Value
Sr =
X
?
X
Y
D=
Y
STO
(DSTO)
Store (D)
←
Sr
STO
Sr =
D =
DSTO
Sr =
D =
Store Sr in register at absolute
address D.
Register
Absolute
Data
Value
Address
Value
Sr =
X
D=
Y
?
Y
X
MOV
Move
MOV
D =
Sr =
Ns =
Copy Ns words from Sr to D.
Sr
...... 1 0 1 0 1 0 1 0
Sr+1
...... 0 0 0 0 1 1 1 1
Sr+2
...... 1 1 1 1 0 0 0 0
Ns=3
D
...... 1 0 1 0 1 0 1 0
D+1
...... 0 0 0 0 1 1 1 1
D+2
...... 1 1 1 1 0 0 0 0
FMOV
Fill Move
FMOV
D =
Ns =
V =
Repeatedly copy the value V, Ns
times to words starting at D.
...... 1 0 1 0 1 0 1 0
Ns=4
D
...... 1 0 1 0 1 0 1 0
D+1
...... 1 0 1 0 1 0 1 0
D+2
...... 1 0 1 0 1 0 1 0
D+3
...... 1 0 1 0 1 0 1 0
V value
BMOV
Bit Move
BMOV
Db =
Sb =
Ns =
Move Ns bits from bit address Sb to
bit address Db.
Sb ...... 0 1 1 1 0 1 0 0
If Ns=4
Db ...... 0 1 0 1 0 1 0 0
BFMV
Bit Fill Move
BFMV
Db =
Ns =
V =
Repeatedly copy the bit value V, N
times to bit address Db. (V = 0,1) (Ns
= 0, 1,…, 15).
Ns=5
Db ...... 0 1 1 1 1 1 0 0
V=1
Содержание D320 PLC
Страница 1: ...D320 PLC User s Manual...
Страница 18: ...6 D320 PLC User s Manual...
Страница 28: ...16 D320 PLC User s Manual...
Страница 34: ...22 D320 PLC User s Manual...
Страница 78: ...66 D320 PLC User s Manual...
Страница 176: ...164 D320 PLC User s Manual...
Страница 210: ...198 D320 PLC User s Manual...
Страница 258: ...246 D320 PLC User s Manual...