I need my PLC program to know where the object is located in order to branch out to next operation. This object that can move within 2 inches between point A and B only in straight line fashion so that ease the detection. What is the best way of "knowing" where the device is sitting between A...