Multihead-Spindle Automatic Tool-length Probe

More
19 Mar 2020 19:25 - 19 Mar 2020 19:27 #160767 by HueyHQ
Started this project late last year, got busy at work for a couple of months, but have now had a chance to finish up.
Apart from the Z-toolgauge and the laser bought cheap off eBay, I've made it out of stuff I found around the workshop.

Quite happy with the result. I can issue an M210 P22 for a single tool, or add a Q parameter for a range of tools, as I have in this video:


I added the following to the INI file:
[RS274NGC]
USER_M_PATH = nc_subroutines
REMAP= M6   modalgroup=6  prolog=change_prolog   ngc=tool_change  epilog=change_epilog
REMAP= M200 modalgroup=10 ngc=m200 #raise all tools
REMAP= M210 modalgroup=10 argspec=Pq ngc=tool_length
REMAP= M211 modalgroup=10 ngc=tool_probe_x

And the following to the machine.hal file (increase num_dio):
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_dio=32 
....
loadrt and2 count=3
loadrt or2 count=1

loadrt debounce cfg=2
setp debounce.0.delay 50
addf debounce.0 servo-thread
....
#  ---probe signal---

net probe-in     =>  motion.probe-input

#  ---toolchange signals for custom tool changer---

net tool-prep-loop iocontrol.0.tool-prepare iocontrol.0.tool-prepared 
net tool-change-loop iocontrol.0.tool-change iocontrol.0.tool-changed 
although I think the net probe-in already exists.

I've attached the remap files referred to in the [RS274NGC].

The custom.hal that has the pin setup.
Last edit: 19 Mar 2020 19:27 by HueyHQ.
The following user(s) said Thank You: Todd Zuercher, tommylight

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

More
20 Mar 2020 00:36 #160811 by tommylight

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

More
20 Mar 2020 18:01 - 20 Mar 2020 18:01 #160915 by bevins
Nice Job. Will be doing something similar as I just acquired a Biesse 321R with two spindles and 22 drills.
Last edit: 20 Mar 2020 18:01 by bevins.

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

Time to create page: 0.159 seconds
Powered by Kunena Forum