3 . Instruction Set

Program Example 2:

1.When S 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 data.

3.When X0 goes from OFF to ON, the 23 bits (b0 ~ b7) in D10 will be encoded and the result will be stored in the lower 3 bits of D20 (b2 to b0). The unused bits in D20 (b15 to b3) will be set to 0.

4.After the execution is completed, X0 is turned OFF and the data in D remains unchanged

 

X0

 

 

ENCOP

D10

 

D20

 

 

K3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Invalid data

 

 

 

 

 

 

 

 

 

b0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

1

0

1

0

1

0

1

0

0

0

0

1

0

0

0

 

 

b15

 

 

 

 

 

 

D10

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

all be 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

0

0

0

0

0

0

0

0

0

0

0

0

1

1

 

 

b15

 

 

 

 

 

 

D20

 

 

 

 

 

 

 

b0

 

3 - 107

Page 223
Image 223
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual D10