I'm working on something that I'll share once it's done (then hope it's not a disaster and actually useful to someone).

It requires a stepper to rotate a part by a certain amount of degrees, which I plan to achieve by using E1 and simply issuing an appropriate G0 command.

The issue I'm having is that I would need Marlin, upon start to check if the part is actually rotated to the 0 deg position.

I suspect that there is no way to i.e. use an unused Z max pin and issue something like the well known G28 or like Duet3D does with G0/1 S parameter. Is there maybe a hack I can apply with a filament run out sensor as that axis endstop?

  • $\begingroup$ Can you edit for clarity, please? "rotating a stepper" sounds like rotating the mount. I'm guessing what you want, per the answer, is to home a separate stepper and then drive it N steps. $\endgroup$ – Carl Witthoft Jul 1 '19 at 15:31
  • $\begingroup$ Another option would be Klipper's "manual_stepper" functionality. Will the project be standalone, or is it connected to a Raspberry / PC at all times? $\endgroup$ – towe Jul 3 '19 at 6:40
  • $\begingroup$ I set Marlin as a baseline for myself thinking that if I can get it to work on Marlin 1.1.x it'll work on Marlin 2, Klipper and Duet3D. Nevertheless your input is highly appreciated as I'd like to at some point provide instructions on how to run it on the mentioned three. $\endgroup$ – McAbra Jul 3 '19 at 16:31

You should be able to adapt the "Dual X Carriage" feature for your project.

That allows a second print head (on the X axis) to move independently of the "main" X axis motor - and it can also be homed against its own endstop.

You can enable this feature in the configuration_adv.h file under "Dual X Carriage".

By default, all "Dual X/Y/Z axis" features use the first free extruder stepper driver - which would be E1 in your case.

You would have to adjust the X2 parameters to allow you to zero the motor on the endstop (X2_MIN_POS 0, X2_HOME_DIR -1, X2_HOME_POS X2_MIN_POS), as well as setting the default mode to "FULL CONTROL" (DEFAULT_DUAL_X_CARRIAGE_MODE DXC_FULL_CONTROL_MODE).

As far as I understand, you can then use T0 and T1 to change between both "X axes", with T0 selecting your real X axis, and T1 your custom stepper motor.

| improve this answer | |
  • $\begingroup$ It is a good idea to use a second X-axis stepper and the X-max end-stop. This means that the OP needs to divert from the E1 approach. $\endgroup$ – 0scar Jul 1 '19 at 10:23
  • $\begingroup$ E1 would still apply, only it's not really E1 anymore. "Dual X Carriage" uses the first unused extruder port for its operation, much like the perhaps more common "Dual Z Axis". $\endgroup$ – towe Jul 1 '19 at 10:48
  • 1
    $\begingroup$ Yes I know, but you should make that clear in the answer as the OP might be on the route of specifying an E1 and a mechanism to home the stepper, while the dual X approach is different, certainly in the configuration file. $\endgroup$ – 0scar Jul 1 '19 at 11:03
  • 1
    $\begingroup$ @0scar I think it should be clearer now, though Marlin documentation on the Dual X Carriage feature is a bit lacking. $\endgroup$ – towe Jul 1 '19 at 11:54
  • $\begingroup$ Thanks for the edit! This makes it better to understand for the OP and other users! $\endgroup$ – 0scar Jul 1 '19 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.