Reprogram Endstop for Marlin (RAMPS 1.4)

Hello all,

I have installed an additional swivel axis in a converted 3D printer.
Used is Arduino Mega 2560 with a Ramps 1.4. Marlin is used as firmware.
The motor for the swivel axis is normally provided for the extruder, in my case it provides for swiveling of the E-axis.

I plan to install a limit switch to ensure that the E-axis should move to the vertical position. The problem is that there is only limit switches for the X-, Y- and Z-axis available.
The limit switches for the X-, Y- and Z-min position are already used.
Is it possible to use one of the max position limit switches for the E-axis?

IMG2

I had thought to reprogram one of the max position (X, Y or Z) so that this instead of the max position of the (X-, Y- or Z) controls the swivel angle of the E-axis to 0° (vertical position). Is it possible to reprogram something like this in the firmware?

of course you can use this pins. Marlin has for each known board own pin.h. but it will not automatically do what you want. find in firmware place where are endstops readed (G28 routine i think) and adopt.

this is exactly my problem, I do not know where and how I have to change it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.