PeterW
Member
My few conveyors is building up.. PeterW Ill take your suggestion and use a internal pulse..
Is this how you usually do it?
(if motor running xxseconds then pulse cnt down section a)??
Virtually all my work is about tracking objects on conveyors, usually with a lot of information with them and with the restriction that items can never be confused.
It depends on what you need, if its just counting how many items then it can be simpler.
You need to ensure that the photo eye cannot 'see through' the pallet, so at all time when a pallet is passing the sensor is blocked.
Then you need to just track the leading edge of the pallet, which means a one shot when the pallet reaches the sensor.
The tracking can be done with single bits in registers or by moving registers, if there's no information being tracked then it can just be '1' = pallet, 'o' = no pallet.
Each 'bit' or 'register' move can be equal to a distance, if the conveyor moves 5 inches per second and the pulse is every 200mS then each pulse = 1 inch, so each movement in your model could be 1 inch.
You'd need to be able to detect the pallet if arrives slightly early or slightly late.
When a pallet is detected at the first photoeye, you can increment a count, when a pallet leaves the last photoeye you decrement a count.
The photoeyes in between, if an unexpected one appears then add one, if an expected one does not appear then subtract one.
You could do this type of counting on each conveyor is required.
If bits, then use Bit shift type instructions if using registers, use table move type instructions.
Only shift items in you model if your conveyor is running.