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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 157
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 118
Appendix D Use of Application Instructions|DOP-EXIO Series
D-38
Revision March, 2008, Doc. Name: 2007PDD23000014
Mnemonic Operands Function
DEC D
D
BIN
減一
Bit Devices Word Devices
X Y M S K H KnX KnY KnM KnS T C D E F
D
y Note:
1. If D is used in device F, only 16-bit instruction is applicable.
16-bit instruction (3 Steps)
DEC
Continuous
execution
32-bit instruction (5 Steps)
DDEC
Continuous
execution
y Flags: None
Operands:
D
: Destination device
Explanations:
1. If the instruction is not a pulse execution one, the content in the designated device D will minus
“1” in every scan period whenever the instruction is executed.
2. In 16-bit operation, -32,768 minuses 1 and obtains 32,767. In 32-bit operation, -2,147,483,648
minuses 1 and obtains 2,147,483,647.
3. The operation results will not affect any flags.
Program Example:
When X0 = OffOn, the content in D0 minuses 1 automatically.
X0
DECP D0
Przeglądanie stron 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 156 157

Komentarze do niniejszej Instrukcji

Brak uwag