I have had some feedback from ShapeOko users indicating that there are some issues using the default F-Engrave output with GRBL. I thought I would take some time and describe the problems that people are having and discuss the F-Engrave settings needed to produce g-code that GRBL can run.
First, F-Engrave defines variables for the feed rate and engraving cut depth that are not compatible with GBRL. This problem can be solved by checking the “Disable Variables” check box in the F-Engrave Settings window. This will prevent F-Engrave from writing the incompatible variables to the g-code output file.
Second, F-Engrave uses incremental distance mode for arcs. In order to ensure that g-code interpreters read the data correctly the code G91.1 is set in the g-code output (setting the arc distance mode to Incremental). Unfortunately GRBL does not support reading the G91.1 code. To eliminate the incompatible G91.1 code from the F-Engrave output F-Engrave users need to un-check the “Enable Arc Fitting” option in the F-Engrave Settings window. (Alternatively the G91.1 code can be manually removed from the g-code file.)
Update: Apparently GRBL misreading the G91.1 code also results in the next g-code line, which set the units (in or mm), being skipped/misread. I also see there is some discussion about fixing the G91.1 g-code problem on the ShapeOko forum.
I recently updated F-Engrave to suppress writing the G91.1 code when arc fitting is disabled so be sure to use F-Engrave version 1.34 or higher to make sure the G91.1 is not written by F-Engrave.
If you get this error:
“Error while starting file stream: Command #3 too long: (55 > 50) ‘(Settings used in f-engrave when this file was created)’ ”
This error is generated because the #3 value set in GRBL is 50 and it need to be increased to allow longer g-code lines to be processed. Setting the #3 value in GRBL to 80 should be sufficient to accommodate the g-code generated by F-Engrave. (Thanks to Barry W. for this information)
In summary, to generate g-code compatible with GRBL:
- Select the “Disable Variables” check box in the F-Engrave Settings window
- un-select the “Enable Arc Fitting” check box in the F-Engrave Settings window
- Use F-Engrave version 1.34 or higher
- You may also need to go into settings in GRBL and increase the #3 setting to 80 (the default is 50). This setting set the maximum length of a g-code line. F-Engrave outputs lines greater than 50 characters long.
These settings (and all of the other settings) can be saved and loaded every time F-Engrave starts up. See the F-Engrave Manual for more details on the F-Engrave configuration file.