sorting by colour with color buffer

Hello, I have a problem... I want to make a sorting by color project for my univercity. But the problem is that I have to make a color buffer. So if a second or third in a row (from the same color) passes, my program works good. Does anyone know how can I do It in SIEMENS TIA PORTAL? Here is a factory simulation in Factory I/O, with the main idea from color shorting.
sorry for my bad english :)

https://prnt.sc/10v7wfy
 
Does anyone know how can I do It in SIEMENS TIA PORTAL?


yes. there was a thread in this forum recently about a similar application; I'll see if can find it.



Also, there is no need to apologize for your English; it is better than my ελληνική γλώσσα ;).
 
Thanks for your answer; and nice try to speak greek haha.
I couldnt find something, after searching here... If you find it, please post it here.
thanks for your time
 
This looks like you need to track the packages by colour and push them down the right divert, if so then you need a word shift register, more information would be useful, for example, are there specific colours.
I suggest the way to go is you need a series of pulses from the conveyor drive, the cameras detect the colour, puts some form of ident into an array of words then the pulses from the conveyor drive push the ident along the array, when the array number matches the location of say "Blue" divert & it is blue it pushes the package down the divert conveyor for that lane.
I have no idea how you are going to determine the colours but suggest what ever the cameras give you just make it simple by putting a value corresponding to the colour in the array. Effectively the shift register array has enough "SLOTS" to give you a reasonable registration so effectively say a 0.5 metre of the conveyor is the equivalent of one of the arrays, it does not have to be that exact just detect pulses off the drive with a proximity so even for a 5 metre conveyor it could have any array size above 10, even 100.
I suggest you read this post there is also a pic of a diverter system that diverts based on an operator pressing one of seven buttons to divert a package down that line, I don't think I have the logic anymore but will look for it.
Look at post #44 for the pic.
 
[update: here it is https://www.plctalk.net/qanda/showthread.php?t=128167

- the problem statement has an operator defining the "value" of the product, which triggers the pusher/diverter valve,
- the conveyor stops while the operator inspects the new product and enters its value
- but otherwise the process is fairly similar to the one in this thread.]


As @parky says, you want an array of data, typically integers.

One index into (position in) the array corresponds to the camera station. Three other indices into the array correspond to the three pusher stations. The numerical differences between those indices correspond to the distances, and/or time, between the stations on the conveyor.

When the camera "sees" a product of a certain color, it puts that color's value into the array at the camera index. When a color's value is at the index of that same color's pusher station, that pusher activates. Parky mad a very nice image of the process in that thread.

In response to the the conveyor, along with any products, moving*, either the indices remain constant and the values are shifted through the array (FIFO or equivalent), or the values remain stationary in the array and the indices are incremented i.e. the indices "move" through the array. Which way it is done is an implementation detail.

* Or time progressing, if the conveyor moves at a constant rate.
 

Similar Topics

I'm new to PLCs and need some guidance on tips to program this: *conveyor is going at constant speed (10in/s) *boxes of varying lengths (all other...
39
Replies
2,375
Views
Hello All, I would consider myself a Moderate to Advanced Programmer when it comes to AB PLC's. However, i dont have much experience with HVAC...
10
Replies
979
Views
Dear PLC Community, I am setting up a board sorting line and facing a challenge with programming the sorting logic. Here is the setup: The...
48
Replies
4,868
Views
I have 3 values that are being sent to an array that are continuously being updated. I want to sort this array and do actions on it (i.e find the...
1
Replies
1,313
Views
We have a handful of feeder/sorter systems in use to feed parts to a machine. These consist of a rotating bowl which pushes the parts into a...
2
Replies
798
Views
Top