Putting the "Stop" back in "E-Stop"

More
19 Jun 2020 01:59 #172052 by Bats
I'm trying to get a physical E-stop button wired to my Gecko G540 to simultaneously trigger linuxCNC/gmoccapy's F1 software E-stop when I hit it, bringing everything software-side to the same screeching halt as the hardware.

I've gotten as far as making estop-ext track the state of the button - as confirmed by Hal Meter (yay), but I'm at a complete loss for how to make that show linuxcnc the proverbial big red stop sign.

I suspect this should be a fairly straightforward operation for anyone with a rudimentary understanding of the HAL (or at least I assume that's why a search hasn't turned up more discussion of it).... But I, unfortunately, am a bat of very little brain, who hasn't quite gotten beyond the idea that the "H" stands for "Headache" - so suggestions or resources with small words and simple concepts would be especially welcome.

Current .hal & .ini are attached - please let me know if there's any other info I can provide.


-Bats
(I'm still not sure about the "A" and "L" - although I have a feeling "artichokes" are in there somewhere)
Attachments:

Please Log in or Create an account to join the conversation.

More
19 Jun 2020 02:43 #172053 by rodw
I think you need to follow the stpes in the first post here
forum.linuxcnc.org/47-hal-examples/25861-external-e-stop

Please Log in or Create an account to join the conversation.

More
19 Jun 2020 03:17 - 19 Jun 2020 03:21 #172055 by Todd Zuercher
You know you can designate e-stop io points for the parallel port in Stepconfig and it will make the hal connections for you.
Last edit: 19 Jun 2020 03:21 by Todd Zuercher.

Please Log in or Create an account to join the conversation.

More
19 Jun 2020 20:09 - 19 Jun 2020 20:18 #172098 by Bats

I think you need to follow the stpes in the first post here
forum.linuxcnc.org/47-hal-examples/25861-external-e-stop

Thanks. I'd seen that post before, but either lost track of it or wrote it off as inapplicable. It took a little fiddling (mostly due to leftover cruft from my prior attempts, I suspect), but I seem to have it working now.

You know you can designate e-stop io points for the parallel port in Stepconfig and it will make the hal connections for you.

That was my initial thought, but it only seemed to give me the pins, not the stopping behavior... unless I missed copying something over from the stepconf'd conf to my live conf (I've got an unstepconfable gantry that forced a fair bit of manual editing that a direct stepconf modify would've trodden all over).

Silly question, though... Hardware & HALs aside, is there a reason F1 only acts to engage the software E-stop, rather than both engaging and disengaging? It would make life easier if I could just [F1], [F2] after unlocking the hardware stop, rather than [pick up mouse & click], [F2].


In any case, thanks again for all the help - I think I'm roughly up and running now. Still a lot of minor tweaking (and some not-so-minor - I'd dearly love to mimic the Mach3 joypad plugin's jogging behavior), but I think I've got the fundamental roadblocks out of the way now, and can start trying to actually use the machine for a bit.

[edit: Oops... maybe not. Forgot about the spindle. Dammit. And probably three or four other things, too. Oh well.]


-Bats
Last edit: 19 Jun 2020 20:18 by Bats.
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
19 Jun 2020 20:23 #172100 by rodw

I think I'm roughly up and running now. Still a lot of minor tweaking (and some not-so-minor - I'd dearly love to mimic the Mach3 joypad plugin's jogging behavior), but I think I've got the fundamental roadblocks out of the way now, and can start trying to actually use the machine for a bit.

[edit: Oops... maybe not. Forgot about the spindle. Dammit. And probably three or four other things, too. Oh well.]


-Bats


So you don't want me to tell you about this anymore?
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant
Never tried it myself.

Please Log in or Create an account to join the conversation.

More
19 Jun 2020 21:58 #172110 by Bats

So you don't want me to tell you about this anymore?
wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant

Thanks - already had that one bookmarked as a starting point. I'm (not surprisingly) a little puzzled by how exactly it operates, though, since the description up top refers to proportional speed based on the stick (which is what made the Mach3 Joypad plugin such a joy so great to use), but later it looks like it's setting high/med/low speeds to be controlled by the buttons.

Either way, it's unfortunately being relegated to the back burner for the time being. Aside from the spindle taking precedence, I discovered that Debian can see the PS3 gamepad I'd been using with Mach3, but won't recognize any button/stick/trigger pressing/twiddling/twaddling - I'm at a loss for whether I could solve it with a new gamepad, or if it's a problem on the OS side (which I thought was supposed to support the PS3 controller natively).


-Bats

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum