Cancel
Showing results for 
Search instead for 
Did you mean: 

Containers stay in sequence

Valued Contributor
Valued Contributor

Hi everyone,

 

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.

Pic.PNG

I have no idea how to adress the container for waiting...

Can someone help me?

 

Best regards,

IceTea

4 REPLIES

Betreff: Containers stay in sequence

Gears Phenom Gears Phenom
Gears Phenom

Hello IceTea,

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

Regards
Alex

____________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Betreff: Containers stay in sequence

Valued Contributor
Valued Contributor

Hey, AlexD,

 

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?

 

Best regards,

IceTea

 

Betreff: Containers stay in sequence

Gears Phenom Gears Phenom
Gears Phenom

Hi IceTea,

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?

Regards
Alex

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.

____________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Betreff: Containers stay in sequence

Valued Contributor
Valued Contributor

Hey AlexD,

 

I found the mistake I really forgot vNextID...

 

Now its working perfect thak you!