- attached FlatCAM_missing_init_gcode.png
Missing initialization g-code in GRBL_11_no_M6 preprocessor
I tweaked and re-generated a drill file and noticed missing initialization g-code:
G21
G90
G94
As a fix I’m prepending that code in CNC-JOB Editor preferences. It’s not the end of the world for me, but it might cause mayhem to a beginner that starts right off using the GRBL preprocessor; hence why I categorized as a trivial enhancement.
Make sure you post all the details. Platform, environment, related files, etc.:
…on Windows, running Evo source that you told me to use.
Briefly explain how to reproduce.
…drilling 2 holes, selected GRBL preprocessor without tool change instead of default.
Look at other related issues, open or closed, to avoid duplicates. Other Issues might look different (different symptoms) but might be related to the same problem.
https://bitbucket.org/jpcgt/flatcam/issues/345/improve-preprocessor-capabilities
That’s the only one I saw that was remotely related, but don’t know enough to say for sure.
I’m running a cheap 3018 mini-CNC. I also don’t know enough about GRBL to say if this is a problem for all GRBL machines, but I know it’s not a good idea to run g-code while assuming certain conditions are in effect.
Thanks for FlatCAM, I love it.
Robert
:)
Comments (4)
-
reporter -
reporter However the code is present when milling the PCB surface.
(G-code generated by FlatCAM Evo vUnstable - Version Date: 2023/6/31) (Name: Top.GBR_iso_combined_cnc) (Type: G-code from Geometry) (Units: MM) (Created on Wednesday, 18 October 2023 at 19:23) (This preprocessor is used with a motion controller loaded with GRBL firmware.) (It is configured to be compatible with almost any version of GRBL firmware. No M6 command.) (TOOL DIAMETER: 0.1 mm) (Feedrate_XY: 100.0 mm/min) (Feedrate_Z: 40.0 mm/min) (Feedrate rapids 1500.0 mm/min) (Z_Cut: -0.1 mm) (Z_Move: 2.0 mm) (Z Start: None mm) (Z End: 15.0 mm) (X,Y End: 0.0000, 0.0000 mm) (Steps per circle: 16) (Steps per circle: 16) (Preprocessor Geometry: GRBL_11_no_M6) (X range: 0.6900 ... 30.3900 mm) (Y range: 1.3050 ... 16.9450 mm) (Spindle Speed: 3500.0 RPM) G21 G90 G17 G94 (Prepended code from CNC-JOB preferences) G21 G90 G94
I don’t think duplicate entries for these commands cause problems, I’m just reporting “in case”.
Robert
-
- changed status to open
-
Hi Robert,
Doing
running Evo source
then you maybe observed that there was an error shown on the Terminal when generating the Gcode.
It tried to access an object that did not exist (because I changed its name in other parts of the code).
I have fixed this issue in the latest commit, for all preprocesssors.
Issue fixed here: https://bitbucket.org/marius_stanciu/flatcam_beta/branch/Beta_8.995BR,
Marius
- Log in to comment