Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 10:36:20 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Reset = E-stop?
Pages: « 1 2 3 4 5 6   Go Down
Print
Author Topic: Reset = E-stop?  (Read 1037 times)
0 Members and 2 Guests are viewing this topic.
jrobson
Active Member

Offline Offline

Posts: 78


View Profile
« Reply #50 on: June 06, 2011, 04: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, 04:42:15 AM by jrobson » Logged
jrobson
Active Member

Offline Offline

Posts: 78


View Profile
« Reply #51 on: June 06, 2011, 05: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, 05:08:38 AM by jrobson » Logged
Hood
Active Member

Offline Offline

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #52 on: June 06, 2011, 05:25:19 AM »

Good to see you got it the way you want.
Hood
Logged
jrobson
Active Member

Offline Offline

Posts: 78


View Profile
« Reply #53 on: June 06, 2011, 05: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 Smiley which is exactly how the reset normally works.
Logged
Hood
Active Member

Offline Offline

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #54 on: June 06, 2011, 05: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
Logged
jrobson
Active Member

Offline Offline

Posts: 78


View Profile
« Reply #55 on: June 06, 2011, 06: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.
Logged
Hood
Active Member

Offline Offline

Posts: 17,366


Carnoustie, Scotland


View Profile
« Reply #56 on: June 06, 2011, 06:08:18 AM »

Ok then should work fine the way you have it.
Hood
Logged
Pages: « 1 2 3 4 5 6   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!