The project is to scan and sort boards of four different lengths. One of four pneumatic kickers will trigger based on the board size. I am using an array to store the data, and using bit shift left to identify when to activate the appropriate kicker.
Currently, I have the size and location hardcoded using Bools pointing to the location and size of the boards.
This is being done on an Allen-Bradley ControlLogix PLC. I am using a photoeye and a high-speed counter for detection.
Attached is the routine for reference. The hardcoded detection are on rungs 13-18.
I am wondering if there is a better way of programming when the appropriate kicker should trigger?
Any ideas are greatly appreciated.
Final Project - PLC MainRoutine - v8.pdf