Cancel
Showing results for 
Search instead for 
Did you mean: 

How to Revoke source in Interval Adjustable??

Pioneer
Pioneer

Hello,

I want to run my simulationfor 20 days.

I have sued generator with interval control

is
do
	Days := Days +1;
	Source.start := 36000 +(86400*Days);
	Source.stop := 61200 + (86400*Days);
end;

Where Day is a variable

But after one day it is not getting started again.

So please Help.

7 REPLIES

Re: How to Revoke source in Interval Adjustable??

Legend
Legend
You can use the end attribute of event controller.

If you want to change it by code:
eventcontroller.end := 20:00:00:00.

Re: How to Revoke source in Interval Adjustable??

Pioneer
Pioneer
Actually the problem is it running for 20 days but it is producing part only on first day for rest of the time it is stopped. So I want to know the method to Revoke the source on 10 am next day

Re: How to Revoke source in Interval Adjustable??

Legend
Legend
Ok, so basically you want your source stop after a certain moment of the day and start the day after?
If so, have a look at the shift calendar. You can stop your object for example at 8.00 PM and start againg at 10.00 AM.

If you need something else maybe it could be useful see your model to understand what exactly you're modeling.

Re: How to Revoke source in Interval Adjustable??

Pioneer
Pioneer
Cant we do any thing in interval adjustable

Re: How to Revoke source in Interval Adjustable??

Gears Phenom Gears Phenom
Gears Phenom

Hi Piyush,

 

I would also suggest using the ShiftCalendar, like @Alessio stated above. What you are doing seems a bit too complicated to me. However, your approach is working for me (in Plant 12.0; also remember to set the "Interval" of the Generator to 1 day [no need to change the other values]).

 

You could try the following to re-start the source, after changing Start/Stop during the runtime (note that I have moved "Days := Days + 1;" to the end, because I would model it as integer-variable with initial value of zero):

 

is
do
	Source.start := 36000 +(86400*Days);
	Source.stop := 61200 + (86400*Days);
	Source.timeOfGeneration := "Number Adjustable";
	Source.timeOfGeneration := "Interval Adjustable";
	Days := Days +1;	--> variable **with initial value** 0!
end;

 

Regards,

Alex

____________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Re: How to Revoke source in Interval Adjustable??

Pioneer
Pioneer

Hi Alex,

 

I have applied shift calender in the model.

The shift is of 7 hrs and 1 hr pause.

I have used Interval adjustable, with interval of 1 min.

According to my settings the source should produce 720 parts in 2 days but it is producing around 2400.

 

Please help

 

Regards

Piyush

Re: How to Revoke source in Interval Adjustable??

Gears Phenom Gears Phenom
Gears Phenom

Hi Piyush,

 

uncheck the Blocking-checkbox of the source. Else the source will remember, when it tried to produce parts but was not able to (--> during the pause/unplanned times), and create all those MU's at once when the pause/unplanned time is over. I would in that case recommend putting an infinite-capacity buffer behind all sources to ensure the source is never blocked by its successors, or else the throughput may again not be as expected.

 

Regards,
Alex

____________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!