![](https://s3-us-west-2.amazonaws.com/media.forumbee.com/avatar/861bd75fe759018ee33e5661417e6c03-1631372758000/h/40.jpg)
Timer in Axiom
We had a plant ask: I want to add a tag to my dashboard that starts a timer after a stop so that if the line is stopped, you can see on the dashboard how long it has been down.
I have used a timer in a script and I might have other thoughts on their request but just curious if someone might have a recommendation for handing this.
-
Hi James Wise ,
I'm not sure how to do this through a script, but there is a DurationSinceLastTVQ function in Calcs. It outputs milliseconds, but you could convert it to something else. You would probably have to embed it in an "if" statement so that it only measures the amount of time after the stop. You would also have to run it periodically (maybe once a minute?).
Just an idea. -
I would like to recommend utilizing the alarm event table for this purpose. By configuring an alarm linked to the main line status, you can effectively track the start and end times of any downtime events directly on your dashboard. Here’s a step-by-step suggestion on how to achieve this:
Configure an Alarm for Main Line Status:
- Set up an alarm that triggers when the main line status indicates a stop. This can be configured in your alarm settings based on the specific conditions that denote a line stop.
Utilize the Alarm Event Table:
- Once the alarm is configured, the alarm event table will automatically log each occurrence of the line stopping. This table provides a detailed record of the start time and end time of each event.
- The alarm event table can be accessed through your dashboard, allowing you to monitor the duration of each downtime event in real-time.
Display Alarm Event Table on Dashboard:
- Add the alarm event table to your dashboard. This table will show you exactly what you are looking for: the start time and end time of each line stop event. This will enable you to see how long the line has been down for any given stop event.
- IMHO