iocontrol.0.user−enable−out

(Bit, Out) FALSE when an internal estop condition exists

iocontrol.0.user−request−enable

(Bit, Out) TRUE when the user has requested that estop be cleared


and

halui.machine.is−on bit out

pin for machine is On/Off


are what I've used in past I believe.





On Fri, 01 Nov 2019 00:20:23 -0400, John Dammeyer <[email protected]> wrote:

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


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

Reply via email to