The low price of programmable-logic controllers (PLCs) makes these small devices a good choice for many system designs. Most of the controllers, however, accommodate only digital inputs. One such ...