Cancel
Showing results for 
Search instead for 
Did you mean: 

Warehouse exit method

Experimenter
Experimenter

Hello all,

 

I'm new to Plant Simulation and I need to model a warehouse of a factory.

The warehouse receives receives many quantities of n different parts (in my model there are 10 different parts/entities). As the warehouse receives parts, it has to supply parts to an assembly line in a given sequence.

What I want to do is to instruct the warehouse to supply parts in that given sequence.

I know that I have to use the "Method" object but I don't know how.

 

Can anyone help me?

Thanks a lot.

João

 

2 REPLIES

Re: Warehouse exit method

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi João,

the arrival of parts is caught by an entrance control. In the attached model a random arrival process is used. The desired sequence is contained in the Tablefile Part_Sequence. The next needed part is stored by the Variable object neededPart.
The code of the entrance control can be:

 Inventory.delete;
?.contentsList(Inventory);
Inventory.setCursor(1,1);
if Inventory.findAttr({1,1}..{*,*},"name", Part_Sequence[1,neededPart]) then
local PartObj:object := Inventory[Inventory.cursorX, Inventory.cursorY];
if PartObj.move(Drain) then
neededPart := neededPart + 1;
if neededPart > Part_Sequence.yDim then
neededPart := 1;
end;
end;
end;

 Regards,
Peter

 

Re: Warehouse exit method

Experimenter
Experimenter

Hello Peter,

 

Thanks for your help.

I tried to apply your code to a small model and it works OK. The problem is that when I apply it to a larger model I have the same problem again. The parts stay in the store and are not retrieved.

I am sending the model attached.

Something is wrong and I can't find what it is.

Any help is greatly appreciated.