[Emc-users] Setting outputs based on tool number
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 there an easier way to do this? Thanks, Eric -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Setting outputs based on tool number
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 use comparators on that value to set the states of my outputs. I think I would use mux_generic, with the integer selector linked to the tool number. (though you would still have to convert tool-number from signed to unsigned) http://www.linuxcnc.org/docs/html/man/man9/mux_generic.9.html You could either use more then one, of type bit or use type unsigned then convert the bit patterns to output pins using bitslice http://www.linuxcnc.org/docs/html/man/man9/bitslice.9.html This seems like a case where an extra field in the tool database would be rather handy. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Setting outputs based on tool number
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 the tool database API to extract the information. (I didn't say that it was anywhere near happening). For the application in question it would probably suffice to add magic bits to the pocket number of the tool and bitslice them out. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Setting outputs based on tool number
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 = favorite color, cell 3 = flow meter set point for whatever i wanted simple, flexible regards Tomp tjtr33 On 11/26/2014 01:57 PM, Sebastian Kuzminsky wrote: On 11/26/2014 11:58 AM, andy pugh wrote: 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 use comparators on that value to set the states of my outputs. ... This seems like a case where an extra field in the tool database would be rather handy. How would this extra field in the tool db be exposed in HAL? Wouldn't that require changes to IO? -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users