Thursday, April 23, 2020

Root 3 CNC - Endstop Software Testing

In order to test endstop functionality, the following application was used:  Pronterface.  It was originally designed for 3D Printers, but has a generic console which conveniently allows g-code commands to be sent directly to the Root 3 CNC.

The M119 command was used to test the endstops.  This g-code command reports the status of each endstop (open or triggered).  Each limit switch can be tested independently by manually pressing each switch and sending the M119 command:



 The default Marlin configuration did not meet my needs, so several firmware changes were needed:
  • enable maximum endstops at all times (not just during homing operations)
  • enable maximum endstops (defaults are only for minimum endstops)
  • set the work area limits

Research was performed online to find the relevant code, with these links being the most useful:

The changes were made by modifying the marlin files via the Arduino IDE, recompiling, and uploading the new firmware to the CNC.  The changes are shown below:


CONFIGURATION_ADV.H


CONFIGURATION.H


CONFIGURATION.H

No comments:

Post a Comment