CNC Gcode Estlcam

Hello,

I’m trying to generate gcode for the CNC function in Snapmaker 2, through Estlcam, but it seems that something’s wrong because Snapmaker doesn’t start the job, instead it gives me the messages “FabScreen has stopped”. Also I notice that coordinates are set “infinity x infinity”. I think maybe it has to do with gcode type differences between Estlcam and Snapmaker. How can I correct the gcode? Below you can see the code I’m using.

Thanks

M03 S12000
G00 Z5.0000

G00 X-42.0338 Y43.9300
G00 Z0.5000
G01 Z0.0000 F300 S12000
G01 Z-1.0000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G01 Z-1.0000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G01 Z-1.0000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G01 Z-1.0000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z-0.5000
G01 Z-1.0000
G01 Z-2.0000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G00 Z-0.5000
G01 Z-1.0000
G01 Z-2.0000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G00 Z-0.5000
G01 Z-1.0000
G01 Z-2.0000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G00 Z-0.5000
G01 Z-1.0000
G01 Z-2.0000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z-1.5000
G01 Z-2.0000
G01 Z-3.0000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G00 Z-1.5000
G01 Z-2.0000
G01 Z-3.0000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G00 Z-1.5000
G01 Z-2.0000
G01 Z-3.0000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G00 Z-1.5000
G01 Z-2.0000
G01 Z-3.0000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z-2.5000
G01 Z-3.0000
G01 Z-4.0000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G00 Z-2.5000
G01 Z-3.0000
G01 Z-4.0000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G00 Z-2.5000
G01 Z-3.0000
G01 Z-4.0000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G00 Z-2.5000
G01 Z-3.0000
G01 Z-4.0000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z-3.5000
G01 Z-4.0000
G01 Z-5.0000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G00 Z-3.5000
G01 Z-4.0000
G01 Z-5.0000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G00 Z-3.5000
G01 Z-4.0000
G01 Z-5.0000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G00 Z-3.5000
G01 Z-4.0000
G01 Z-5.0000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z-4.5000
G01 Z-5.0000
G01 Z-6.0000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G00 Z-4.5000
G01 Z-5.0000
G01 Z-6.0000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G00 Z-4.5000
G01 Z-5.0000
G01 Z-6.0000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G00 Z-4.5000
G01 Z-5.0000
G01 Z-6.0000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z-5.5000
G01 Z-6.0000
G01 Z-7.0000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G00 Z-5.5000
G01 Z-6.0000
G01 Z-7.0000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G00 Z-5.5000
G01 Z-6.0000
G01 Z-7.0000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G00 Z-5.5000
G01 Z-6.0000
G01 Z-7.0000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z-6.5000
G01 Z-7.0000
G01 Z-8.0000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G00 Z-6.5000
G01 Z-7.0000
G01 Z-8.0000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G00 Z-6.5000
G01 Z-7.0000
G01 Z-8.0000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G00 Z-6.5000
G01 Z-7.0000
G01 Z-8.0000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z-7.5000
G01 Z-8.0000
G01 Z-9.0000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G00 Z-7.5000
G01 Z-8.0000
G01 Z-9.0000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G00 Z-7.5000
G01 Z-8.0000
G01 Z-9.0000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G00 Z-7.5000
G01 Z-8.0000
G01 Z-9.0000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z-8.5000
G01 Z-9.0000
G01 Z-9.9000
G01 X-35.5804 Y50.3656
G03 X-35.5790 Y51.4263 I-0.5296 J0.5311
G01 X-49.5448 Y65.4300
G00 Z0.0000
G01 X-51.1336 Y67.0231
G00 Z-8.5000
G01 Z-9.0000
G01 Z-9.9000
G01 X-57.7193 Y73.6266
G01 X-64.4997 Y80.4070
G03 X-65.5618 Y80.4055 I-0.5303 J-0.5303
G01 X-71.9885 Y73.9432
G00 Z0.0000
G01 X-73.5751 Y72.3478
G00 Z-8.5000
G01 Z-9.0000
G01 Z-9.9000
G01 X-80.0018 Y65.8855
G03 X-80.0009 Y64.8269 I0.5318 J-0.5289
G01 X-66.3655 Y51.1632
G00 Z0.0000
G01 X-64.7762 Y49.5706
G00 Z-8.5000
G01 Z-9.0000
G01 Z-9.9000
G01 X-51.1409 Y35.9069
G03 X-50.0804 Y35.9056 I0.5309 J0.5298
G01 X-43.6270 Y42.3412
G00 Z0.0000
G01 X-42.0338 Y43.9300
G00 Z5.0000

M05

Most likely, the cause is leading zeros in the gcode commands. The Snapmaker expects G0, G1, M3, M5, etc. rather than G00, G01, M03, M05.

In addition, G3 is an iffy command for the Snapmaker (some people have gotten G2 or G3 to work, but they don’t always behave as expected). Also, none of the gcode samples I have on-hand have negative values for any parameter but Z, although this may be due to different origin positions.

Leading zeroes are handled in the gcode parser, that is valid gcode.

A quirk is power (not RPM) is 0-100%, so setting it to 12000 is capped at 100, but that doesn’t affect anything here

I have used G2/G3 manually successfully, never tried it in a program though.

I don’t see anything wrong with that gcode. Can you play it via Luban over USB directly to the controller?

And finally, when posting blocks of code wrap them like so with ticks so a scrollbar is added and the post isn’t 8 pages long:
```

long
code
block

```

I think G3 suffers in SM firmware for smaller arcs, idk if .5 is small enough to cause a problem, but I know some code I tried to run though arc welder had issues.

@nivekmai i remember something being said about G2/3 not being supported, they were supposed to add the support but I’m not sure if it happened or not, Edwin left Snapmaker shortly after I think.

It is supported, the sm can parse it, but it just doesn’t work well:

@nivekmai I wonder why that is.

No idea, I can barely read c and I suck at math, it seems to be something with the machine being flooded with too many commands, I’m guessing there’s some exponential algorithm somewhere, but I’m not seeing it. I do notice that the marlin source code has been updated quite a few times since SM last pulled in changes (many of the recent updates are intended to allow smaller arcs).

Thanks for your replies. Turns out I was making a novice mistake: I wasn’t selecting the right gcode format for SM (Marlin) and I was expecting that “rub boundaries” would work, so I didn’t try to start the job without running boundaries… When I press run boundaries, it crashes. But if I go directly to start job, it works perfectly. I loke Estlcam a lot, very simple and novice-friendly.

Another thing: in Luban’s working area, the arc commands don’t work, they appear as straight lines. But when it runs in the machine, they work perfectly also. Luban doesn’t read the file as well as the machine, apparently.

Hello, can you tell me how to create a file for snapmaker using estlcam?

Did I understand correctly that just “determine the limits” doesn’t work

Greetings
Andre