Cancel
Showing results for 
Search instead for 
Did you mean: 

Conveyor should be filled first then should remove MU

Creator
Creator

How to model a conveyor that should be filled first to its capacity & then should release MU to next station.

 

 

 

The model uploaded is working fine till we change the source time interval to anything other then zero.

5 REPLIES 5

Re: Conveyor should be filled first then should remove MU

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello,

you are right, after the change of the interarrival times of the sources to 2 min the simulation stops since there is no event. The reason is that both conditions in the exit control are not satisfied.

 

For the solution I recommend that you do not use the exit control of another object.

Please try the following idea: Use an custom method init of Conveyor2:

var Conv:object := self.~
Conv.exitLocked := true
waituntil Conv.numMU = Conv.Capacity prio 1
Conv.exitLocked := false

The attached model is for Plant Simulation 14.1

Regards,

Peter

 

Re: Conveyor should be filled first then should remove MU

Creator
Creator
Tried to replicate the same but unable to do it. It will be a great help if you can can modify the model & send it again.

Re: Conveyor should be filled first then should remove MU

Creator
Creator
How to call the mesthod init everytime in the model.

Re: Conveyor should be filled first then should remove MU

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello,

in my example the Init method is a custom attrbute of type method.

Open the Conveyor2, goto the tab User-defined. You see the attribute Init of type method.

This method is called during the Init phase of the simulation. You are right, that this method is called once.

But it can run the entire simulation time, if you use a never ending loop repeat .... until false:

var Conv:object := self.~
repeat
Conv.exitLocked := true
Conv.entranceLocked := false
waituntil Conv.numMU = Conv.Capacity prio 1
wait 60 -- switch to emptying

Conv.exitLocked := false
Conv.entranceLocked := true
waituntil Conv.numMU = 0 prio 1
wait 60 -- switch to filling

until false

The simulation time is progressing during the waituntil instruction and the instruction wait 60.

The Plotter (object Chart, Diagramm) shows the emptying and filling operations.

The attached model is for Plant Simulation 14.1.

Regards,

Peter

 

Re: Conveyor should be filled first then should remove MU

Creator
Creator
With help of your guidance created a exit method at the conveyor now the model is working fine. Thanks a lot for the help. if conveyor2.full = false @.move(conveyor2) elseif conveyor.full = false waituntil .Models.Frame1.Conveyor.numMU = .Models.Frame1.Conveyor.Capacity prio 1 @.move(conveyor1) end