Loading

Report as inappropriate

Hi :) I just built mine but i encountered a problem with the GCode-Translator Script.

The Error message is:
File ".\Gcode_Translator.py", line 158, in <module>
    z_new = float(coord[1:].strip())
ValueError: could not convert string to float:

It fails in the first lines of the gcode, where it should read the acceleration.
Further filewriting is aborted, so the gcode just breaks :/

Sample GCode:
M117 Starting...
M107          ;Laser/Fan OFF
G21           ;Metric Values
G17           ;Plane XY
G90           ;Absolute Positioning
G92 X0 Y0 Z0  ;Set XYZ Positions
G0 F2500
G0 Z2 F300    ;Position Z

M400
M117 Projektion2
G0 X-72.648 Y20.979 F2500
G0 Z2 F300
G0 Z0
G1 X-72.954 Y32.716 F1500
; ...
Complete Sample Translated GCode:
M117 Starting...
M107          ;Laser/Fan OFF
G21           ;Metric Values
G17           ;Plane XY
G90           ;Absolute Positioning
G92 X0 Y0 Z0  ;Set XYZ Positions
G0 F2500.000000

Maybe you can take a look at it :) Thanks in advance.