I'm looking into a way to model just a single overtime shift during the simulation to see how adding one day or multiple days will effect the simulation. For example: if production is running behind schedule I want Plant Sim to have the workers come in on a Saturday work 8 hours then back to normal schedule. Is there a way to do this in the Shift Calendar or to use a user-defined method?
Solved! Go to Solution.
I'm not fully understanding what this portion of the init method is doing. I've never used the methCall function in Plant Sim, could you help explain this a little more?
I would like to change the model after 3 days.
For this purpose I call the method setShift by the first statement:
The first parameter is the simulation time str_to_time("3:::") or in more detail: str_to_time("3:00:00:00").
The second parameter ist the parameter of the method setShift.
At the beginning of the Saturday I set the shift of the worker to the value "Subbot
In the Event Debugger you will see the corresponding events MethCall, only if the variable Subbotnik is true in my model. Please debug the Init method.
This means that the worker must work at Saturday.
Please note: If you can catch the event of the beginning of the Saturday (at time 3:00:00:00) then you call simply setShift("Subbot
At the end of the Saturday I set the original shift "Normal", such that the worker will work at Monday.
This is done by the second statement.
Thanks for the explanation. So if I had the Event Controller set so there was no end date and Subbotnik is equal to true then it would run on every Saturday after that, is that correct?