Simple G code question (reprap3firmware)
I cant get my endstop switch to reverse/invert... the stop works and triggers but the light is always on unless you push the momentary lever...then it goes out... With this new reprap 3 i just switched to im getting confused on how to change this.... i was led to believe that adding the "!" after the p" would invert this but it does not... here is the line for the specific offender lol
M574 Y1 S1 P"ystop"
Am I missing something..?
alankilian last edited by
The LED is directly connected to the switch input.
It does not change its state based on the M574 configuration.
The LED will be on when the endstop input is connected to ground by the switch. Whether this is when the switch is triggered or when it is not triggered depends on whether you are using the normally-closed or normally-open contacts of the switch. Putting ! or not at the start of the pin name does not affect the LED.
wingtip last edited by wingtip
Now im more confused.... on all my other endstops on this printer and another printer all have the lights out untill you home something then when triggered (and holding against the switch) the lights stay on... once you move the axis away from the switch they go out. Why would this one be opposite?
EDIT: ahhh so i just need to reverse two of the wires to change it from no to nc or vice versus?
For complete clarity, show us your switches and how they are wired.
Ok let me take a pic but all of them are wired the same and 4 motor endstops so far work as they should, not this one. This 5th one is the last one that requires an endstop. Let me get a pic.
Went to take a pic and was verifying the wiring and noticed on one of the breakout boards i had two wires backwards... Switch now works as it's suppose to...
Once again i just need to take a break now and then and stop spending 10 hours at a time working on this thing frying my old brain hahaha.
Thank you guys... Now i just need to figure a way to tighten the carriage belt without redesigning and reprinting some major parts... then build the bed, then start printing....