beautypg.com

Delta DVP-ES2 User Manual

Page 183

background image

3 . I n s t r u c t i o n S e t

3 - 6 7

API Mnemonic Operands

Function

14

D CML P

Compliment

Controllers

ES2/EX2 SS2

SA2

SE

SX2

Bit Devices

Word devices

Program Steps

Type

OP

X Y

M S K H KnX KnY KnM KnS T C D E F

S

* *

*

*

*

*

*

*

*

*

*

D

*

*

*

*

*

*

*

*

CML, CMLP: 5 steps

DCML, DCMLP: 9 steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

Operands:

S: Source of data D: Destination device

Explanations:

1.

The instruction reverses the bit pattern (0→1, 1→0) of all the contents in S and sends the

contents to D.

2. If

operand

S and D use index register F, only 16-bit instruction is available

Program example 1:

When X10 = ON, b0 ~ b3 in D1 will be inverted and sent to Y0 ~ Y3

X20

CML

K1Y0

D1

b0

b1

b2

b3

b15

D1

1

0

1

0

1

0

1

0

1

0

1

0

1

0

1

0

Symbol bit

0=positive, 1=negative)

(

0

1

0

1

No variation

Transfer data

Program example 2:

The diagram below can be substituted by the instruction on the right.

X000

M0

M1

M2

M3

X001

X002

X003

X000

M0

M1

M2

M3

X001

X002

X003

M1000

CML

K1X0

K1M0

Normally ON contact

This manual is related to the following products: