question

Antonio R8 avatar image
0 Likes"
Antonio R8 asked Aaron C commented

How to set up warm up time every day

How can I set up a warm up time of half an hour for the whole plant every day?

I could exclude that half an hour from my timetable but I want that time to be also taken into account when looking at the total time spent in the process.

Is there a better way to allow for half an hour every day before all the processors start working?

FlexSim 19.0.2
warm up time
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Aaron C avatar image
0 Likes"
Aaron C answered Aaron C commented

You could add all of your processors to a group, have a token created at the beginning of each day and trigger the following code:

Group processorGroup = Model.find("Tools/Groups/Group1");
int i = 1;
while (i <= processorGroup.length)
{
Object downobject = processorGroup[i];
int state = STATE_STOPPED;
int id = 1;
double priority = 100;
downobject.stop(state, id, priority);
i++;
}

This will stop all processors, then delay for half an hour and use : downobject.resume(1) to have them kick back on.



· 7
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Antonio R8 avatar image Antonio R8 commented ·

piles-concrete-simulation-rev2.fsm

Thank you Aaron,

The principle sounds great although I'm not sure how to apply all that properly.

I've created the group and the token, see model attached but I'm not sure if that was the way you meant.

See model attached.

0 Likes 0 ·
Aaron C avatar image Aaron C Antonio R8 commented ·

@Antonio R8 This image should explain everything you need to make it work. If you re-create this with your processors, you should be good to go.

0 Likes 0 ·
processorgroup.jpg (314.6 KiB)
Antonio R8 avatar image Antonio R8 Aaron C commented ·

piles-concrete-simulation-rev2.fsm

Thank you again Aaron. That's perfect. I'm getting there. The only thing is that how do I set up the time for when the token is created. The shift starts at 22:30 every day but the Inter-Arrivaltime cell doesn't let me specify that time.

02.jpg

0 Likes 0 ·
02.jpg (176.8 KiB)
Show more comments
Show more comments