Notifications
Clear all

Stop on bed leveling error  

  RSS
tampe125
(@tampe125)
Eminent Member
Stop on bed leveling error

Hello,

from time to time I have issues with the machine being stuck in a loop where it keeps to calibrate on Z axis and tries to perform bed leveling. Since most of the time my printers are running unattended, is it possible to have some kind of option to simply kill the print run instead of calibrating?

Some more context: all my printers are equipped with the Jobox hardware, so they can run almost 24/7 . From time to time, they fail to correctly deploy the bed sheet, so the height sensor doesn't trigger. Obviously this always happens at night, so when I wake up I find that one machine has spent the last 4 hours trying to Z calibrate and then perform the bed leveling...

Having some kind of switch would be awesome.

Posted : 03/11/2023 8:44 am
Hello
(@hello)
Noble Member
RE: Stop on bed leveling error

 

Posted by: @tampe125

Hello,

from time to time I have issues with the machine being stuck in a loop where it keeps to calibrate on Z axis and tries to perform bed leveling. Since most of the time my printers are running unattended, is it possible to have some kind of option to simply kill the print run instead of calibrating?

Some more context: all my printers are equipped with the Jobox hardware, so they can run almost 24/7 . From time to time, they fail to correctly deploy the bed sheet, so the height sensor doesn't trigger. Obviously this always happens at night, so when I wake up I find that one machine has spent the last 4 hours trying to Z calibrate and then perform the bed leveling...

Having some kind of switch would be awesome.

This is something to contact support about none of us use the jobox setup. Photo would be cool 😎 

Please help me out by downloading a model it's free and easy but really helps me out https://www.printables.com/@Hello_474427/models

Posted : 03/11/2023 5:53 pm
tampe125
(@tampe125)
Eminent Member
Topic starter answered:
RE: Stop on bed leveling error

Sure, here you can find some pictures. In one you can see what I mean when the bed is not correctly positioned, it stays raised and it's causing the calibration loop.

In the other you can find the whole setup: beds are on the back, when the print is completed they are ejected. You have to apply to the original heating bed a small aluminium sheet with grooves that will make the beds move back and forth. Honestly it's a clever design, I hoped Prusa itself have developed it ages ago 🙂

https://photos.app.goo.gl/7k9SMWPZXU3qtM1m9

https://photos.app.goo.gl/kAw8sb3RAXxMiqay5

Posted : 04/11/2023 10:38 am
Hello
(@hello)
Noble Member
RE: Stop on bed leveling error

 

Posted by: @tampe125

Sure, here you can find some pictures. In one you can see what I mean when the bed is not correctly positioned, it stays raised and it's causing the calibration loop.

In the other you can find the whole setup: beds are on the back, when the print is completed they are ejected. You have to apply to the original heating bed a small aluminium sheet with grooves that will make the beds move back and forth. Honestly it's a clever design, I hoped Prusa itself have developed it ages ago 🙂

https://photos.app.goo.gl/7k9SMWPZXU3qtM1m9

https://photos.app.goo.gl/kAw8sb3RAXxMiqay5

So your problem is the z axis leveling, correct ? If so have you tried it when it's stock

Please help me out by downloading a model it's free and easy but really helps me out https://www.printables.com/@Hello_474427/models

Posted : 04/11/2023 7:46 pm
tampe125
(@tampe125)
Eminent Member
Topic starter answered:
RE: Stop on bed leveling error

No, you're missing the point.

From time to time the bed doesn't snap in place. This could happen for several reasons, but my point is: it's possible to halt the print instead of forcing the Z calibration?

Posted : 04/11/2023 8:12 pm
Diem
 Diem
(@diem)
Illustrious Member

https://jobox.tech/pages/troubleshooting

Cheerio,

Posted : 05/11/2023 12:27 am
Tojik
(@tojik)
Member Moderator
RE:

Hi, sorry, i will not get to implement that. Stop on repeated MBL fails. If anyone wants to take a crack at this, the code is on github, if it's done semi-nicely+ it might get merged

Posted : 06/11/2023 10:14 am
tampe125
(@tampe125)
Eminent Member
Topic starter answered:
RE: Stop on bed leveling error

Ok, seems fair, since this is a very edge case. Maybe I can check current machine status from the API. Just as a quick question, is there a way to check what's current printer status and if there's a warning, what's the reason for the warning?

My idea is to create a python script that will check for the status of the machine and if it detects that it's inside a calibration loop, simply kill the print.

Posted : 06/11/2023 10:18 am
Tojik
(@tojik)
Member Moderator
RE:

It sends out "Bed leveling failed. Too much variation from eeprom mesh" when the Z calibration fails, but to stop it, you would need to reset the printer. You can do that from within PrusaLink. It is jank, but it might work for you.

If you want it to reset on every message like this, make a regex like this one. Put it into the regular_expressions.py

Z_CALIBRATION_FAILED_REGEX = re.compile("^Bed leveling failed. Too much variation from eeprom mesh$")

Then in prusa_link.py

self.serial_parser.add_decoupled_handler(Z_CALIBRATION_FAILED_REGEX, lambda sender, match: self.z_calibration_failed())

and somewhere in the method section:

def z_calibration_failed(self) -> None: 
    """ Pauses the print, when fw asks to through serial 
    This is activated by the user most of the time """ 
    prctl_name()
    command = ResetPrinter(source=Source.FIRMWARE)
    self.command_queue.enqueue_command(command)

That should probably do it

Posted : 06/11/2023 10:36 am
Share: