I currently have a model that looks like the following:
The source produces the following MUs:
I am currently struggling with the code which will only choose the color of MU to be added to the corresponding buffer (ex. Red add to RedBuffer etc)
I currently have the following code in my Method for the RedBuffer which is set for the sensor closest to that buffer:
is do --if Line.cont = .MUs.Red then Line.cont.move(RedBuffer); --end; end;
So wat do I need: I want the method to only choose the MUs which fits the Buffer (red to redbuffer etc). If the buffer is full the conveyor should keep on rotating the MUs.
Please help. Other methods or models suggestions would also be appreciated!!
Solved! Go to Solution.
in the sensorcontrol you can access the MU which triggers the sensor with @. @.name is the name of the MU:
if @.name="Red" then
freelance simulation specialist