Add this code to PLC script.
if (inCycle == 1) then
local s = mc.mcCtrlGetRunTime(inst)/10;
local time = string.format("%.2d:%.2d:%.2d", s/3600, s/60%60, s%60);
scr.SetProperty('lblTime','Label', tostring(time));
end
Then add this code to the reset button so it zero's out on a reset.
scr.SetProperty('lblTime','Label', "00:00:00");
You will need a label on the screen so you have a place to put the text.
I copied the text just above it then just added a label for the time value.
I plan on looking to see how the M30 gets processed so I can add a parts counter and accumulated time of all the parts.
Glenn