Zeroing Z axis

More
27 Aug 2015 19:40 #61838 by vre
Zeroing Z axis was created by vre
I have ordered this tool for zeroing Z axis www.aliexpress.com/item/CNC-Router-MACH3...ment/1615336689.html

I have used stepconf wizard to setup my cnc 6040 router and reserved one input for height tool
how can i setup in linuxcnc this tool to make automatically this procedure of zeroing Z axis ?
thank you.

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

More
27 Aug 2015 20:18 - 27 Aug 2015 23:13 #61839 by ArcEye
Replied by ArcEye on topic Zeroing Z axis
Set up one of your halui.mdi-command-NN entries in your ini file to the appropriate G10 L20 Pn Z0 entry

www.linuxcnc.org/docs/devel/html/gcode/g...et_coordinate_system

Then net the output from the sensor to the halui.mdi-command-NN pin and Z will be zeroed when it goes true

That is the basics of it, lots of refinements possible

regards
Last edit: 27 Aug 2015 23:13 by ArcEye.

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

More
29 Aug 2015 23:28 - 29 Aug 2015 23:31 #61892 by vre
Replied by vre on topic Zeroing Z axis
Iam totally new so i don't understand these..
Exists a tutorial how to do it ?
Here is my config

File Attachment:

File Name: 6040-paral...8-29.zip
File Size:7 KB

6040-parallel.hal has the line (this is from stepconf wizard i reserved pin 11 of parallel port as probe in)
net probe-in        <= parport.0.pin-11-in-not

thank you.
Attachments:
Last edit: 29 Aug 2015 23:31 by vre.

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

More
29 Aug 2015 23:41 - 29 Aug 2015 23:42 #61894 by ArcEye
Replied by ArcEye on topic Zeroing Z axis
Put the line
MDI_COMMAND = G10 L20 P1 Z0 in your ini file as first entry

www.linuxcnc.org/docs/devel/html/config/....html#_halui_section

In your hal file
net probe-in        <= parport.0.pin-11-in-not
net probe-in        =>  halui.mdi-command-00

This will reset Z to 0 in coordinate system 1 (G54) every time the probe triggers.

That might not be too convenient, so you could for instance arrange it that you need a button press to confirm, via an and component, before it zeros.

That is what I meant by a lot of refinements are possible

regards
Last edit: 29 Aug 2015 23:42 by ArcEye.
The following user(s) said Thank You: vre

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

More
30 Aug 2015 19:43 #61919 by Rick G
Replied by Rick G on topic Zeroing Z axis

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

Time to create page: 0.456 seconds
Powered by Kunena Forum