Gcode export not working
The export of the GCODE with GRBL Postprocessor isn't working, it gives the following error:
[success] Machine Code file saved to: C:/... (Saving directory) [ERROR_NOTCL] G-code does not have a units code: either G20 or G21
it doesn't create any files. When pressing the View CNC Code Button the following error appears:
[ERROR]FlatCAMCNNJob.on_edit_code_click() -->'NoneType' object is not iterable
Comments (5)
-
-
reporter Hi Marius,
- I had the problem on a Windows 7 and windows 8.1 machine, both 64bit
- I'm using the latest version FlatCAM_beta_8.914_x64
- output from Command Line is:
FlatCAM 8.914 (c)2014-2019 Juan Pablo Caram (Type help to get started) [success] Geöffnet: C:/Users/Gabriel/Desktop/Messverstaerker/Messverstaerker-Edge.Cuts.gbr [success] Isolationsgeometrie erstellt: Messverstaerker-Edge.Cuts.gbr_iso [WARNING] Werkzeugversatz ist in der Werkzeugtabelle ausgewählt, es wird jedoch kein Wert angegeben. Fügen Sie einen Werkzeugversatz hinzu oder ändern Sie den Versatztyp. [success] CNCjob created: Messverstaerker-Edge.Cuts.gbr_iso_cnc [ERROR_NOTCL] G-Code hat keinen Einheitencode: entweder G20 oder G21 [ERROR]FlatCAMCNNJob.on_edit_code_click() -->'NoneType' object is not iterable
- The problem occurs every time I generate a gcode, but as I have figured out just now, only if language is not English. If I create a file with FlatCAM in English, save it and load it into the German version (which seams to have some mistakes, specially with the umlauts) it does work flawlessly, whereas if I create a project with Flatcam in German it doesn't work in the German, nor in the English version. I haven't figured out at witch point of the process the problem is produced, but now you should be able to reproduce the error.
- I don't think that the error is related to the Gerber files, because the error occurred with every file I tried so far, but only under the described conditions.
- Hope it helps!
Edit: The code view doesn't seem to work :-(
-
Hi Gabriel,
I'll have to check the code again, I may have translated some keywords that the program expect to be in English (like variables). Thanks. The code view works OK in English language. Are you saying that it doesn't work for you when using it in English?
-
reporter Yes, the codeview works, but only if the CNC Job was created on a english version.
-
- changed status to resolved
Solved in FlatCAM 8.915
- Log in to comment
Hello Gabriel,
Please provide the following data:
When you post the data from the Shell Command line please post it as a code using the button in the toolbar editor marked as <> (Code) so the forum will give a nice format to the listing (does not matter the language choosed in the selection box). You'll get something like this: