Touch probe configuration

More
5 years 10 months ago #191670 by elisa
Touch probe configuration was created by elisa
Hi everybody,

First, I'm new to this forum and forgive me if I ask stupid questions.

However, can anyone tell me how to set up a touch probe in LinuxCNC?
In the documentation it says that it is necessary to write a line "net probe parport.0.pin-10-in => motion.probe-input" in the .HAL file but I don't understand how I can do it, and I'm afraid there is more to do.

Please answer soon
Thanks

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #191679 by Todd Zuercher
Replied by Todd Zuercher on topic Touch probe configuration
Where do you intend to connect your probe?
If you are connecting it to pin 10 of your first or only parallel port. Then yes that line above is all you need. If not then you will need to modify that line to point to the input you are using.

You might also want to configure probing routines or other such useful features, but that will be more complicated and specific to what you are trying to do.
The following user(s) said Thank You: elisa

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #191720 by elisa
Replied by elisa on topic Touch probe configuration
Thanks for replying me soon.

Let me give you more details. I have a self-made touch probe with just two wires to connect to Arduino, one to connect to Vcc and the other to ground. Then, I was thinking of connecting Arduino to LinuxCNC to send it the touch status.

So can I use that file .HAL to connect Arduino too?

Please Log in or Create an account to join the conversation.

  • tommylight
  • Away
  • Moderator
  • Moderator
More
5 years 10 months ago #191723 by tommylight
Replied by tommylight on topic Touch probe configuration
There is no need for an arduino, touch probe can be wired directly to parallel port inputs and use the above line in hal.
Some routine has to be done in gcode to position the Z axis above the probe and drive the axis down till it touches the probe, then set the offset for the tool.
The following user(s) said Thank You: elisa

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #191725 by elisa
Replied by elisa on topic Touch probe configuration
Thank you.

Regarding the gcode, I have read in the documentation that I can use the commad G38.n to lower the probe and use #5070 to control its status.
However, I have a 5DoF robotic arm, so I'm afraid it wouldn't work because the Z is the current joint angle and not the Z space coordinate.

I have attached a pseudo gcode that I made. Once the position has been reached with command G1, a subroutine is called which is thought to check the status of the probe with command # 5070 and the probe descends until it touches the surface. Also, the current joint angles are stored in a log file.

Do you think it will work ?

Please, write me soon.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #191737 by Aciera
Replied by Aciera on topic Touch probe configuration
I see no attachment.

Please Log in or Create an account to join the conversation.

Time to create page: 0.188 seconds
Powered by Kunena Forum