vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.57k stars 533 forks source link

Editor Gcode parsing breaks editor #526

Open amateurengineer opened 7 years ago

amateurengineer commented 7 years ago

Hello,

when I import a gcode made from a pcb design made in KiCad, then translated from gerber to gcode with pcb2gcode the Editor falls into weird behavior:

In the gcode file header is the G20 statement

G94     ( Inches per minute feed rate. )
G20     ( Units == INCHES.             )
G90     ( Absolute coordinates.        )
S30000  ( RPM spindle speed.           )
M3      ( Spindle on clockwise.        )

when it is removed like

G94     ( Inches per minute feed rate. )
G90     ( Absolute coordinates.        )
S30000  ( RPM spindle speed.           )
M3      ( Spindle on clockwise.        )

I hope this wasn't reported already, thank you for your work.

vlachoudis commented 7 years ago

Have you configured bcnc to inches in the config?

amateurengineer commented 7 years ago

Hello, Units (inches) is unticked.

I have compiled pcb2gcode v1.2.3 from source to make it accept metric-output option which works around the problem.