Hello Guest it is June 16, 2025, 10:54:06 AM

Author Topic: G code execution too fast?  (Read 9502 times)

0 Members and 1 Guest are viewing this topic.

G code execution too fast?
« on: December 29, 2019, 10:27:47 AM »
Hello
I just built a small CNC, everything is working quite well. I am currently trying the digitize wizard provided with Mach3. I have a strange behavior. The X axis is moving while the Z axis has not yet retracted.  the generated program looks like this:
M40
G92X0Y0Z0
F100
 G0X0Y0Z5
 G31 Z-5
 G0 Z5
 G0X1Y0Z5
The G0 Z5 is not executed yet that the G0X1YàZ5 is already executed. When I run the program line by line everything works fine. It looks like I need a delay between G0Z5 and the next line. This cause the probe to stay on cause a problem in the program "probe ignored...."

Does anybody knows what is the macro or VB script used to generate the code? Or do I have a configuration issue? The G31 code does not retract the probe by itself.
Is there any list describing the macros briefly ?

Thanks for your help.
Jacques
Re: G code execution too fast?
« Reply #1 on: December 31, 2019, 12:07:30 PM »
Hello

Just to let you know that I have found a workaround. By modifying the digitize screen and VB script, I have added a small macro that add 500ms before the next table move. It has solved the problem.

Jacques