Hello Guest it is April 17, 2024, 10:08:55 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - wongster

Pages: 1
1
General Mach Discussion / Program stopped when encountering '#' statement
« on: November 27, 2016, 08:11:12 PM »
Hi folks,

I'm Kyle from Singapore. Just started milling PCBs on my A2ZCNC/Sherline mill designed by a friend of mine. I was introduced to this software, Autoleveller (www.autoleveller.co.uk), which takes in an NC file and generate a new file with probing and height adjustments.

My first test with the test version of the autoleveller didn't go well. The software is simple to use. The codes generated looks good. But Mach3 refused to carry on after probing the 3rd time, when it encountered the assignment of the z tip position to the variable #500 (#500=#2002). The program should work as my friend whom has the almost the same setup as mine successfully ran the program.

I'm using Mach3 (Version R3.043.062) with a USB SmoothStepper and Gecko G540. Eagle was used with PCB GCODE to generate the NC file. The screenset used (if it matters) is the BigTex Machblue screen (the older version).

The segment of the code from the beginning to where it stopped:

(begin initial probe and set Z to 0)
G0 X0 Y0 Z0
G31 Z-10 F100
G92 Z0
G0 Z2
G31 Z-1 F50
G92 Z0
G0 Z2
G0 X0 Y0
G31 Z-1 F100
#500=#2002
G0 Z2

The message at Mach3 status bar: "begin initial probe and set Z to 0".

The machine did the 3 probes and stopped at z=0 after the 3rd.  The G0 Z2 right after the '#' statement didn't get executed.  I couldn't figure out what went wrong.  Could it be my settings in Mach3?  Prior to using this, I was probing and milling without any issue.

Anyone here can help?

Thank you.
Kyle

Pages: 1