Hello Guest it is March 28, 2024, 09:02:55 AM

Author Topic: Reset = E-stop?  (Read 19479 times)

0 Members and 1 Guest are viewing this topic.

Re: Reset = E-stop?
« Reply #50 on: June 06, 2011, 05:40:23 AM »
What about an IF statement that checks if E-Stop is activated and if it is then resets it with 1021?
« Last Edit: June 06, 2011, 05:42:15 AM by jrobson »
Re: Reset = E-stop?
« Reply #51 on: June 06, 2011, 06:03:30 AM »
Got it working if anyone wants a "reset" button here is the code:
DoOEMButton(1003)
DoOEMButton(172)
DoOEMButton(1002)
Sleep 10
If(GetLED(0))Then
DoOEMButton(1021)
end if

Thank you guys for helping out, much appreciated!
« Last Edit: June 06, 2011, 06:08:38 AM by jrobson »

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Reset = E-stop?
« Reply #52 on: June 06, 2011, 06:25:19 AM »
Good to see you got it the way you want.
Hood
Re: Reset = E-stop?
« Reply #53 on: June 06, 2011, 06:45:38 AM »
I hope it works with a hardware e-stop though, but I'll test that when the console is done. It should release the e-stop then immediately activate it again... in theory :) which is exactly how the reset normally works.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Reset = E-stop?
« Reply #54 on: June 06, 2011, 06:50:56 AM »
Think I would have the macropump monitoring your E-Stop input and Machs Reset LED and if in the combination you want then untwisting the E-Stop would automatically take Mach out of Reset. Or at least I think that may be what you are trying to achieve.
Hood
Re: Reset = E-stop?
« Reply #55 on: June 06, 2011, 07:03:32 AM »
Not really, untwisting may leave it in e-stop, as long as it resets after just fine, I just don't want it to reset while the e-stop is pressed in.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Reset = E-stop?
« Reply #56 on: June 06, 2011, 07:08:18 AM »
Ok then should work fine the way you have it.
Hood