Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual KnX KnY KnM KnS T MOV, Movp 5 steps

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

1 702
Download 702 pages 56.54 Kb
Page 179
Image 179

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Instruction

Set

API

 

Mnemonic

 

Operands

 

 

Function

 

 

 

 

Controllers

 

12

D

MOV

 

P

 

 

 

 

Move

 

 

 

 

 

 

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

MOV, MOVP: 5 steps

 

S

 

 

 

 

*

*

*

*

*

*

*

*

*

*

*

DMOV, DMOVP: 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 of data

Explanations:

1.When this instruction is executed, the content of S will be moved directly to D. When this instruction is not executed, the content of D remains unchanged

2.If operand S and D use index register F, only 16-bit instruction is applicable

Program example:

1.MOV will move a 16-bit value from the source location to the destination.

a)When X0 = OFF, the content of D0 remains unchanged. If X0 = ON, the data in K10 is moved to D0.

b)When X1 = OFF, the content of D10 remains unchanged. If X1 = ON, the data of T0 is moved to D10 data register.

2.DMOV will move a 32-bit value from the source location to the destination.

a)When X2 = OFF, the content of (D31, D30) and (D41, D40) remain unchanged.

b)When X2 = ON, the data of (D21, D20) is moved to (D31, D30) data register. Meanwhile, the data of C235 is moved to (D41, D40) data register.

X0

MOV K10 D0

X1

MOV T0 D10

X2

DMOV D20 D30

DMOV C235 D40

3 - 6 3

Page 179
Image 179
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual KnX KnY KnM KnS T MOV, Movp 5 steps