I’m working on a project that uses Marlin firmware. My main problem at the moment is I need to control the extruder stepper separate from the XYZ steppers, as in I need to control it using my own logic in the firmware. Overall the printer would be executing the G0/G1 XYZ movements without any E parameters, and what I set elsewhere in the firmware will control the E movement.
Ive tried a number of things including messing with the queue, motion, planner, and position, current_position and destination but with limited success. My understanding is limited in those components at the moment.
An example of how to say toggle the extruder 1mm forward and back to 0mm/origin regardless of what gcodes are in the queue at any moment is ideal. At the very least, if someone can explain in detail how the motion and positioning works to be modified dynamically would be helpful.
Any help with this matter is greatly appreciated and please let me know if more info is needed.