Delta AS Series Programming Manual page 665

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
API
Instruction code
1214
Device
X
S
n
D
Data
type
S
n
D
Symbol
Explanation
_6
1.
This instruction counts the bits with the value one or zero in the n devices starting from the device specified by S.
The instruction stores the operation result in D.
2.
When SM617 is ON, the instruction counts the bits with the value one. When SM617 is OFF, the instruction counts
the bits with the value 0. When the operation result is 0, SM618 is ON.
3.
The value in n must be between 1–256.
Example
Suppose SM617 is ON. When X0.0 is ON, the instruction counts the bits with the value one, and stores the operation
result in D20. Suppose SM617 is OFF. When X0.0 is ON, the instruction counts the bits with the value zero, and stores
the operation result in D20.
6 - 3 8 6
MBC
P
Y
M
S
T
C
Operand
Counting the bits with the value zero or
S, n, D
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
S : Matrix source
n : Length of the array
D : Operation result
Function
one
SR
E
K
16#
"$"
32-bit instruction
AS
-
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents