Notifications
Clear all

GCODE - Locking bed in place after pause  

  RSS
Zooraw
(@zooraw)
Active Member
GCODE - Locking bed in place after pause

Hi all,

I want to lock the print bed in place using gcode until I click resume. I want to know if there are any adverse effects of me locking (steppers ON) the printer bed in place during a pause?

Thank you,
Devin

Posted : 03/09/2019 4:52 pm
--
 --
(@)
Illustrious Member
RE: GCODE - Locking bed in place after pause

Leaving steppers on just causes the motors and electronics to stay warm.   But despite being locked, the bed is not actually locked, so any bumps will cause a stall and subsequent loss of position information (aka a shift or a crash or both).

And, when you press PAUSE, as far as I know the steppers do remain on.  But I might be wrong.  Though they pretty much have to be left on so the microstep position is maintained (but nozzle heater is turned off to minimize ooze and baking).

This post was modified 5 years ago by --
Posted : 03/09/2019 5:57 pm
Zooraw
(@zooraw)
Active Member
Topic starter answered:
RE: GCODE - Locking bed in place after pause

I was talking to a friend that works with gcode more that i do and he said to something like:

home 
position
pause
home
position

I will give it a try once home. I don't really need the bed to stay in place I just need it to _NOT_ shift.

Posted : 03/09/2019 10:28 pm
--
 --
(@)
Illustrious Member
RE: GCODE - Locking bed in place after pause

The concept of a crash is the motors are unable to hold position.

And home is possible, but home X and Y only might be tricky.  Prusa may or may not adhere to the Marlin spec, but the spec shows you can home axes individually.  But while in the home position, the bed can still be moved about pretty easily.  But, if you can at least home the axis, the 3D position in space may be recoverable as long as Z isn't tampered with and Prusa didn't totally mess up the Marlin code.

http://marlinfw.org/docs/gcode/G028.html

Might be worth trying. 

And less risky might be this simpler script ... but doesn't worry about nozzle clearance when moving home.

G1 X0 Y0
M1 Waiting for User
G1 X0 Y0
This post was modified 5 years ago 2 times by --
Posted : 04/09/2019 3:16 am
--
 --
(@)
Illustrious Member
RE: GCODE - Locking bed in place after pause

Ignore that code - just occurred to me if the bed moves, you've still lost position. You need G28 to work.

G28 X0 Y0
M1 Waiting for User
G28 X0 Y0

 

Posted : 04/09/2019 3:21 am
Share: