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

Program Example 2:

1.M1161 = ON, 8-bit conversion.

2.When X0 = ON, 6 bytes from low byte of D0 to low byte of D5 will be summed up, and the checksum is stored in D100 while the parity bits are stored in D101.

M1000

M1161

X0

CCD

D0

D100

K6

(S)Content of data

D0 low byte

K100 = 0 1 1 0 0 1 0 0

 

 

D1 low byte

K111 = 0 1 1 0 1 1 1 1

 

 

D2 low byte

K120 = 0 1 1 1 1 0 0 0

 

 

D3 low byte

K202 = 1 1 0 0 1 0 1 0

 

 

D4 low byte

K123 = 0 1 1 1 1 0 1 1

 

 

D5 low byte

K211 = 1 1 0 1 0 0 1 1

 

 

D100

K867

 

 

D101

0 0 0 1 0 0 0 1

Total

The parity is 1 when there is a odd number of 1. The parity is 0 when there is a even number of 1.

D 10 0

0

0

0

0

0

0

1

1

0

1

1

0

0

0

1

1

 

D 10 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

0

0

0

1

0

0

0

1

Parity

3 - 236

Page 352
Image 352
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Parity