Changed motor signal handling for new opto-coupler handling