We are asked to program a conveyor to carry two boxes along it and seperate the long from the short by the means of a kicker at end of conveyor.There is one sensor at start of conveyor x0 another sensor x1 after it . And a third sensor x2 at kicker to tell kicker to kick.The boxes are same width and height but the length varies.I can sepertae the boxes if ther is a gap between. But the problem is were asked to seperate the boxes with them all touching and in different orders meaning long box short box long box or two short boxes 1 long box. We are only to kick long boxes. The way the two sensors are positioned at start of conveyor is when x0 and x1 are true long box detected but when short box passes through the two sensors at one stage the two inputs will be off meaning short box detected. But if two short boxes pass touching the the plc thinks its a long box because x0 and x1 are on the gap between the sensors never takes place . We are only allowed to solve the problem using the sensors cant use timers or shift registers. Does any one have any ideas would greatly be