Cancel
Showing results for 
Search instead for 
Did you mean: 

Filling and emptying MU´s

Experimenter
Experimenter

Hello everybody,

I have a problem modelling the following issue:

 

There are MU´s with an attribute called Ammount.  This Ammount lies between 0 and 100 (Erlang).

The Ammount must be worked. (One ammount takes e.g. 0.5 seconds).This problem I´ve solved with "working Time := @.ammount*0.5"

now I need the same MU´s to be filled or emptied to an Ammount of 75 in the buffer (also the working time should be influenced with a brake of e.g. 2 seconds) and I´ve got no Idea how to solve this.

 

My order to a worker would be like "Take one (Input) box, count until it´s 75 in the (output)box or inputbox is empty. move the Outputbox out (If its ammout is 75) (Takes 2 seconds). Count inputbox further untill box is empty or 75 in the outputbox is reached. and so on

 

I would be gratful for any hint.

 

Greetings Wolfgang

3 REPLIES

Re: Filling and emptying MU´s

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
read the help for z_erlang, your mean value is equal to the max value, this triggers an error

just to understand your question: do want to fill up the buffer up to a sum of amount of 75 and then release all MUs?
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Filling and emptying MU´s

Experimenter
Experimenter

Hi

thank you for your answer.

I tried a lot and nearly solved my problem, but only nearly...

First, the z_Erlang is doing well so far. But here comes my (new) problem.

A MU is waiting on a Buffer untill its @.ammount is at ZielW. The ammount gets filled from the Workstation before (A Methode at Input of the Workstation) This works great until there is standing a MU at the buffer which is nearly full

(e.g. ZielW = 75 ammount ond buffer MU is 74)  and at the worksation is a MU with more ammount than necessarry (lets say 80). To prevent my methode from a failure, I put the one ammount to the Buffer MU and Move the Proc MU back to the buffer before the Proc. Then the failure below pops up and I don´t get it why... Because what he is doing at my else... if belegt is false???

when I tell him go on with simulation everything is fine until the same constellation comes up

 

Greetings Wolfgang

 

 

22-02-_2018_10-30-29.jpg

Re: Filling and emptying MU´s

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
this could happen, if the MU (formerly @) was moved or deleted.
@ you can only use for one MU (only the MU that triggers the sensor)

As this is your entrance control, this may happen during the simulation run.
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net