DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

API

26

Mnemonic

Operands

Function

Controllers

DAND

P

Logical DWord AND

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

DAND, DANDP: 13 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.Logical double word (32-bit) AND operation.

2.This instruction conducts logical AND operation of S1 and S2 in 32-bit mode and stores the result in D.

3.If operands S1, S2, D use index F, only a 16-bit instruction is available.

Program Example:

When X1 = ON, the 32-bit source (D11, D10) and (D21, D20) are analyzed and the result of the logical AND is stored in (D41, D40).

 

X1

 

 

DAND

 

 

D10

 

 

 

D20

 

 

D40

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b31

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b15

 

 

 

 

 

 

 

 

 

 

 

 

 

b0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Before

 

 

1 1

1

1 1

1 1

1 0 0 0

0 1 1 1

1

1 1

1 1 1 1 1

1 0 0 0

0

1 1

1 1

 

D11

D10

 

 

 

 

 

 

 

 

 

 

 

 

 

DAND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

execution

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 0

0 1 0 0 1

0 0

0 1

1 0 1

0 0

0 0

0 1

0 0 1

0 0

0 1

1 0 1

0

0

 

 

 

 

 

 

 

 

After

D21

D20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

1

0

0

1

0

0

0

0

0

0

1

0

0

0

0

0

1

0

0

1

0

0

0

0

0

0

1

0

0

 

execution

D41

 

 

 

 

D40

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3 - 84

Page 200
Image 200
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Dand