Disable limits (g)code M211

Hi Guys,

I’m trying to do this mod:

But of course it’s only for Marlin and I have problems with the M211 (disable limits) gcode. Klipper doesn’t recognize this code.

Is there a other way for this? I’ve searched but can’t seem to find it unfortunately.

G28; home and zero

G0 X0 F9000;
G0 Y220 F9000;
G0 Z6 F9000; Set Height, Important! Check and calibrate for your brush and nozzle height

M211 S0; disable limits

;wipe
G0 Y235 F9000;
G0 X25 F9000;
G0 X50 F9000;
G0 X25 F9000;

;wipe
G0 Y234 F9000;
G0 X25 F9000;
G0 X50 F9000;
G0 X25 F9000;

;wipe
G0 Y233 F9000;
G0 X25 F9000;
G0 X50 F9000;
G0 X25 F9000;

;wipe
G0 Y233 F9000;
G0 X25 F9000;
G0 X50 F9000;
G0 X25 F9000;

;wipe
G0 Y231 F9000;
G0 X25 F9000;
G0 X50 F9000;
G0 X25 F9000;

G0 X0 F9000; return to limits
G0 Y220 F9000;


If your print range for Y is for example 0 to 220, but the printhead is mechanical able to move up to 240, you could set

[stepper_y]
...
position_max: 240
...

The slicer takes care to keep the print inside the limits of 0 to 220.

1 Like

Ahhh yeah I didn’t know that.

I actually thought I made my bed bigger with that. But I understand now that your slicer is responsible for the size of the bed! I’m going to try it out later in the day! Thanks!

1 Like

It worked! I changed the code a little and it’s working great! Thanks!

I’m understanding klipper more and more! :slight_smile:

1 Like