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

API

Mnemonic

Operands

Function

Controllers

215~

D

LD#

 

 

 

 

 

Contact Type Logic Operation

 

ES2/EX2 SS2

SA2 SX2

 

 

 

 

 

 

 

SE

 

217

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Type

Bit Devices

 

 

 

 

Word devices

 

 

 

 

Program Steps

 

OP

 

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

LD#: 5 steps

 

 

S1

 

 

 

 

 

*

*

*

*

*

*

*

*

*

*

*

DLD#: 9 steps

 

 

S2

 

 

 

 

 

* *

*

*

*

*

* * * * *

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

16-bit

 

32-bit

 

 

 

 

 

 

 

 

 

 

 

 

SA2

 

 

 

 

SA2

SA2

 

 

 

 

 

 

 

 

 

ES2/EX2 SS2

SE

SX2 ES2/EX2 SS2

SE SX2 ES2/EX2 SS2 SE

SX2

Operands:

S1: Source device 1 S2: Source device 2

Explanations:

1.This instruction conducts logic operation between the content in S1 and S2. If the result is not “0”, the continuity of the instruction is enabled. If the result is “0”, the continuity of the instruction is disabled.

2.LD# (#: &, , ^) instruction is used for direct connection with Left bus bar.

API No.

16 -bit

32 -bit

Continuity

instruction

instruction

 

condition

 

 

 

 

 

 

 

215

LD&

DLD&

S1

& S2≠0

216

LD

DLD

S1

S2≠0

217

LD^

DLD^

S1

^ S2≠0

Discontinuity

condition

S1 & S20

S1 S20

S1 ^ S20

3.Operation:

& : Logic “AND” operation, : Logic “OR” operation, ^ : Logic “XOR” operation

4.When 32-bit counters (C200 ~ C254) are used in this instruction, make sure to adopt 32-bit instruction (DLD#). If 16-bit instruction (LD#) is adopted, a “program error” will occur and the ERROR indicator on the MPU panel will flash.

Program Example:

1.When the result of logical AND operation between C0 and C10 ≠ 0, Y20 = ON.

2.When the result of logical OR operation between D200 and D300 ≠ 0 and X1 = ON, Y21 = ON and latched.

LD &

C0

C10

 

 

 

Y20

 

 

 

 

 

 

 

 

X1

 

LD

D200

D300

 

 

 

SET

Y21

 

 

 

 

 

 

3 - 468

Page 584
Image 584
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Dld