Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Wxor, Logical Word XOR

Models: DVP-ES2/EX2/SS2/SA2/SX2/SE

1 702
Download 702 pages 56.54 Kb
Page 203
Image 203

3 . Instruction Set

API

28

 

Mnemonic

 

Operands

Function

 

 

 

 

 

 

 

WXOR

 

P

 

Logical Word XOR

 

 

 

 

 

 

Controllers

ES2/EX2

SS2

SA2

SX2

SE

 

Type

 

Bit Devices

 

 

 

 

Word devices

 

 

 

 

 

 

Program Steps

 

OP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

Y

M

S

 

K

H

KnX

KnY

KnM

KnS

T

C

D

E

F

WXOR, WXORP: 7 steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S1

 

 

 

 

 

 

*

*

*

*

*

*

*

*

*

 

*

*

 

 

 

 

 

 

S2

 

 

 

 

 

 

*

*

*

*

*

*

*

*

*

 

*

*

 

 

 

 

 

 

D

 

 

 

 

 

 

 

 

 

*

*

*

*

*

*

 

*

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

16-bit

 

 

 

 

32-bit

 

 

 

 

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

 

 

 

 

 

 

SE

 

SE

 

SE

Operands:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S1: Source data device 1

 

S2: Source data device 2

 

D: Operation result

 

 

Explanations:

1.This instruction conducts logical XOR operation of S1 and S2 in 16-bit mode and stores the result in D

2.For 32-bit operation please refer to DXOR instruction.

Program Example:

When X0 = ON, the 16-bit data source D0 and D2 are analyzed and the operation result of the logical XOR is stored in D4.

X0

 

 

WXOR

 

D0

 

 

D2

 

 

D4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b15

 

 

 

 

 

 

 

 

 

 

 

 

b00

Before

D0

0 1

0

1 0

1 0

1 0 1 0 1

0 1

0 1

 

 

 

 

 

 

 

 

WOR

 

 

 

 

 

 

execution

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D2

0 0

0 0 1 1 1

1 1

0 1

0 0 1

0 1

 

After

D4

0

1

0

1

1

0

1

0

1

1

1

1

0

0

0

0

execution

3 - 87

Page 203
Image 203
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Wxor, Logical Word XOR