G Code Editor in Octoprint - GCode red underlines

Hi All,

Using the GCode section in Octoprint instead of in my cura files. I put the follwing in:

When i started the print it didn't do the nozzle wipe or ABL, So my guess is that it didn't work at all.

I removed all G Code from Slicer too so it literally just started printing. I think there must be somethign wrong with how I enetered the code.

Help would be great

Can you share the complete code you put into the boxes?
I assume there is no heating up the printer.

BTW: these codes really belong into the slicer because this one can select the correct temperatures for the filament you use.

I do not have a start code in OctoPrint, just a short one for the end:

G28 X0  ; home X axis
G1 Y180
M84     ; disable motors
M117 Print finished

Also, I would not home the printer when it's paused. You can't go on with the print after that pause. You may have a look here: https://docs.octoprint.org/en/master/features/gcode_scripts.html

That's great to hear thank you ! You're absolutely right. thinking about it, it might also crush the print?

How does it know which filament i use?

Start :

M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate

G28 ;Home
;G29 ; Auto bed leveling
;M500 ; store mesh
M420 S1 Z5 ;Enable ABL using saved Mesh and Fade Height

G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up

END:
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning

G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
M140 S0 ;Turn-off bed

M84 X Y E ;Disable all steppers but Z

Thanks for your help. I'm new to GCode....evidently :wink:

You are welcome.

Yes, when using G28, the printer goto to zero on all axes. This can result in conflicts with your print.

You select the filament in your slicer: PLA, PETG, ABS etc... these need different temperatures for extrusion and the heat bed.

As I see in this, there are no commands to heat up the nozzle nor the heat bed. So the printer can't print anything.

For more information on gcode you may have a look here: https://reprap.org/wiki/G-code

Appreciate it thank you. It did however do the print just none of the start or end code in octoprint. I ended up with a calibration cube at the end. odd

The red underlines are from your browser's attempts at helping you to spell correctly, I'd guess.

1 Like

Appreciate it thanks, thought it might be some kind of intellisense.