Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Re:parts to the store

Builder
Builder

Thank you Mr.Steffen

 

Sorry If wrote some bad progrms and ask you stupid questions. I have very poor knowledge about programming and i am new to technomatix.

 

I tried your suggestion but it still not working.

If you don't mind could you help me?

 

Regards

 

Re: Re:parts to the store

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
can you post your method? I cannot edit your model.
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Re:parts to the store

Builder
Builder

is
i:integer;
k:integer;
do
for i:=1 to store.xdim loop
for k:=1 to store.ydim loop
if store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Main_frame_red" then
store.pe(i,k).cont.move(partsfinishing);
elseif store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Anchor_winded_220_720" then
store.pe(i,k).cont.move(partsfinishing);
elseif store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Lower_Hfshell_red" then
store.pe(i,k).cont.move(motor_Assembly);
elseif store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Anchor_finis_220_720" then
store.pe(i,k).cont.move(motor_Assembly);
elseif store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Upper_hfshell_red" then
store.pe(i,k).cont.move(motor_Assembly);
elseif store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Handle_bar" then
store.pe(i,k).cont.move(final_Assembly);
elseif store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Motor_module" then
store.pe(i,k).cont.move(final_Assembly);
elseif store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Gear_box_2gears" then
store.pe(i,k).cont.move(final_Assembly);
elseif store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Flatstn_8_4_red" then
store.pe(i,k).cont.move(final_Assembly);
end;
next;
next;

end;

Re: Re:parts to the store

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
looks not bad; for calling this method you could use a generator (interval control), set as interval the cycletime of your store. The generator mill call the method ever and ever. Maybe, you need also to check, if the successor place is empty:

if store.pe(i,k).cont /=void and Store.pe(i,k).cont.name="Main_frame_red"
and partsfinishing.full=false then
store.pe(i,k).cont.move(partsfinishing);
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Re:parts to the store

Builder
Builder

Thanks a lot for your help and Patience.

It is working now

Re: Re:parts to the store

Pioneer
Pioneer

I tried to use nearly the same method for moving parts (Container: 1 ... Container: XX) from a store to Buffer 1. If I use the debugger, the first container moves to Buffer1. If don't use it, no container moves. Even if the first container moved, all the others rest in the storage BP_gefräst. I got following error in the debugger:

Container.PNGMaybe someone has an idea. I'm using SimTalk 2.0

 

Thank you!

Re: Re:parts to the store

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

pe is a method --> round brackets

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

Re: Re:parts to the store

Pioneer
Pioneer

Thank you, but it is still the same problem, that the container don't move. Only if I open the debugger and press F11.

Re: Re:parts to the store

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you cannot use the exit control of the store, to trigger a method; the exit control will be called, if you move a MU with SimTalk from the store. So, you need another trigger for your method.

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

Re: Re:parts to the store

Pioneer
Pioneer
Thank you, I put it in the entrance control and it works now.