G-Code, CAD, and CAM > G-Code, CAD, and CAM discussions
G-Code bad character used
jbaumchen:
I created a foil pattern for an electronic circuit in Eagle, sent the gerber file to copper cam on line, and received the attached g-code. When I loaded it up in Mach 3, get the error of bad character used and can see it in my Mach 3 code window. But when I open it in note pad, hippo edit, or multi-edit, am at a loss to display them. If I delete a line of comment, reload it into Mach 3, it just shows up on the first line. Any ideas what the problem is? I've attached the gcode file and a screen capture of the Mach 3 window.
Tweakie.CNC:
Hi John,
This has come up before but it was a long while ago and I have not yet been able to find the relevant threads. At this stage I have absolutely no idea how the odd characters have got into your Notepad document and why they cannot be edited out.
They can however, be removed by copy and pasting the Gcode text into a new text document then saving it as a .nc file. I have attached a modified file for you to try (you may need to adjust your tool number).
Tweakie.
joeaverage:
Hi,
--- Quote ---I created a foil pattern for an electronic circuit in Eagle, sent the gerber file to copper cam on line, and received the attached g-code
--- End quote ---
Why bother? I use Eagle to make circuit boards but use the U(ser) L(anguage) P(program) pcb-gcode and it generates
Gcode directly and I have used it in both Mach3 and Mach4 without problem.
Craig
Tweakie.CNC:
Hi John,
Well, after a bit more research, it appears that Microsoft allows us to save our files in many different formats and languages etc. and Mach3 only likes single-byte ASCII characters (thanks Roger) so my guess is that CopperCam are using an unsupported character set (as far as Mach3 is concerned). Perhaps have a chat to CopperCam and see what they have to say.
Tweakie.
joeaverage:
Hi,
or use pcb-gcode, a freely downloadable utility that attaches to Eagle and generates Gcode direct from your .brd file,
no sending files anywhere.....the gcode is generated within 10 seconds or so and is (or can be) Mach3/Mach4 ready.
It generates, at your option, Top Etch, Top Drill, Top Mill, Bottom Etch, Bottom Drill, and Bottom Mill. You can set etch, drill
and mill depths at will.
Craig
Navigation
[0] Message Index
[#] Next page
Go to full version