3 . Instruction Set

Program Example 2:

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

2.When n = 4, the decoded data is 24 = 16 bits.

3.When X20 goes from OFF to ON, the data in D10 (b2 to b0) will be decoded and stored in D20 (b7 to b0). The unused bits in D20 (b15 to b8) will be set to 0.

4.The lower 3 bits of D10 are decoded and stored in the lower 8 bits of D20. The higher 8 bits of D20 are all 0.

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

 

X20

 

 

 

DECOP

 

D10

 

D20

 

K3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b15

 

 

 

 

 

 

 

D10

 

 

 

 

 

 

b0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

1

0

1

0

1

0

1

 

0

1

0

1

0

0

1

1

 

 

 

 

 

 

all be 0

 

 

 

 

 

 

 

 

 

4

2

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

0

0

0

0

0

0

 

0

0

0

0

1

0

0

0

 

 

b15

 

 

 

 

 

 

 

D20

 

 

 

 

 

 

b0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3 - 105

Page 221
Image 221
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual D10 D20 B15 All be