3 products 1 source!
Posted: Sunday 24 February, 2013 - 17:54
Hi
I'm very new to ED and finding it quite difficult, any help will be much appreciated.
I'm trying to use a single source to produce 3 different items one by one
I have set up within the source, trigger on creation:
Icon(i) := Uniform(19,21)
which produces the three different colours (blue, brown and pink) however a uniform distribution isn't correct. I wish for it to be 1 blue, 1 brown, and 1 pink and then repeat, repeat, repeat etc... thus setting the label. What distribution should i be using? And how do I type it in?
This is then sent to a robot that places them onto the required conveyor.
Again I'm having problems with the robot... I haven't come across any examples how to have a three way split, all example only have a 2 was split.
I want label 19 to go to channel 1, label 20 to channel 2 and label 21 to channel 3...
At present i have:
if(icon(rank(1,c)) = 19, 1, 3)
As fair as I understand the above means... if the label is 19 then send to channel 1 else send to channel 3.... How do I added in if label is 20 then send to channel 2?
Many thanks
Ryan
I'm very new to ED and finding it quite difficult, any help will be much appreciated.
I'm trying to use a single source to produce 3 different items one by one
I have set up within the source, trigger on creation:
Icon(i) := Uniform(19,21)
which produces the three different colours (blue, brown and pink) however a uniform distribution isn't correct. I wish for it to be 1 blue, 1 brown, and 1 pink and then repeat, repeat, repeat etc... thus setting the label. What distribution should i be using? And how do I type it in?
This is then sent to a robot that places them onto the required conveyor.
Again I'm having problems with the robot... I haven't come across any examples how to have a three way split, all example only have a 2 was split.
I want label 19 to go to channel 1, label 20 to channel 2 and label 21 to channel 3...
At present i have:
if(icon(rank(1,c)) = 19, 1, 3)
As fair as I understand the above means... if the label is 19 then send to channel 1 else send to channel 3.... How do I added in if label is 20 then send to channel 2?
Many thanks
Ryan