Can the G4 code cause the print to be cancelled?

Basic Information:

Printer Model:
MCU / Printerboard:
Host / SBC
klippy.log

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

When I inserted several G4 P2000 codes into the file, an error suddenly occurred during printing: the print was cancelled because the temperature was lower than the set minimum temperature. That is, the printing suddenly stopped heating. What could be the reason for this?

When I checked the log file at that time, there was no prompt at all. It was just that the temperature suddenly dropped, as if the heating had stopped. I didn’t save that log file back then. I’ll reproduce the problem later and then upload the log file.

You read the reason?

The extruder temperature was influenced.

So, it depends where you put the command.

Do you have an example (Gcode)?

Please do not forget to use the Preformatted Text feature of the forum editor when posting code:
Format

G1 F1500 E1478.13034
G4 P2000
G0 F600 X420 Y311.036
G92 E0
G1 F1500 E15
G92 E1481.13034
G1 F1500 E1481.13034
G1 F600 X420 Y314.996 E1483.61333
G1 F1500 E1480.61333
G4 P2000
G0 F600 X435.075 Y320
G92 E0
G1 F1500 E15
G92 E1483.61333
G1 F1500 E1483.61333
G1 F600 X443.849 Y320 E1489.11479
G1 F1500 E1486.11479
G4 P2000
G0 F600 X440 Y318.077

Here’s the translation:

Please look at the code above. I inserted several G4 commands to make it pause for a while. The rest are just other commonly generated coordinates.

Will frequent resetting of the extruder position (G92 E0) cause the firmware to misjudge and turn off the heating?

Hi @30682546 ,

No. The extruder stepper control isn’t directly linked to the heater control. My main question is why you are resetting the extruder position so frequently? You can just put in relative mode and reset once.

M83
G92 E0
...

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.