17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

Program Example 2:<br />

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

2. When n = 4, the decoded data is 2 4 = 16 bits data.<br />

3. When X0 goes from OFF to ON, the 2 3 bits (b0 ~ b7) in D10 will be encoded and the result<br />

will be stored in the lower 3 bits of D20 (b2 to b0). The unused bits in D20 (b15 to b3) will be<br />

set to 0.<br />

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

X0<br />

ENCOP D10 D20 K3<br />

Invalid data<br />

b0<br />

0 1 0 1 0 1 0 1 0 0 0 0 1 0 0 0<br />

b15<br />

6 5 4 3 2 1 0<br />

D10<br />

7<br />

all be 0<br />

0 0 0 0 0 0 0 0 0 0 0 0 0 0 1<br />

b15<br />

D20<br />

1<br />

b0<br />

3-107

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!