Delta-electronics Extension Digital I/O Module DOP-EXIO14RAE Manuel d'utilisateur Page 136

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 157
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 135
Appendix D Use of Application Instructions|DOP-EXIO Series
Revision March, 2008, Doc. Name: 2007PDD23000014 D-55
Mnemonic Operands Function
SUM D
S
D
Sum of Active Bits
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 is used in device F, only 16-bit instruction is applicable.
16-bit instruction (5 Steps)
SUM
Continuous
execution
32-bit instruction (9 Steps)
DSUM
Continuous
execution
y Flags: M1020 (Zero flag)
Operands:
S
: Source device
D
: Destination device for storing counted value
Explanations:
1. Among the bits of S, the total of bits whose content is “1” will be stored in D.
2. When all the 16 bits of
S are “0”, zero flag M1020 = On.
3. When 32- instruction is in use,
D will occupy 2 registers.
Program Example:
When X10 = On, among the 16 bits of D0, the total of bits whose content is “1” will be stored in D2.
X10
SUM D0
D2
0000 00011 100 0000 K3
D2D0
Vue de la page 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 156 157

Commentaires sur ces manuels

Pas de commentaire