1121
Feature Requests / Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« on: October 24, 2019, 02:51:14 AM »
as far i know there is no functionality in Mach3 for this, but you can add some code to M3 and M5 and do it by your own.
M3 code
M5 code
code is not tested, just written down
M3 code
Code: [Select]
'Save the starttime in seconds
Dim starttime As Double
starttime = (Hour(Time(Now))*3600)+(Minute(Time(Now))*60)+Second(Time(Now))
SetUserDro(1600, starttime)
'increment the piercecounter
SetUserDro(1602,GetUserDro(1602)+1)
M5 code
Code: [Select]
'Calculate the enddtime
Dim endtime As Double
endtime = (Hour(Time(Now))*3600)+(Minute(Time(Now))*60)+Second(Time(Now))
'save the cuttime
SetUserDro(1601 , endtime - GetUserDro(1600))
code is not tested, just written down