Touch probe configuration

More
11 Dec 2020 15:22 #191670 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
11 Dec 2020 17:15 #191679 by Todd Zuercher
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
12 Dec 2020 10:04 #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.

More
12 Dec 2020 10:35 #191723 by tommylight
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
12 Dec 2020 11:09 #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.
Attachments:

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

More
12 Dec 2020 16:50 #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.

More
12 Dec 2020 16:58 #191740 by elisa
Replied by elisa on topic Touch probe configuration
Sorry.

Now It's attached

File Attachment:

File Name: touchprobe...12-2.txt
File Size:1 KB
Attachments:

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

More
12 Dec 2020 17:22 - 12 Dec 2020 17:24 #191745 by Aciera
Replied by Aciera on topic Touch probe configuration
As you said, since you use trivial kinematics there is nothing else but drive that one joint.

[edit]
Any particular reason for not using a non-trivial kinematic?
Last edit: 12 Dec 2020 17:24 by Aciera.
The following user(s) said Thank You: elisa

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

More
12 Dec 2020 17:37 #191750 by tommylight

Any particular reason for not using a non-trivial kinematic?

Wanted to ask the same thing.
Not sure but it should be that when in World mode it should behave like a normal 3 axis machine although it has 5 or 6 axis/joints.
I have yet to dive into LinuxCNC robot part of the pond! :)

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

More
12 Dec 2020 17:45 #191751 by The Feral Engineer
Did you make your configuration with stepconf? On your port and pin setting page, you just link your probe input to the proper parallel pin and you'll get the proper config in your HAL file. Then you can use halmeter to test it. You just need to tie your probe to an input on your interface card. On my g540, I run it one side to input 4 and the other to common. Doesn't matter which lead goes where, it's just completing a circuit.
The following user(s) said Thank You: elisa

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

Time to create page: 0.078 seconds
Powered by Kunena Forum