So you have two package sizes to detect, Narrow and Wide.
1. Use a RTO timer T4:0 with a time base of 0.01. (2 seconds = "200"). Set your Preset Timer Value to "600".
When package is past the sensor, stop timer. (If you trigger timer with sensor ON, then the timer will stop automatically).
2. Use a Comparison Instruction: If timer T4:0/ACC is < 200, OTL B3:0/0 "NARROW PACKAGE".
3. If timer T4:0/ACC is >= 200, OTL B3:0/1 "WIDE PACKAGE".
4. When B3:0/0 or B3:0/1 is ON, then reset T4:0.
5. Now you finish the logic by adding the diverter output, a timer to control the diverter duration, a sensor that shows WHEN package arrrives at the diverter, and 2 OTU instructions to unlatch the NARROW PACKAGE or WIDE PACKGE bits when the Diverter Timer DN bit goes ON.
6. Your next assignment will involve 2 or more different-sized packages on the conveyor at the same time. How will you be able to track the size of each one as it arrives at the diverter? Start thinking about that future assignment now, so you will not be surprised later!