Andy That's great
Looking at the syntax of G10, I think I would need to add [HALUI] # mdi-command-00 Touch off X MDI_COMMAND = G10 L20 P0 X0 # mdi-command-01 Touch off Y MDI_COMMAND = G10 L20 P0 Y0 # mdi-command-02 Touch off Z MDI_COMMAND = G10 L20 P0 X0 to my INI file I should then be able to add # Assign buttons to touch off commands net touch-off-x halui.mdi-command-00 <= input.0.btn-base5 net touch-off-y halui.mdi-command-01 <= input.0.btn-base6 net touch-off-z halui.mdi-command-02 <= input.0.btn-base7 to my postgui.hal file Sounds simple enough. I'll give it a go tonight. This will save having to reach for the keyboard after using the joystick to move to the touch off position. Mike On 9 May 2012 10:20, andy pugh <bodge...@gmail.com> wrote: > On 9 May 2012 06:36, Mike Bennett <mjb1...@gmail.com> wrote: > > > For now just linking a button to perform touch off zero would be good, > but I need a way to control which axis. I have several buttons spare so I > could use one for each axis. > > Touch-off is equivalent to G10, so you could link a button to an > MDI_COMMAND pin in HAL. > > http://www.linuxcnc.org/docview/html/config/ini_config.html#_halui_section_a_id_sub_halui_section_a > > That isn't as clear as it could be, but every entry in that section > creates a HAL pin called halui.mdi-command-NN and any time the pin is > taken high the specified G-code will run. > > -- > atp > The idea that there is no such thing as objective truth is, quite simply, > wrong. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users