EasyManua.ls Logo

Delta AH500 - 10.3 Installation; 10.3.1 Installing the Module

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-201
API
Instruction code Operand Function
0804
W
D
XOR P
S
1
, S
2
, D
Logical exclusive OR operation
Device
X Y M S T C HC D L SM SR E PR K 16#
“$” DF
S
1
S
2
D
Pulse instruction
16-bit instruction (7 steps)
32-bit instruction (7 steps)
AH500
AH500
AH500
Symbol:
S
1
Data source 1 Word/Double word
S
2
Data source 2 Word/Double word
D
Operation result Word/Double word
Explanation:
1. The logical operator XOR takes the binary representations in S
1
and S
2
, and performs the
logical exclusive OR operation on each pair of corresponding bits. The operation result is
stored in D.
2. Only the instruction DXOR can use the 32-bit counter.
3. The result in each position is 1 if the two bits are different, and 0 if they are the same.
Example 1:
When X0.0 is ON, the logical operator XOR takes the data in the 16-bit device Y0 and the 16-bit
device Y2, and performs the exclusive OR operation on each pair of corresponding bits. The
operation result is stored in Y4.
Before the instruction
is executed
A
fter the instruction
is executed
011 0 1 0 1 0 1 0 1
0 1 0 1
0 1
0 0 0 0 1 1 1 1 1 0
1 0 0 1
0 1
b0
b15
Y0
Y2
S1
S2
Y4
0 1 0 1 1 0 1 0 1 1
1 1 0 0
0 0
b0
b15
D

Table of Contents

Other manuals for Delta AH500

Related product manuals