Cancel
Showing results for 
Search instead for 
Did you mean: 

help sim. Supply 02 sources

Experimenter
Experimenter

 

I am trying sim. 02 different sources (part vs pallet) into Buffer then move them to WS for processing. after processing, separate and move them to 02 different WS. but it seems not working

 

could you help ?

 

pls see the attached file

 

thank you

6 REPLIES

Re: help sim. Supply 02 sources

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

your loading doesn't work, if you want to wait until the buffer is occupied, you need to select the front option of the exit control, in the attached file you find another option: use the exit control rear of the source_pallet to move one part on the pallet, this works in each case

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

Re: help sim. Supply 02 sources

Experimenter
Experimenter

Dear Steffen_B

 

thanks for your reply

 

How can I modify in this case ?

 

when run, why is the 1st pallet with 4 parts moved to Drain_pallet with 3 parts and one part moved to Part station, the correct way that is pallet will be moved to Drain_pallet and parts will be moved to Part station 

2nd round, Buffer has 02 pallets and Unload had error with this command (red color)

 

could you help ?

 

thank you

 

Re: help sim. Supply 02 sources

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
if you want to move the parts in the exit control of the source, you need to handle the case, that the pallet is full; then you need to wait until a new empty pallet is in the buffer e.g.; otherwise the transfer fails and the exit control of the source_part is not be called anymore (the pallets keep empty)

waituntil buffer.occupied prio 1
--pallet is full - wait for a new pallet
if pallet.cont.full then
waituntil buffer.empty
waituntil buffer.occupied
end

@.move(buffer.cont)


@.cont only returns one part, so your method unloads only one part
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: help sim. Supply 02 sources

Experimenter
Experimenter

now, the model can run

 

one more, if one pallet has 4 parts... how to move 4 parts (same time) to Drain_part and Pallet to Drain_pallet ? 

 

thank you

Re: help sim. Supply 02 sources

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
you can use a loop to unload the pallet

while @.occupied loop
@.cont.move(drain_part)
wait 0.001 --wait while the drain is processing the part
end
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: help sim. Supply 02 sources

Experimenter
Experimenter

Thank you Mr Steffen