Delta AS Series Programming Manual page 656

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 1
1.
When SM606 is OFF, the instruction uses the 16-bit conversion mode.
2.
When X0.0 is ON, the instruction adds up the six pieces of data in D0–D2 (eight bits in a group). The instruction
stores the sum in D100, and stores the values of the parity bits in D101.
Data
S
D0 Low
100 = 0 1 1 0 0 1 0 0
D0 High
111 = 0 1 1 0 1 1 1 1
D1 Low
120 = 0 1 1 1 1 0 0 0
D1 High
202 = 1 1 0 0 1 0 1 0
D2 Low
123 = 0 1 1 1 1 0 1 1
D2 High
211 = 1 1 0 1 0 0 1 1
D100
867
D101
0 0 0 1 0 0 0 1
D100
0
0
0
0
0
D101
0
0
0
0
0
Example 2
1.
When SM606 is ON, the instruction uses the 8-bit conversion mode.
2.
When X0.0 is ON, the instruction adds up the six pieces of data in D0–D5 (eight bits in a group). The instruction
stores the sum in D100, and stores the values of the parity bits in D101.
Sum
T he parity bit is set to 1 if the number of ones i s odd.
T he parity bit is set to 0 if the number of ones i s even.
0
1
1
0
1
1
0
0
0
0
0
0
0
0
0
1
0
0
Ch ap te r 6 Ap pl ie d Instruc ti ons
1
1
Pari ty bits
0
1
6_
6 - 3 7 7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents