Subroutine with Toolchange
06 Oct 2013 00:09 #39585
by ljask
Subroutine with Toolchange was created by ljask
I have written several ngcgui subroutines to use with a Sherline lathe and mill. In the subroutines I issue a T<n>M6 code. When using the lathe, the tool information is loaded into memory and execution of the subroutine continues without pausing for confirmation. On the mill, the subroutine hangs--apparently waiting for acknowledgement that the tool has been changed. Everything works as expected using a sim configuration.
The lathe uses the core_stepper.hal file; the mill uses stepper_xyza.hal; of course, the sim configuration uses the core_sim,hal, axis_manualtoolchange.hal and simulated_home.hal files. I would like to get the mill to act like the lathe, picking up tool information without pausing the subroutine. Any thoughts?
Thanks!!
The lathe uses the core_stepper.hal file; the mill uses stepper_xyza.hal; of course, the sim configuration uses the core_sim,hal, axis_manualtoolchange.hal and simulated_home.hal files. I would like to get the mill to act like the lathe, picking up tool information without pausing the subroutine. Any thoughts?
Thanks!!
Please Log in or Create an account to join the conversation.
06 Oct 2013 00:39 #39588
by cmorley
Replied by cmorley on topic Subroutine with Toolchange
use halmeter to look at the iocontrol pins for toolchange handling:
www.linuxcnc.org/docs/2.5/html/config/emc2hal.html#_pins_3
tool-change
tool-changed
tool-prepare
tool-prepared
Are probably the one to look at first
Chris M
www.linuxcnc.org/docs/2.5/html/config/emc2hal.html#_pins_3
tool-change
tool-changed
tool-prepare
tool-prepared
Are probably the one to look at first
Chris M
Please Log in or Create an account to join the conversation.
06 Oct 2013 01:07 #39590
by ljask
Replied by ljask on topic Subroutine with Toolchange
It works. I made the assumption that standard_pinout.hal files were all the same. Not so! The hal file for the mill had two lines commented out that "create a signal for tool loading loopback." Simply uncommenting the two lines fixed the problem.
Thanks. You saved me many hours.
Thanks. You saved me many hours.
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds