What am I doing wrong to log Motor Runtime?

I have transaction groups set up to log my motor runtimes but not actually logging everything and it restarts the “active” source value when motor stops, sharing pictures if you could please help me, I would greatly appreciate it. “VFD_PRS1_1_TotalTime” is a memory tag not present inside the PLC project but I did create it under the tag browser section and it is writable. No errors present in the transaction group

This is the expression item in the Run-Always:

This is the expression item in the triggered expression:

Trigger tab is all disabled/unchecked

Tracking time by incrementing in a tag is poor approach in an event-driven system like Ignition.

The most robust approach would be to log the boolean changes to your motor running bit, and then using those timestamps in a query with lag() to develop the durations.

Numerous similar discussions here:

https://forum.inductiveautomation.com/search?q=uptime%20downtime%20order%3Alatest

2 Likes