Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
endstops [2018/03/02 12:01]
wolfmanjm [Soft endstops]
endstops [2018/07/05 14:49] (current)
80.114.104.249 [Soft endstops]
Line 65: Line 65:
 G28 G28
 </​code>​ </​code>​
 +
  
 will home all axes which have endstops enabled (all three by default). will home all axes which have endstops enabled (all three by default).
 +
 +If your axis is moving away from the endstop when homing, you need to invert your min and max endstops, or invert the direction of the axis, depending on your preference.
 <callout type="​warning"​ icon="​true"​ title="​ CNC mode/GRBL mode">​ <callout type="​warning"​ icon="​true"​ title="​ CNC mode/GRBL mode">​
 The firmware-cnc.bin is in CNC mode and by default uses grbl compatibility mode in this mode G28 does **not** home, it goes to a predefined park position (defined with G28.1). To home in CNC/GRBL mode you issue $H, (or G28.2). The firmware-cnc.bin is in CNC mode and by default uses grbl compatibility mode in this mode G28 does **not** home, it goes to a predefined park position (defined with G28.1). To home in CNC/GRBL mode you issue $H, (or G28.2).
Line 127: Line 130:
 Soft(ware) endstops is a feature that allows the board to refuse any command that would put it outside the bounds of the work area. Soft(ware) endstops is a feature that allows the board to refuse any command that would put it outside the bounds of the work area.
  
-Note that this feature only functions once the machine has been homed ( until then it can't know where it is ).+Note that this feature only functions once the machine has been homed ( until then it can't know where it is ). After the machine has been homed this feature needs to be enabled using the <​kbd>​M211 S1</​kbd>​ M-code, and can be disabled using the <​kbd>​M211 S0</​kbd>​ M-code.
  
 The configuration is as such :  The configuration is as such : 
Line 144: Line 147:
 Simply add this series of config options to your config file and the machine will start respecting soft endstops. Simply add this series of config options to your config file and the machine will start respecting soft endstops.
  
-You can test/debug the feature by issuing the <kbd>M311</​kbd>​ M-code, which will tell you the current status of the soft endstops.+You can test/debug the feature by issuing the <kbd>M211</​kbd>​ M-code, which will tell you the current status of the soft endstops.
  
 **NOTE** it is highly recommended that you always enable HALT when a soft endstop is hit, the ignore commands option is VERY dangerous as subsequent commands that are within the soft endstops limit will continue from an arbitrary position causing untold damage. **NOTE** it is highly recommended that you always enable HALT when a soft endstop is hit, the ignore commands option is VERY dangerous as subsequent commands that are within the soft endstops limit will continue from an arbitrary position causing untold damage.