OK. So I grabbed the linuxcnc_master and unzipped it. In the python section
I've found the code that deals with the two buttons.
The class linuxcnc is reached through the
import linuxcnc
However, I can't find any code that defines
class linuxcnc:
def estop_clicked(event=None):
s.poll()
if s.task_state == linuxcnc.STATE_ESTOP:
c.state(linuxcnc.STATE_ESTOP_RESET)
else:
c.state(linuxcnc.STATE_ESTOP)
def onoff_clicked(event=None):
s.poll()
if s.task_state == linuxcnc.STATE_ESTOP_RESET:
c.state(linuxcnc.STATE_ON)
else:
c.state(linuxcnc.STATE_OFF)
I'm trying to find out what to put in the hal file that responds to the button
press. None of the pins appear to change when I click on it and hold it down.
Ie. Nothing appears to change to TRUE from FALSE. Or the other way around.
Suggestions?
Thanks
John
"ELS! Nothing else works as well for your Lathe"
Automation Artisans Inc.
www dot autoartisans dot com
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users