3. Instruction Set

API

Mnemonic

Operands

Function

Controllers

14

D

CML

 

P

 

 

 

 

Compliment

 

 

 

 

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

CML, CMLP: 5 steps

 

 

S

 

 

 

 

*

*

*

*

*

*

*

*

*

*

*

DCML, DCMLP: 9 steps

 

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:

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

D1

K1Y0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b15

 

 

 

 

 

 

b3

b2

b1

b0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

X001

M1

X002

M2

X003

M3

X000

M0

X001

M1

X002

M2

X003

M3

Normally ON contact

M1000

CML K1X0 K1M0

3 - 6 7

Page 183
Image 183
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Api, Cml