I can't start a print with octoprint, after starting it it only executes the commands to set the bed and hotend temperature and then the printer returns an error that makes the printer stop and turn it off accordingly (I have a relay module that turns off when the printer instructs him to do so)
What did you already try to solve it?
i tried to change the timeout times but i didn't fix anything. apparently the printer returns this error: Recv: echo: cold extrusion prevented
Recv: Error: Printer halted. kill () called!
the problem lies in the pause commands after the activation of the heating (M190 ED M109) .... after these commands it goes into error. I had a backup of octoprint dating back to yesterday, before doing the update that came out today on some plugins if I'm not mistaken or directly on octoprint. I restored that backup and it makes the same mistake but if you delete the M190 and M109 commands everything works except obviously the fact that the print starts before the temperature reaches the target.
kill() can only ever be called by the printer, and it does this to shut down ASAP when it detects there is something wrong. OctoPrint has nothing to do with calling this, so you need to look at the printer. Check all of the connections, particularly the heaters and the thermistors, since the errors seem to be temperature rated.
Oh, and if it is a Creality board with their firmware, then it could be a firmware bug.
is a self-built printer with skr1.4 and latest version Marlin firmware. the error is recalled by the printer yes but it does it only with octoprint, from sd it does not give errors, from repetier host connected with usb it does not give errors ... I suspect that octoprint starts after the wait commands (M190 and M109) to send the extrusion commands and obviously the printer returns that error. the suspicion becomes almost certain from the moment I have enabled cold extrusions and actually the extruder motor starts spinning and immediately afterwards the printer stops calling up the error. so i don't think it's the firmware but octoprint
in a nutshell after I start printing, the printer activates the heating, begins to raise the Z axis and extrude (I don't know why you start extruding) and immediately afterwards the printer returns the cold extrusion error
now yes but not before. The problem exists both with and without these scripts. The script simply sets the absolute coordinates and runs the homimg and runs fine.
if I write manually on the terminal m190 s70 the printer stops immediately and returns the same error that can be read in the logs so it is a problem with this command. in addition, with the command m109 t0 s220 the printer starts moving the Z axis up and immediately after it stops and turns off
I found the problem, it was the power loss that sent the printer into error, probably a firmware bug because this problem does not have it when printing from sd. probably doesn't know where to save the power loss data when printing from serial. thanks everyone for the support
Only a very few boards can detect a power loss in time (like the board on the Prusa MK3). These need a special signal from the power supply to indicate this.
If you suffer from a power issue in that way, that the 12V (or 24V) drop significantly under load - mostly it is enough for the 5V rail on the printer board - the logic still runs and the firmware detects no heating, but it does not know why. So the firmware pulls the emergency break. OctoPrint in the end is quite helpless.
OctoPrint can't do anything to help with power loss unfortunately, due to buffering on both OctoPrint's side and the printer's firmware, only the printer knows exactly where it is. Power loss recovery will only work when printing from the SD card, the only thing you could do for this is get a good UPS that would send a power panic signal to OctoPrint so it can stop sending, let the buffer run empty, save the data and then shut down. In reality, this is impractical for most and would require a custom plugin for the signals from the UPS supply.