Is it possible to add a custom G command

Hi! I am using a ramps board for a project the involves a conveyor, I would like to be able to use one of the extruder axis' on the board to operate the conveyor. How hard would it be too to copy G28 and modify it for an extruder, and use one of the digital I/O for sensing an endstop. That way when the part comes down the conveyor it homes on the endstop and then starts.

Thanks!

Comments

  • We have a event system that allows adding gcode and mcodes without modifying the original code. Check on github where you see some sample event implementation and read the Events.h description on what you can modify.

    In drivers.h/cpp we also allow adding extra motor drivers. You could use that for the conveyor belt, maybe in modified version if you need endstop handling.
Sign In or Register to comment.