Delta-electronics Extension Digital I/O Module DOP-EXIO14RAE Instrukcja Użytkownika Strona 99

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 157
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 98
Appendix D Use of Application Instructions|DOP-EXIO Series
D-18
Revision March, 2008, Doc. Name: 2007PDD23000014
Mnemonic Operands Function
MOV D
S
D
Move
Bit Devices Word Devices
X Y M S K H KnX KnY KnM KnS T C D E F
S
D
y Note:
1. If S, and D are used in device F, only 16-bit instruction is applicable.
16-bit instruction (5 Steps)
MOV
Continuous
execution
32-bit instruction (9 Steps)
DMOV
Continuous
execution
y Flags: None
Operands:
S
: Source of data
D
: Destination of data
Explanations:
1. When this instruction is executed, the content of S will be moved directly to D. When this
instruction is not executed, the content of D remains unchanged.
2. If the operation result refers to a 32-bit output, (i.e. application instruction MUL and so on), and
the user needs to move the present value in the 32-bit high-speed counter, DMOV instruction has
to be adopted.
Program Example:
1. MOV instruction has to be adopted in the moving of 16-bit data.
a) When X0 = Off, the content in D10 will remain unchanged. If X0 = On, the value K10 will be
moved to D10 data register.
b) When X1 = Off, the content in D10 will remain unchanged. If X1 = On, the present value T0
will be moved to D10 data register.
2. DMOV instruction has to be adopted in the moving of 32-bit data.
When X2 = Off, the content in (D31, D30) and (D41, D40) will remain unchanged. If X2 = On, the
present value of (D21, D20) will be sent to (D31, D30) data register. Meanwhile, the present
value of C235 will be moved to (D41, D40) data register.
X0
X1
X2
MOV K10 D0
MOV T0 D10
DMOV D20 D30
DMOV C235 D40
Przeglądanie stron 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 156 157

Komentarze do niniejszej Instrukcji

Brak uwag