Does not have much information about the sensor but here is the connection for the old system.
Same sensor as in this thread:
67324
I'm pretty sure I tried changing to 4 sense pins and linuxcnc didn't start then either. Will double check tonight.
There is little difference in the code between the different versions:
From "old" comp
Code:
case 'D': // BCD
i = 0;
pow = 1;
while (i < inst_sense){
if (i < inst_sense) d += sense(i) << (i % 4);
i++;
if (i < inst_sense) d += sense(i) << (i % 4);
i++;
if (i < inst_sense) d += sense(i) << (i % 4);
i++;
if (i < inst_sense) d += sense(i) << (i % 4);
i++;
p += d * pow;
pow *= 10;
d = 0;
}
break;
From "new" comp
Code:
case 'D': // BCD
i = 0;
pow = 1;
while (i < inst_sense){
if (i < inst_sense) d += sense(i) << (i % 4);
i++;
if (i < inst_sense) d += sense(i) << (i % 4);
i++;
if (i < inst_sense) d += sense(i) << (i % 4);
i++;
if (i < inst_sense) d += sense(i) << (i % 4);
i++;
p += d * pow;
pow *= 10;
d = 0;
pcalc ^= sense(i);
}
break;