Cancel
Showing results for 
Search instead for 
Did you mean: 

Control Maximum numbers of object allowed in the line

Creator
Creator

Hello,

 

I would like to control number of objects allowed in the line. Suppose, I have two parts (A and B). I do not want more than five A parts inside the line. Part B can be as many as there can be. Is there any way to control this with flowcontrol?

 

I know somehow I would have to observe all the stations inside a line and see if it has part A  or part B and have a sometype of counter but is there a way to put them in the frame and have a control that I do not want part A more than five inside the frame?

 

I am open to other sugesstions.

 

Thank you for your help. 

 

Manan Trivedi 

5 REPLIES

Re: Control Maximum numbers of object allowed in the line

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

do you mean in the complete frame or in a part of your frame (e.g. on a line)

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Control Maximum numbers of object allowed in the line

Creator
Creator

in a part of frame. Oh sorry what I meant by  a line is multiples signle proc stations.  

Re: Control Maximum numbers of object allowed in the line

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You can use a global variable as counter and I guess you need a buffer for storing the A-parts until they can enter the line.

At the entrance of the line you move the part A to the buffer or in the line depend on the counter. If you move the part into the line, you increase the value of the counter. At the end of the line you decrease the counter and move one part A from the buffer to the line, if there is a stock and the counter is lower than 5.

 

 

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Control Maximum numbers of object allowed in the line

Creator
Creator

Thank you for your promt reply. I was able to put the counter before part A enters the line and exit the line.

 

Now, How can I control that I do not want part A more than five in the line?  Again, line refers to multiples signal proc.  

 

Thank you.

 

Manan T.

 

 

Re: Control Maximum numbers of object allowed in the line

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
for this kind of control you need separate entrances for the different parts (e.g. buffers). In the exit-control of the buffer you could wait, until the counter is lower than 5:

waituntil counter<5 prio 1;
counter:=counter+1;
@,move;

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net