Delta-electronics Extension Digital I/O Module DOP-EXIO14RAE Uživatelský manuál Strana 114

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 157
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 113
Appendix D Use of Application Instructions|DOP-EXIO Series
Revision March, 2008, Doc. Name: 2007PDD23000014 D-33
Mnemonic Operands Function
MUL D
S
1
S
2
D
Multiplication
Bit Devices Word Devices
X Y M S K H KnX KnY KnM KnS T C D E F
S
1
S
2
D
y Note:
1. If S
1
and S
2
are used in device F, only 16-bit instruction is applicable.
2. If D is used in device E, only 16-bit instruction is applicable.
16-bit instruction (7 Steps)
MUL
Continuous
execution
32-bit instruction (13 Steps)
DMUL
Continuous
execution
y Flags: None
Operands:
S
1
: Multiplicand
S
2
: Multiplicator
D
: Product
Explanations:
1. This instruction multiplies S
1
by S
2
in BIN format and stores the result in D. Be careful with the
positive/negative signs of
S
1
, S
2
and D when doing 16-bit and 32-bit operations.
2. In 16-bit BIN multiplication,
b15................ b00
X
=
b15................ b00 b31............ b16 b15.............b00
+1
b15 is a symbol bit b15 is a symbol bit
b31 is a symbol bit D+1) (b15 of
Symbol bit = 0 refers to a positive value.
Symbol bit = 1 refers to a negative value.
When D serves as a bit device, it can designate K1 ~ K8 and construct a 32-bit result.
3. 32-bit BIN multiplication,
b31.. b16
X
=
+1
b31 is a symbol bit b31 is a symbol bit
b63 is a symbol bit ) (b15 of D+3
Symbol bit = 0 refers to a positive value.
Symbol bit = 1 refers to a negative value.
b15.. b00 b31.. b16 b15.. b00
+1
b63. b48 b47. b32 b31. b16 b15. b00
+3 +2 +1
When D serves as a bit device, it can designate K1 ~ K8 and construct a 32-bit result, but only
stores low 32-bit data.
Zobrazit stránku 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 156 157

Komentáře k této Příručce

Žádné komentáře