Delta AH500 Programming Manual page 431

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1201
D
SUM
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The number of bits whose values are 1 in S is stored in D.
2.
When the values of the bits in the source device specified by S are 0, the zero flag SM600 is
ON.
3.
Only the 32-bit instructions can use the 32-bit counter.
Example:
When X0.0 is ON, the number of bits whose values are 1 in D0 is stored in D2.
Additional remark:
If the device exceeds the range, the instruction is not executed, SM0 is ON, and the error code in
SR0 is 16#2003.
Operand
S, D
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (5 steps)
AH500
S : Source device
D : Destination device
b15
0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0
D0
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Number of bits whose states are
ON
L
SM SR
E
PR
AH500
Word/Double word
Word/Double word
b0
3
D2
Function
K
16# "$"
DF
AH500
6 - 2 6 3

Advertisement

Table of Contents
loading

Table of Contents