I’d like the operators to be able to manually start/stop downtime eventson a machine. I have a PLC I can connect to, but wanted to see about writing a script to display a timer. The idea is to have a start/stop button, and when they press the button for whatever downtime event, the timer increases.
You can use expression binding on timer display to show difference between current time and timestamp of button press event.
Log the events an a database table, then query the times between the events using lead/lag functions.
3 Likes