Wired grey code decoder to main inputs I0.0 to I0.7 - David