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

API

41

Mnemonic

Operands

Function

Controllers

DECO

P

Decode

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

DECO, DECOP: 7 steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

 

*

*

*

*

 

*

*

 

 

 

 

 

 

*

*

*

 

*

*

 

 

 

 

 

 

 

D

 

 

*

*

*

 

 

 

 

 

 

 

 

 

 

*

*

*

 

*

*

 

 

 

 

 

 

 

n

 

 

 

 

 

 

*

 

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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 device to be decoded

 

D: Device for storing the result

n: Number of consecutive

 

bits of S

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Explanation:

1.The instruction decodes the lower “n” bits of S and stores the result of “2n” bits in D.

2.This instruction is generally used in pulse execution mode (DECOP).

3.When operand D is a bit device, n = 1~8, when operand D is a word device, n = 1~4

Program Example 1:

1.When D is used as a bit device, n = 1 ~ 8. Errors will occur if n = 0 or n > 8.

2.If n = 8, the decoded data is 28= 256 bits data.

3.When X20 goes from OFF to ON, the data of X0~X2 will be decoded to M100~M107.

4.If the source data is 3, M103 (third bit from M100) = ON.

5.After the execution is completed, X20 is turned OFF. The decoded results or outputs will retain their operation.

 

X20

 

DECOP

X0

 

M100

K3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X2

X1

X0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

1

 

 

 

 

 

 

 

 

4

2

1

 

 

 

7

 

6

5

4

3

2

1

0

 

3

0

 

0

0

0

1

0

0

0

M107 M106 M105 M104 M103 M102 M101 M100

3 - 104

Page 220
Image 220
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual KnX KnY KnM KnS DECO, Decop 7 steps