Notifications
Clear all

g-code editing  

  RSS
bapski
(@bapski)
Estimable Member
g-code editing

i discovered @bobstro 's custom profile settings  ( http://projects.ttlexceeded.com/3dprinting_prusaslicer_sample_profiles.html)

and really like the print outcome i got compared to the stock Prusa Profiles. 

The profiles have a routine where it is set to warm the PINDA probe.

as the SUPER PINDA on a MK3S+ has no thermistor  that monitors the temperature, the extruder just ends up just parked in the middle of the bed. 

as a work around, i just copied the settings from @bobstro's sample profiles to a regular profile which has been fine but i will be working on a model(paid)that has many parts and i may have to use multiple profiles e.g. .20mm vs. .15mm print settings..  while this will work great for me, id like to eliminate the human error of messing up settings which can be very disastrous, more so after hours of printing. 

what i've tried to do as per @bobstro's suggestion was to edit the g-code by commenting out some lines and modifying a line. 

i have tried several g-code editors but they seem to either not load the g-code file (notepad++) or the software just freezes (G-wizard).

what's your best practice when editing g-code? 

thanks in advance. 

Best Answer by bobstro:

Here's a quick fix. Anybody know of a way to check the PINDA type in gcode?

To save some effort, you can import the printers as a Config Bundle and only have to edit the startup gcode once. Here's an example.

I'm in the process of updating the code. I'll put a warning that it's only for PINDA v1 or v2. Thanks for the update. This is something I've been worried about, but I don't have a SuperPINDA to test with.

If you are using the code detailed here, try commenting out lines 24-33. Replace line 17 with: 

M140 S[first_layer_bed_temperature] ; set target bed temp

That should get rid of all the PINDA warmup code. It's not fully optimized and there are still a couple of repetitive commands, but it should work smoothly. 

Thanks for letting me know!

 

MY MODELS AT PRINTABLES
Posted : 09/01/2021 5:23 pm
Swiss_Cheese
(@swiss_cheese)
Noble Member
RE: g-code editing

I'm sure Bob will have some great advice for you,

I just use Notepad and Notepad++ if I'm on my laptop, .gcode should just be able to be open as a text file. it does in windows as long as you associate it with a text editor.

The Filament Whisperer

Posted : 09/01/2021 5:48 pm
bapski liked
bobstro
(@bobstro)
Illustrious Member
RE: g-code editing

Here's a quick fix. Anybody know of a way to check the PINDA type in gcode?

To save some effort, you can import the printers as a Config Bundle and only have to edit the startup gcode once. Here's an example.

I'm in the process of updating the code. I'll put a warning that it's only for PINDA v1 or v2. Thanks for the update. This is something I've been worried about, but I don't have a SuperPINDA to test with.

If you are using the code detailed here, try commenting out lines 24-33. Replace line 17 with: 

M140 S[first_layer_bed_temperature] ; set target bed temp

That should get rid of all the PINDA warmup code. It's not fully optimized and there are still a couple of repetitive commands, but it should work smoothly. 

Thanks for letting me know!

 

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 09/01/2021 6:09 pm
bapski liked
bapski
(@bapski)
Estimable Member
Topic starter answered:
RE: g-code editing

@swiss_cheese

thanks. i think i found the problem. for some reason, on my desktop, i have no problems opening the g-code file with either notepad++  and textpad while on the laptop that i use in the basement refuses to do anything!

MY MODELS AT PRINTABLES
Posted : 09/01/2021 6:19 pm
bapski
(@bapski)
Estimable Member
Topic starter answered:
RE: g-code editing

Comparison between stock Prusa settings(Yellow) and Bob's profile (Red)

 

MY MODELS AT PRINTABLES
Posted : 09/01/2021 7:11 pm
bobstro
(@bobstro)
Illustrious Member
RE: g-code editing

@bapski - Please try this test gcode. I have added some checks:

  • If the printer is set to a Mk3s or Mk3s+, the PINDA warmup routine will be skipped.
  • If the printer is not a Mk3s/Mk3s+, the PINDA warmup routine will be used.

I've tested as far as I can with my Mk3. It will still cause a problem if you have a SuperPINDA mounted on a Mk3. I'm still looking for a fix for that scenario.

Just paste the updated gcode into your existing printer settings.

Thanks.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 09/01/2021 9:25 pm
bapski liked
bapski
(@bapski)
Estimable Member
Topic starter answered:
RE: g-code editing

@bobstro

 

So i just replace the Start g-code with this?

Again my thanks. Will test this on my next print.

MY MODELS AT PRINTABLES
Posted : 09/01/2021 10:18 pm
bobstro
(@bobstro)
Illustrious Member
RE: g-code editing
Posted by: @bapski

So i just replace the Start g-code with this?

Yes. I've made some minor cosmetic changes to the gcode and have updated my notes page here. I have updated the pastebin gcode with the latest.

Again my thanks. Will test this on my next print.

Please use this version. Let me know if you have any problems. The checks are based on whether you are using a Mk3s/Mk3s+ profile. If you've added a SuperPINDA to a Mk3 and are NOT using a Mk3s/Mk3s+ profile, the changes won't work. I'm still trying to figure out how to detect a SuperPINDA on an original Mk3 printer, but I'm not sure it is possible.

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 09/01/2021 10:36 pm
bapski
(@bapski)
Estimable Member
Topic starter answered:
RE: g-code editing

@bobstro

Unfortunately i have tried both:

- trying to edit the on start g-code by modifying line 17 and commenting lines 24-33

- and trying your test g-code 

On both occasions the extruder just sits in the middle.

Also forgot to mention i get a prompt that the g-code is Sliced for a different printer and asks me if i want to continue but does not give an option for a yes or no answer.

 

MY MODELS AT PRINTABLES
Posted : 10/01/2021 2:37 am
Share: