06-12-2016 06:16 AM
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 ?
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;
Solved! Go to Solution.
06-12-2016 06:25 AM - edited 06-12-2016 06:26 AM
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 | ![]() |
06-12-2016 06:49 AM
thx but it still doesn't work. It stops now and says that my method needs to be debugged because it doesn't end.
06-12-2016 06:51 AM
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |
06-12-2016 06:53 AM
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 | ![]() |