I'm new to Mach3 (well a newbie @ CNC all-together) evaluating the latest build (demo) to see how it works with my new Chinese Novusun-NVEM controller. Turns out not great but it seems to be the controller and not Mach3; So I'm modifying the 'ref-all-home' macro to help a bit, as I get better at operating the CNC machine.
The issue I have is with IsMoving() as follows:
(Soft Limits are off)....
.......
code(G00 X30 Y30 Z-7)
While IsMoving()
Wend
'Sleep 2000
DoOEMButton(119)
Soft limits will not turn on, and I get a 'Machine out of limits for Soft Limits Activation' error message; However if I uncomment the Sleep command and wait the 2 secs, it works fine. Does IsMoving() not wait on movements issued via the code() command
What did I miss