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.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

Program Example 2:<br />

1. M1161 = ON, 8-bit conversion.<br />

2. When X0 = ON, 6 bytes from low byte of D0 to low byte of D5 will be summed up, and the<br />

checksum is stored in D100 while the parity bits are stored in D101.<br />

M1000<br />

X0<br />

M1161<br />

CCD D0 D100 K6<br />

(S)<br />

D0 low byte<br />

D1 low byte<br />

D2 low byte<br />

D3 low byte<br />

D4 low byte<br />

D5 low byte<br />

Content of data<br />

K100 = 0 1 1 0 0 1 0 0<br />

K111 = 0 1 1 0 1 1 1 1<br />

K120 = 0 1 1 1 1 0 0 0<br />

K202 = 1 1 0 0 1 0 1 0<br />

K123 = 0 1 1 1 1 0 1 1<br />

K211 = 1 1 0 1 0 0 1 1<br />

D100<br />

D101<br />

K867<br />

Total<br />

0 0 0 1 0 0 0 1 The parity is 1 when there is a odd number of 1.<br />

The parity is 0 when there is a even number of 1.<br />

D100<br />

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

D101<br />

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

Parity<br />

3-236

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

Saved successfully!

Ooh no, something went wrong!