- Posts: 14
- Thank you received: 0
What input should I use for a probe fault.
6 years 3 months ago #174042
by oldtech
What input should I use for a probe fault. was created by oldtech
I'm building an experimental probe that will have the ability to fault if too much force is applied to it. So I need a way to halt motion when this occurs in order to limit damage to the probe. Any suggestions?
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
6 years 3 months ago #174065
by tommylight
Replied by tommylight on topic What input should I use for a probe fault.
What type of output will it have for overload ? Analogue or digital?
Digital is easy to do in hal, analogue would require some type of Mesa or analogue to digital converter.
Digital is easy to do in hal, analogue would require some type of Mesa or analogue to digital converter.
Please Log in to join the conversation.
6 years 3 months ago #174078
by rodw
Replied by rodw on topic What input should I use for a probe fault.
If you connect your probe to motion.probe−input , it will halt motion when its triggered. If you want to measure force, thats a different kettle of fish!
Please Log in to join the conversation.
6 years 3 months ago #174105
by oldtech
Replied by oldtech on topic What input should I use for a probe fault.
Thanks. I should have added more details. I'm using Linux Mint with a Mesa 5i25/7i76 and I'm still the process of building out my control box and adding new features. I should also add that I'm connecting to a cnc router (a Millrightcnc Power Route). I'm retired with a background in system and application software mostly on Windows.
The probe will only have analog inputs and outputs. Yes, I know that the probe will stop on contact but since there is always some overshoot I'm adding an internal limit signal. If successful, I'm planning on mounting the probe to a sub-z-axis so that it is always available and does not require a tool change.
So it sounds like I simply need to connect the internal limit signal to a custom analog input and then connect that pin to E-Stop.
I should emphasize that the probe is very much in a conceptual state with a goal to have an accuracy of 0.01mm.
The probe will only have analog inputs and outputs. Yes, I know that the probe will stop on contact but since there is always some overshoot I'm adding an internal limit signal. If successful, I'm planning on mounting the probe to a sub-z-axis so that it is always available and does not require a tool change.
So it sounds like I simply need to connect the internal limit signal to a custom analog input and then connect that pin to E-Stop.
I should emphasize that the probe is very much in a conceptual state with a goal to have an accuracy of 0.01mm.
Please Log in to join the conversation.
6 years 3 months ago #174141
by rodw
Replied by rodw on topic What input should I use for a probe fault.
A couple of problems.
Linuxcnc does not really have a method to receive an analog input. If the the 7i76 is like the 7i76e there is a mode to enable some analog voltage inputs but its not particularly accurate.
With Plasma machines we use the encoder input with a bit file that converts the mesa encoder input into 3 x Encoder A inputs which then support 3 x THCAD voltage to frequency boards that is decoded from the encoder count back to a voltage. But you need the encoder for your spindle. You might be able to use the software encoder component.
Estop will need a bit output pin not a float. You might like to look at the sourcecode for the ohmic component in master branch for inspiration.
linuxcnc.org/docs/devel/html/man/man9/ohmic.9.html
It might work for you as is. Its purpose is to take a voltage from a THCAD and generate a probe output with hysteresis.
Linuxcnc does not really have a method to receive an analog input. If the the 7i76 is like the 7i76e there is a mode to enable some analog voltage inputs but its not particularly accurate.
With Plasma machines we use the encoder input with a bit file that converts the mesa encoder input into 3 x Encoder A inputs which then support 3 x THCAD voltage to frequency boards that is decoded from the encoder count back to a voltage. But you need the encoder for your spindle. You might be able to use the software encoder component.
Estop will need a bit output pin not a float. You might like to look at the sourcecode for the ohmic component in master branch for inspiration.
linuxcnc.org/docs/devel/html/man/man9/ohmic.9.html
It might work for you as is. Its purpose is to take a voltage from a THCAD and generate a probe output with hysteresis.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
6 years 3 months ago #174142
by tommylight
Replied by tommylight on topic What input should I use for a probe fault.
This should do just fine for that
www.ti.com/product/LM331
www.ti.com/product/LM331
Please Log in to join the conversation.
6 years 3 months ago #174145
by oldtech
Replied by oldtech on topic What input should I use for a probe fault.
The 7i76 has 8 analog inputs and I'm successfully using 3 for limit/home switches.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
6 years 3 months ago #174148
by tommylight
Replied by tommylight on topic What input should I use for a probe fault.
7i76 should have 4 analogue inputs when set to mode 2, not 8, but in any case double check that.oldtech wrote: The 7i76 has 8 analog inputs and I'm successfully using 3 for limit/home switches.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
6 years 3 months ago #174149
by tommylight
Replied by tommylight on topic What input should I use for a probe fault.
That reminds me, you should have mentioned you have an 7i76 in the first post, wasted 10 minutes looking where did i put those LM331 chips as i have 3 of them in a box waiting for some quality time .....oldtech wrote: The 7i76 has 8 analog inputs and I'm successfully using 3 for limit/home switches.
Please Log in to join the conversation.
6 years 3 months ago #174150
by rodw
Yes, you need to change modes to use as analog inputs. If you don't they are normal digital inputs. I use them for home/limits too.
Replied by rodw on topic What input should I use for a probe fault.
oldtech wrote: The 7i76 has 8 analog inputs and I'm successfully using 3 for limit/home switches.
Yes, you need to change modes to use as analog inputs. If you don't they are normal digital inputs. I use them for home/limits too.
Please Log in to join the conversation.
Time to create page: 0.158 seconds
