Limit switches for X and Y axis #490
Replies: 6 comments 4 replies
-
This is not correct. Limit X is E5 pin. Not B5. About limit switchesThis depends a lot on your type of switches you are using (NO or NC) and the ref that they connect to (VCC, GND or float). So first you need to answer these 2 questions:
There are multiple variations to this setting but my recommendation is to:
Why connect this way you may ask? By setting enabling the input pins pull up you will ensure that if you forget to wire your limits or they malfunction in someway your pin input will always see a logic HIGH value and this will increase the security of your system. But you may have other type of switches or configurations and you can adapt to them by:
|
Beta Was this translation helpful? Give feedback.
-
"This is not correct. Limit X is E5 pin. Not B5." -- Ok. I made a mistake when typing. -- About the X & Y limits, I tested the Mega board alone (took off the ramps board) and tried the following (all with $5 = 0):
It seems that only Z and Probe limit switches are working and X & Y are disabled somehow.... |
Beta Was this translation helpful? Give feedback.
-
Ok I now understand why X and Y are not changing for you. In your case you shorted X but not X2 too so the alarm was always active. The same for Y. Disable X2 limit if you are not using it and the same for Y2. You can confirm this if you This will enable command $P that prints the current pin states. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
It works! Great. I was able to make the machine work with motors and limits. Thanks! (Now I have another problem with 4 axis - will open another thread) |
Beta Was this translation helpful? Give feedback.
-
I'm not being able to use the limit switches for axis X and Y. The Z switch is working but inverted and the pullup resistors seems to be disabled.
I used the files generated by the web config, with the defaults for the limits. When I try to use the Setup Wizard in UGS, I can't make the X and Y switches work. And the graphic display shows the corresponding alarms.
I've checked the pins/ports used in the config that are the following:
Port ISR Mega Pin Ramps
Limit X 5B -6 D3 Xmin
Limit Y 1J 1 D14 Ymin
Limit Z 3D -4 D18 Zmin
(Probe 2D -3 D19 Zmax )
(I'm not using Probe now, but I will)
The Z switch works inverted (alarms when set to LOW). switches X and Y do not work. If I invert the switches, X clears and Y stays triggered.
And all pullup resistors seems to be disabled.
How can I correct this?
Beta Was this translation helpful? Give feedback.
All reactions