Explanation Of Logic Instructions - Delta AS Series Programming Manual

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al

6.9.2 Explanation of Logic Instructions

API
Instruction code
0800
D
Device
X
S
1
S
2
D
Data
type
S
1
S
2
D
Symbol
_6
Explanation
1.
This instruction applies the logical operator AND to the binary representations in S
AND operation on each pair of corresponding bits and stores the result in D.
2.
Only the DAND instruction can use the 32-bit counter.
3.
The result in each position is 1 if the first bit is 1 and the second bit is 1; otherwise, the result is 0.
Example 1
When X0.0 is ON, the instruction performs the logical operation AND on each pair of corresponding bits in the 16-bit
device Y0 and the 16-bit device Y2. It stores the result in Y4.
6 - 2 3 4
WAND
P
Y
M
S
T
C
Operand
S
, S
, D
1
2
HC
D
FR
SM
Pulse instruction
AS
: Data source 1
S
1
: Data source 2
S
2
D : Operation result
Function
Logical AND operation
SR
E
K
16#
16-bit instruction
32-bit instruction
AS
and S
It performs the logical
1
2
"$"
F
AS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents