I have a problem with my flow control.
I have a process where one random container is picked for checking.
All the others run around. (see Pic)
But they all have to stay in sequence so if the picked container is not finished until the other reach the connecting line the second one has to wait before moving on.
I have no idea how to adress the container for waiting...
Can someone help me?
Solved! Go to Solution.
I would rather use a PullControl on the merging line; there you can decide which part enters next (if any). Put a variable of type integer in your model that has initial value 1 and use this PullCtrl:
var blockList := ?.FwBlockList for var b := 1 to blocklist.Dim loop if blocklist[b].getNo = vNextID then vNextID += 1 ?.unblock(blockList[b]) exitLoop end next
Thanks for your reply.
Just to get sure I understood right:
I should create a list with the production programm and give every part a number like this:
1 - red car
2 - blue car
3 - black car
And then use the control you posted?
I tried this but the system is telling me it needs a interger as answer...
Can you tell me where my mistake is?
every MU in your model automatically has an integer number or ID; so if you only have 1 Source in your model, all MUs are automatically numbered 1,2,3,4,5,... In that case you can use the very simple approach that I've uploaded. Please note that the pull-control I've posted does not belong to the FlowControl, but to the next Line object (did you open my example model?). In a pull-control, there is no integer return value required, so maybe you did not create the vNextID variable?
PS: Of course you can also program the method like "if last car was red, then only allow a blue car next, etc" without integers.