EasyManua.ls Logo

Cutler-Hammer D50 - Logic Instruction Details; And, Dand

Cutler-Hammer D50
228 pages
Print Icon
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: Instructions 87
Logic Instruction Details
Instruction
Mnemonic Bit AND Operation Range
Bit
Byte
WAND
DAND
Bit AND operation
Word
Ladder
Process each bit of S1 and S2 in bit AND operation and store the
result in D.
S1 S2 D
000
010
100
111
Description
1. Process the values of the S1 and S2 bits (byte/word) in bit AND operation and store the result
in D.
For example: S1 = $00FF (hex)
S2 = $3333 (hex)
D = $0033 (hex)
2. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression Operation Results
Initial conditions: W0 = $00FF
W1 = $3333
W2 = $XXXX
Operation results: W0 = $00FF
W1 = $3333
W2 = $0033
WAND
D =
S1 =
S2 =
R
R
DAND
D =
S1 =
S2 =
S1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
S2 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
D
0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1
AND
DAND
D = W2
S1 = W0
S2 = W1
R0.0
R
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals