Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Fill different Buffers from transporter with different goods until Buffer is full

Experimenter
Experimenter

Hi everyone,

 

I have a PS model in which my Transporter has a lot of different goods on it and I'm able to distribute them to the right buffers. My problem is that the transporter sends only one of each type to the buffer although there are more of them on it an the buffer has still enough capacity. I want the transporter to send all of its goods to the right buffer at once. Clearly my method isn't complete.

 

I someone able to help me ? Smiley Happy

 

my "unload" method so far:

 

is

do
if @.cont.name="Motorhaube" then
@.cont.move(Buffer_MH);
end;
elseif @.cont.name="Frontscheibe" then
@.cont.move(Buffer_FS);
elseif @.cont.name="Radio" then
@.cont.move(Buffer_R);
end;


end;

4 REPLIES 4

Re: Fill different Buffers from transporter with different goods until Buffer is full

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

try to insert it into a loop. Cont returns only one MU, you need to transfer the parts until your transporter is empty:

 

is
do
  while @.occupied loop
    if @.cont.name="Motorhaube" then
      @.cont.move(Buffer_MH);
    elseif @.cont.name="Frontscheibe" then
       @.cont.move(Buffer_FS);
    elseif @.cont.name="Radio" then
       @.cont.move(Buffer_R);
    end;
  end;

end;

 

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

Re: Fill different Buffers from transporter with different goods until Buffer is full

Experimenter
Experimenter

thx but it still doesn't work. It stops now and says that my method needs to be debugged because it doesn't end.

Re: Fill different Buffers from transporter with different goods until Buffer is full

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
what should happen, if the buffer is full?
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Fill different Buffers from transporter with different goods until Buffer is full

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

try this; the buffer needs time to shift the MUs foreward:

 

is
do
  while @.occupied loop
    if @.cont.name="Motorhaube" then
      @.cont.move(Buffer_MH);
    elseif @.cont.name="Frontscheibe" then
       @.cont.move(Buffer_FS);
    elseif @.cont.name="Radio" then
       @.cont.move(Buffer_R);
    end;
    wait(0.01);
  end;

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