Design And Implementation Of An Automated Workpiece Pattern Recognition System Using Sensors And PLC.