EasyManua.ls Logo

Delta AH500 - Page 431

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-263
API
Instruction code
Operand Function
1201 D SUM P
S, D
Number of bits whose states are
ON
Device
X Y M S T C HC D L SM SR E PR K 16#
“$” DF
S
D
Pulse instruction
16-bit instruction (5 steps)
32-bit instruction (5 steps)
AH500
AH500
AH500
Symbol:
S
Source device Word/Double word
D
Destination device Word/Double word
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.
0 0 0 1 0 0 1 0 0 0
0 0 0 1
0 0
b0
b15
D0
D2
3
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.

Table of Contents

Other manuals for Delta AH500

Related product manuals