Cancel
Showing results for 
Search instead for 
Did you mean: 

how to move remaining parts in a store

Pioneer
Pioneer

Hi community

 

I need to move all parts from a store to a specific buffer, I used an attribute to perform this task, but the problem is that some remaining parts don't go out of store unless the next part type enters the store, this causes the parts mix and that the setup time for each part is applied again.

I used this code to move the parts from store to the buffers:

 

var tab : table
var part: object

Store.ContentsList(tab)
tab.setCursor(1,1)
		
if tab.findAttr({*,*}..{*,*},"Next_Operation","OP30")
		part:= tab[tab.cursorX, tab.cursory]
		part.move(BA11)
		
elseif tab.findAttr({*,*}..{*,*},"Next_Operation","OP40")
		part:= tab[tab.cursorX, tab.cursory]
		part.move(BA12)		
		
elseif tab.findAttr({*,*}..{*,*},"Next_Operation","OP50")
		part:= tab[tab.cursorX, tab.cursory]
		part.move(BA13)		
			
end

 

I hope you can help me or give me some suggestions to solve the problem, I attached my practice model.

Regards

Charly

 

2 REPLIES

Re: how to move remaining parts in a store

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
you are mixing the parts already in the buffers BA1, BA11. To avoid this you could make a endless fifo buffer: move all parts into BA11, from BA11 all parts to BA1 and all parts from BA1 to L2; only L2 distributes to OP30a and OP30b

The store entrance control may be also a problem. try to trigger the method with a generator with a regular interval.

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

Re: how to move remaining parts in a store

Pioneer
Pioneer

Hello Mrs. Steffen thanks for your reply

 

If I understood correctly, all parts that leave the OP 20 should go directly to the store and then move them using the sequence you describe? or just apply this to the new part type.

 

Regards

Charly