Loading
ShaneAPowell

Anet A8 Pen & Scraper Holder

by ShaneAPowell Jun 13, 2018
Download All Files

Thing Apps Enabled

Please Login to Comment

Hi, I have a doubt. How do you do the G-code and what settings do you take into account for the PCB to be carried out correctly?

It's not quite as hard as I thought it would be actually. First, I create the gcode with FlatCam, and have it use a Z value of -0.0010 when "cutting" and a value of Z value of 5 when traveling. Then, Using the "manual" printer XYZ controls, I pre-place the pen tip where I want it on the copper. Then, near the start of the gcode, I put in the line
G92 X0 Y0 Z0
That tells my printer to make the current XYZ location, the new origin.
Now, all the following GCode commands are relative to this new origin.
I have the "pre" gcode in FlatCAM already configured to add that line
Just as an example.. here is the top section of one of my PCBs.

G21 ; metric values
G90 ; absolute positioning
M107 ; fan off
M140 S0 ; heated bed off
M104 S0 ; extruder heater off
G92 X0 Y0 Z0 ; Set HERE as new origin
G0 Z10 ; Pre-Raise the pen up 10mm

G94
G01 F600.00
G00 Z3.0000
M03
G4 P1
G00 X11.7836Y4.0553
G01 Z-0.0010
G01 X12.0000Y4.0721
G01 X12.2140Y4.1094
...