Thanks for responding Andy.

My thoughts about using iocontrol were:
most flexible using HAL code - either hardware or software can set it.
It makes logical sense that the toolchanger would tell linuxcnc what tool is in 
the spindle
If someone wants some even more custom behavior they can make a different 
iocontrol program which is _way_ easier to understand then task.

If the toolnumber is saved to a var file then one could write code to read the 
file and set a HAL pin that is connected to iocontrol

Chris
________________________________
From: andy pugh <[email protected]>
Sent: May 20, 2019 8:47 AM
To: EMC developers
Subject: Re: [Emc-developers] iocontrol.cc never runs EMC_TOOL_INIT message

On Sun, 19 May 2019 at 05:00, Chris Morley <[email protected]>
wrote:

> I pushed a proof of concept branch - iocontrol_init_tool
> It will set the current tool in AXIS on startup.
> It currently just sets it to a hardcoded number from the INI file -
> presumedly One could add HAL code to set it properly.


I have been meaning to look at this for weeks but haven't found the time.
I was going to approach it differently, having noticed that adding the tool
number parameter to the .vars file  does save the value (but it gets
over-written during the startup sequence)

I will try to look at your branch to see if what you have found helps me at
all...

--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to