Limit Switch Issues
- theobromus
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
12 Mar 2016 22:17 #71514
by theobromus
Limit Switch Issues was created by theobromus
I wonder if anyone here can help me figure out what's going on with my machine inputs?
I've been trying to get limit switches working with my machine and running in to some issues. I have proximity limit switches and a Leadshine MX4660 driver. I have the switches hooked up to the inputs on the driver. I'm able to see that the switches are tripping correctly (they have indicator LEDs) and I can see that the voltage drops from near 12v to 0.2v or so to ground (using a multimeter on the input).
However, some strange things are happening on the software side. I configured linuxcnc to map the inputs to homing/limit. And indeed if I jog to trigger the limit, perhaps 1 in 3 times I will see the emergency shutoff trigger as expected. But obviously if I try to autohome, the system runs itself into the bumper. Furthermore, trying to use the HAL meter, I always see the pin state as true (expected when the sensor isn't triggering since it's +12v), and I always see the homing/limit state as false.
The fact that it sometimes triggers the limit condition (and pops up the correct error with either the X or Y axis) is super weird. The voltages I measure with my multimeter (at least at the input to the driver - I don't know how to measure the parallel port voltages) are extremely consistent, so I don't think there's a short or something.
Does anybody have a clue what's going wrong here? Any better place to ask?
Thanks in advance
I've been trying to get limit switches working with my machine and running in to some issues. I have proximity limit switches and a Leadshine MX4660 driver. I have the switches hooked up to the inputs on the driver. I'm able to see that the switches are tripping correctly (they have indicator LEDs) and I can see that the voltage drops from near 12v to 0.2v or so to ground (using a multimeter on the input).
However, some strange things are happening on the software side. I configured linuxcnc to map the inputs to homing/limit. And indeed if I jog to trigger the limit, perhaps 1 in 3 times I will see the emergency shutoff trigger as expected. But obviously if I try to autohome, the system runs itself into the bumper. Furthermore, trying to use the HAL meter, I always see the pin state as true (expected when the sensor isn't triggering since it's +12v), and I always see the homing/limit state as false.
The fact that it sometimes triggers the limit condition (and pops up the correct error with either the X or Y axis) is super weird. The voltages I measure with my multimeter (at least at the input to the driver - I don't know how to measure the parallel port voltages) are extremely consistent, so I don't think there's a short or something.
Does anybody have a clue what's going wrong here? Any better place to ask?
Thanks in advance
Please Log in or Create an account to join the conversation.
31 Mar 2016 22:45 #72495
by bogie6040
Replied by bogie6040 on topic Limit Switch Issues
Some things to check...
Are the proximity switches getting the proper supply voltage per their datasheet?
Look at the hal file for your configuration and make sure that the correct function names are assigned to the correct parallel port pins....
I have seen in my own experience recently with wheezy 2.7 pncconf doesn't configure things correctly sometimes so it's always good to check your hal and ini files to be sure there are no obvious errors.
Bogie
Are the proximity switches getting the proper supply voltage per their datasheet?
Look at the hal file for your configuration and make sure that the correct function names are assigned to the correct parallel port pins....
I have seen in my own experience recently with wheezy 2.7 pncconf doesn't configure things correctly sometimes so it's always good to check your hal and ini files to be sure there are no obvious errors.
Bogie
Please Log in or Create an account to join the conversation.
02 Apr 2016 09:31 #72558
by andypugh
Replied by andypugh on topic Limit Switch Issues
What type of proximity switch are you using? 2-wire or 3-wire? NPN or PNP?
How have you wired the prox to the inputs?
Can you make Halmeter show the pin as false by using another bit of metal as a target?
How have you wired the prox to the inputs?
Can you make Halmeter show the pin as false by using another bit of metal as a target?
Please Log in or Create an account to join the conversation.
02 Apr 2016 09:40 #72559
by andypugh
Replied by andypugh on topic Limit Switch Issues
Figure 7 of the manual (www.leadshine.com/UploadFile/Down/MX4660d_V1.1.pdf )
shows how to wire an NPN proximity switch using an external power supply to input 3 and also shows how to use the built-in power supply for input 1.
You probably need an in-between wiring scheme, where the +12V out goes to OPTO1 and OPTO2 and to the power supply of the proximity sensor.
Then the 0V line of the prox sensors goes to the MX4660 digital GND pin, and the output of the prox (needing no extra resistor for 12v operation) goes to the INPUT1 / INPUT2 etc pins on the MX4660
shows how to wire an NPN proximity switch using an external power supply to input 3 and also shows how to use the built-in power supply for input 1.
You probably need an in-between wiring scheme, where the +12V out goes to OPTO1 and OPTO2 and to the power supply of the proximity sensor.
Then the 0V line of the prox sensors goes to the MX4660 digital GND pin, and the output of the prox (needing no extra resistor for 12v operation) goes to the INPUT1 / INPUT2 etc pins on the MX4660
Please Log in or Create an account to join the conversation.
Time to create page: 0.135 seconds