Hello Guest it is June 18, 2025, 07:07:13 AM

Author Topic: Problems with M99  (Read 6255 times)

0 Members and 1 Guest are viewing this topic.

Problems with M99
« on: August 23, 2024, 12:14:55 PM »
Hello all Mach4 gurus!!  8) ;D

I have a bit of a head scratcher, for me at least.  It seems simple but I am having trouble root causing my issue.

I tried a simple GCode script first and it was successful.  For example:

G10 L2 P1 X123.3844 Y492.9423 Z-29.9250
G10 L2 P2 X273.3844 Y492.9423 Z-29.9250
G10 L2 P3 X423.3844 Y492.9423 Z-29.9250
G54
M98 P1234
G55
M98 P1234
G56
M98 P1234
M5
M30
O1234
G0 X10
G0 Y10
G0 X0
GO Y0
M99

This runs the "loop" successfully.

However if I add my job Gcode, with ~ 85,000 lines within O1234 the program does not recognize the M99  command.  The job runs all the code within O1234 but stops at the last command line just before the M99 call.  Therefore it does not return to the main program, adjust the tooling offset and repeat the O1234 code, like it should.

Am I missing something really small and fundamental?

Thanks a bunch!

Re: Problems with M99
« Reply #1 on: August 23, 2024, 12:23:11 PM »
Any chance that the code that you inserted does not have a final carriage return after the M99?
Steve Stallings
www.PMDX.com
Re: Problems with M99
« Reply #2 on: August 23, 2024, 12:32:57 PM »
Thanks Steve.  Correct.  The line M99 is on does NOT have a carriage return.  It is in fact the last line.  Is this the small fundamental issue that I am missing!?  :-\ ::)

I'll adjust accordingly and try it again.
Re: Problems with M99
« Reply #3 on: August 23, 2024, 08:09:00 PM »
Thanks @Steve Stallings.  Problem solved!