i tried right now and yes that is working great thanks.
yesterday i tried something like this with brain . it is working like your brain, but in your brain better....
now i have a new problem :
in this case i use servo motor encoder on my machine and encoder pulse = 2500 per revoltion
i guess mach3 can not reading pulse maybe encoder pulse is too fast or big ?!!!
when axis moving slow dro encoder pulse is true but during axis moving like G0 then encoder dro false
how can solved this problem?
sorry for my bad english