Cancel
Showing results for 
Search instead for 
Did you mean: 

Count two type of MUs

Pioneer
Pioneer

Hi,

 

I have problem with count two type of MUs. In my model I have type1.MUs  and type2.MUs. On one of the line there are two type of MUs. Before and after the line there are buffer for type1 and bufer type2 I would like create control like this

 

if numMU type 1 on line + numMU type 1 on buffer after line for type 1 = 20 then

 buffer before line work/ move

end

 

I would like to control total number of MU on line and buffer after the line using buffer before the line. I hope that I have explained what I mean. I attach my model. 

 

Thanks for the help

WD

 

 

4 REPLIES

Re: Count two type of MUs

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you could install two counter for the different entities (global variables).

 

At the entrance of the lines, you increase the counter for the enty, in the exit-control rear of the line you decrease the counter depend on the name of the MU.

 

Then you can use the counter in a method for control the moving to the work-station.

 

 

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

Re: Count two type of MUs

Pioneer
Pioneer

Thank You for Your help.

I have two counters for two types of MUs, methods to increase and decrease the counter. I'm planning to use method like this to control Buffer 

 

is
do
    if counter_tyep1 < 10 then
        @.move(Line2);
        end;
end;

 

Which value I should observe? Should I add counter_type1 to vlaue? How to do this?

Re: Count two type of MUs

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You cold install an exit control (front) in the buffer and wait in the exit control, until the counter has a certain amount:

 

waituntil counter_type1 < 10 prio 1;
@.move(line2); 

 

 

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

Re: Count two type of MUs

Pioneer
Pioneer

Thank You for Your help, this solves my problem.