Time table does not work after updating it's members by code.

Time table does not work after updating it's members by code.

kraus_martin10
Explorer Explorer
179 Views
4 Replies
Message 1 of 5

Time table does not work after updating it's members by code.

kraus_martin10
Explorer
Explorer

Hi,

 

I would like to ask regarding the Time Table functionality. Since I assigned specific objects to a created Time Table manually, the Time Table works perfectly. During the simulation run I have one trigger that changes the Time Table's members. After this change it does not affect anything. I guess there should be some command for updating the functionality. 

Can someone help please?

 

Thank you.

Martin

0 Likes
Accepted solutions (1)
180 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Enthusiast
Enthusiast

Dynamically adding/removing members of a time table during a model run is not supported. What you can do instead is to add a condition to the down function that prevents the object from actually being stopped based on a label (for example). By changing the value of the label you can then effectively remove objects from the time table (exclude them from being stopped in future down times).

0 Likes
Message 3 of 5

kraus_martin10
Explorer
Explorer

Thank you for the information. Can you please give me an example as I am not sure how it should be implemented.

0 Likes
Message 4 of 5

moehlmann_fe
Enthusiast
Enthusiast
Accepted solution

In the attached model both operators follow a time table with a pattern of 15mins downtime followed by 15mins of uptime. At 09:00 the Process Flow switches the label on Operator1. This then causes the downfunction to skip that object and Operator1 stays active.

0 Likes
Message 5 of 5

kraus_martin10
Explorer
Explorer

Thank you! I works perfectly.

0 Likes