Cancel
Showing results for 
Search instead for 
Did you mean: 

Record MTTR in the TableFile and Warm-up period

Pioneer
Pioneer

Hi,

 

Basically, I have two questions.

1.Does anyone know how to write the length of each MTTR in the TableFile?

 

2. How to set the warm-up period in Plant Simulation. I started to use Plant Simulation last week.

 

Thank you very much

 

Kind Ragards

Loki

9 REPLIES

Re: Record MTTR in the TableFile and Warm-up period

Phenom
Phenom
@1 depending on the availability setting of the object

tablefile[1,1]:=object.mttr;

@2 select 2nd tab of the eventcontroller - there you can edit/set the "statistic" Input (= warm up period)

Re: Record MTTR in the TableFile and Warm-up period

Pioneer
Pioneer

Hi,

 

I've attached the simulation I created. I used the code you recommended, but it seems it does no work. I might use it in a wrong way.

 

With respect to the warm up peiod, I am not sure I understand what you mean. My warm up period is 100 hours, so I just put 100:00:00 in the "statistics"?

 

Thank you very much.

Re: Record MTTR in the TableFile and Warm-up period

Phenom
Phenom

- "availability" wasn't set (s. assembly object)

- table format set from string - to time format

 

eventController.StartStat equals warm up period

 

s. attached model

 

Re: Record MTTR in the TableFile and Warm-up period

Pioneer
Pioneer

Hi,

 

I see what you mean, thanks. If I want to record every MTTR, how can I write the loop code? I am no familar with the codes in Plant Simulation. For instance, there are 100 failures, I want to record 100 MTTR in the TableFile.

 

I wrote "root.EventController.StartStat:=str_to_time("100:00:00"); in the Method. Is this correct?

 

Thank you very much.

Re: Record MTTR in the TableFile and Warm-up period

Phenom
Phenom

I have added an observer/ observer method  to the assembly object, which is triggered every time

the assembly object turns into failure mode and vice versa.

 

These 2  events ( failure on/off) are logged in the tablefile object and the delta (=mttr) is calculated.

 

Re: Record MTTR in the TableFile and Warm-up period

Pioneer
Pioneer

Hi,

 

Thanks a lot. It works like a charm.

 

Kind Regards

Loki

Re: Record MTTR in the TableFile and Warm-up period

Pioneer
Pioneer

Hi,

 

Sorry to bother you again. Can you please tell the step you took by using the observer method, as I might use this method afterwards. When I copy that code to another simulation model, there is no record in the TableFile. It would be better if I know how to use it indepedently.

 

Thank you

Re: Record MTTR in the TableFile and Warm-up period

Phenom
Phenom
- select assembly object
- press shift F12
- select the (observable) attribute ( e.g. failed)
- add a (newly created) method , which will triggered ( e.g. mfailure)

Re: Record MTTR in the TableFile and Warm-up period

Pioneer
Pioneer

Thanks a lot