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:
- Endstop Triggered But Does Not Stop
- Maximum Endstops Disabled
- How To Configure Endstops
- Configuring Endstops on RAMPS 1.4
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