- Posts: 90
- Thank you received: 0
Multihead-Spindle Automatic Tool-length Probe
6 years 7 months ago #160767
by HueyHQ
Multihead-Spindle Automatic Tool-length Probe was created 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:
And the following to the machine.hal file (increase num_dio):
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.
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:
Code:
[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):
Code:
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
I've attached the remap files referred to in the [RS274NGC].
The custom.hal that has the pin setup.
Attachment not found
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
6 years 7 months ago #160811
by tommylight
Replied by tommylight on topic Multihead-Spindle Automatic Tool-length Probe
Very nice.
Please Log in to join the conversation.
6 years 7 months ago #160915
by bevins
Replied by bevins on topic Multihead-Spindle Automatic Tool-length Probe
Nice Job. Will be doing something similar as I just acquired a Biesse 321R with two spindles and 22 drills.
Please Log in to join the conversation.
Time to create page: 0.080 seconds
