cancel
Showing results for 
Search instead for 
Did you mean: 

Priority among Buffers

Creator
Creator

Hello, 

 

In the model attached below, how do I give the priority for BufferM1 over BufferM123? 

 

I want to achieve the following. If there is BatchX planned via the delivery tables for the corresponding machines, then the Machine should process it over the BatchY, which is delivered from Buffer123. 

 

BatchY should wait until one of the machines is free. If more than one is free, then should choose it randomly.

 

Is there a way to achieve this via Pull Control or Exit Control? 

 

Thanks in advance

2 REPLIES

Re: Priority among Buffers

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Orxan,

please start with the following example of the Example collection on the Start Page:

Category "Discrete material flow", Topic "Pull control".

For your problem we use a pull control of the stations M1, M2 and M3.

The blocking list can contain one or two movable units (MU).

The MUs of the class BatchX have higher priority.

For the verification I recommend to use 3:00:00 for the value SourceY.Interval.

Then you will see the event when two MUs are waiting for a free machine M1, M2 or M3.

The attached model is for Plant Simulation 12.0 or later.

This is the program for the pull control:

 local BlockTable:table;
BlockTable.create;
?.fwBlockList(BlockTable);
if BlockTable.yDim = 1 then
?.unblock(BlockTable[1,1]);
else
if BlockTable[1,1].class.name = "BatchX" then
?.unblock(BlockTable[1,1]);
else
?.unblock(BlockTable[1,2]);
end;
end;

Regards,

Peter

 

 

Re: Priority among Buffers

Creator
Creator
Thanks Peter.