91
General Mach Discussion / Re: HELP g-code command lines and coordinates not synchronized
« on: May 12, 2019, 05:46:26 PM »
Hi
I notice that you are using custom M codes M113 and M115
In macros written in Visual Basic you can use
while ismoving()
wend
So if your m115
has
Code "G1 Z0"
while ismoving()
wend
...
(your codes)
You perhaps may delay the turning off of laser output.
Another possible Workaround is to use a long bent micro-switch to turn on the laser when z axis is lowered towards the material surface. Microswitch would turn off the laser when z axis is raised.
(some have done it that way and made videos on YOUTUBE)
I notice that you are using custom M codes M113 and M115
In macros written in Visual Basic you can use
while ismoving()
wend
So if your m115
has
Code "G1 Z0"
while ismoving()
wend
...
(your codes)
You perhaps may delay the turning off of laser output.
Another possible Workaround is to use a long bent micro-switch to turn on the laser when z axis is lowered towards the material surface. Microswitch would turn off the laser when z axis is raised.
(some have done it that way and made videos on YOUTUBE)