Cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in setting failure

Valued Contributor
Valued Contributor

Hi.
I am setting up a failure programmed into a machine, which should happen each 30 days, lasting eight hours, but my model works with work shifts. If the period of failure happen is out of shift time (eg weekend), it does not. I need that failure occurs only within the shift time. If the start date is outside of these hours, the fault must wait until the shift begins.
How can I do it?

1 REPLY

Re: Problem in setting failure

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you could use an observer for failed (or failure control). Check, for the change false--> true if the block is in state unplanned, if yes set a userdefined attribute-value to true. Use a second observer for unplanned, check for the change from true to false if you need to take into account a failure event  (attribute value=true)--> if yes --> startFailure(failure time) and reset the failure-attribute

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net