Welcome! Log In Create A New Profile

Advanced

Anet A8 don't recognize modal gcodes

Posted by novomed 
Anet A8 don't recognize modal gcodes
November 13, 2018 04:04PM
Modal gcodes (G0,G1,etc.) are not recognized by the Anet A8 controller.
Cura generates gcode starting each line (block) with a gcode:
.....
G1 X90.601 Y87.322 E0.04328
G1 X91.236 Y86.853 E0.05813
G1 X91.878 Y86.469 E0.0722
G1 X93.265 Y85.728 E0.10178
G1 X93.979 Y85.392 E0.11662
G1 X94.678 Y85.143 E0.13058
G1 X96.176 Y84.689 E0.16003
G1 X96.942 Y84.499 E0.17487
G1 X97.673 Y84.392 E0.18877
G1 X99.235 Y84.238 E0.21829
G1 X100.023 Y84.2 E0.23313
G1 X100.765 Y84.238 E0.24711
.......
This works fine.

However, the modal form:
......
G1 X90.601 Y87.322 E0.04328
X91.236 Y86.853 E0.05813
X91.878 Y86.469 E0.0722
X93.265 Y85.728 E0.10178
X93.979 Y85.392 E0.11662
X94.678 Y85.143 E0.13058
X96.176 Y84.689 E0.16003
X96.942 Y84.499 E0.17487
X97.673 Y84.392 E0.18877
X99.235 Y84.238 E0.21829
X100.023 Y84.2 E0.23313
X100.765 Y84.238 E0.24711
.......
is not recognized by the Anet A8 controller.

What can I do about it?
Re: Anet A8 don't recognize modal gcodes
November 13, 2018 04:22PM
3D printer GCode is not the same as CNC GCode. Most (perhaps all) 3D printer firmwares treat G, M and T letters as commands and other letters (except N) as parameters. So every line that is not a comment or blank line must have G, M or T as the first character, or the first character after the optional N+line number. All the common slicing programs for 3D printers assume this.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Anet A8 don't recognize modal gcodes
November 15, 2018 06:01PM
You can use a text editor and use regular expressions to post process the gcode and add g1 to all lines starting with x, y or z.
Ie using notepad++
Search for
^(x|y|z)(.*)
Replace with
^g1 $1$2

If the cam software you're using has post processing scripts you can probably change it there.


--
Kind regards
Imqqmi

NFAN CoreXY printer:
[reprap.org]
Sorry, only registered users may post in this forum.

Click here to login