[Emc-users] Setting outputs based on tool number

2014-11-26 Thread Eric H. Johnson
Hi all, I need to set a couple outputs based on which tool is selected. I only have 3 tools. I expect others have run into this issue. So far the easiest way I see is to convert iocontrol.0.tool-number into a float and then use comparators on that value to set the states of my outputs. Is

Re: [Emc-users] Setting outputs based on tool number

2014-11-26 Thread andy pugh
On 26 November 2014 at 18:00, Eric H. Johnson ejohn...@camalytics.com wrote: I need to set a couple outputs based on which tool is selected. I only have 3 tools. I expect others have run into this issue. So far the easiest way I see is to convert iocontrol.0.tool-number into a float and then

Re: [Emc-users] Setting outputs based on tool number

2014-11-26 Thread andy pugh
On 26 November 2014 at 19:57, Sebastian Kuzminsky s...@highlab.com wrote: How would this extra field in the tool db be exposed in HAL? Wouldn't that require changes to IO? First there would need to be a tool database, but then whatever plug-in was fielding tool-chang not-NML requests would use

Re: [Emc-users] Setting outputs based on tool number

2014-11-26 Thread TJoseph Powderly
from my Heidenhain experience every cell in the tool table is mapped to system variables which are loaded when the tool table is loaded because of this i could write a row of cells in the tool table and use them for whatever i wanted example cell 1= tool pod, cell 2 = tool diamets, cell 3 =