"iocontrol.0.user-enable-out" seems broken in latest 2.9 master

More
3 years 11 months ago #257055 by cmorley
How did you decide iocontrol.0.user-enable-out is not working?
I checked on the sim configs and it seems to work.
I don't see anything in the HAL file - other then you need an external input to complete the estop loop.

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

More
3 years 11 months ago #257067 by turbostew
Well, it never goes True. It did from master 6 months ago. I also notice that the ESTOP soft button is alway green in the middle, it used to toggle. I wonder if an external estop cycle is needed to "enable" the iocontrol.0.user-enable-out? My external estop shuts down drives and other stuff so not easily tested.

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

More
3 years 11 months ago #257069 by cmorley
Ahh I think I see the problem.
If the external estop input is high (clear) at start up it wont let you clear the GUI estop.

While I was testing, the external signal started low so i didn't see this.
Ok let me look into this.

And yes the behavior changed a while back to more closely follow AXIS's behavior.

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

More
3 years 11 months ago - 3 years 11 months ago #257073 by cmorley
ok this behavior is consistent with AXIS so seems an oddity of linuxcnc it's self.

The external enable-in pin can not be in a true state before the GUI estop pin is set true.

iocontrol.0.enable-in will ignore the gui enable-out state (unless connected via HAL)
yet gui enable-out pin will not turn high when linuxcnc is set out of estop by enable-in

Normally the GUI enable-out pin is part of the HAL estop chain, so is _always_ true before the enable-in pin gets set true. This was by design.

So if you can add estop-out to the external estop chain, this will work properly.
Said another was, the GUI button must initiate clearing the external estop chain, before estop-ext is set high.

Chris
Last edit: 3 years 11 months ago by cmorley.
The following user(s) said Thank You: arvidb

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

More
3 years 11 months ago #257174 by turbostew
Thank You Chris for all the help. Sorry, but can you be more clear what you mean when you say "you can add estop-out to the external estop chain"? What are the exact hal signal names you are referring to?

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

More
3 years 11 months ago #257190 by cmorley
Sorry it's hard to be exact as I don't know your hardware or needs.
Based on your HAL file you selected an external estop input (estop-ext)
This says to me you want external hardware to be able to estop linuxcnc.

Usually one wants to be able to estop/reset via the GUI button, but that is not the only option.
Here are some options (sim/axis/classicladder can demo these)

1) just use the gui button (no external estop)
2) just the external estop - gui button will only set the machine off or the button can be removed
3) combined gui and external -comes out of estop immediately when both are cleared
4) combined gui and external with estop reset latch - comes out of estop when both are cleared and gui button is pressed

The chain refers to the software and hardware links.
for option 1 above (standard in the sim configs):

net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in


Here is yours (I removed debounce for clarity)

net estop-out <= iocontrol.0.user-enable-out
net estop-out => hm2_7i92.0.7i84.0.0.output-00

net estop-ext => iocontrol.0.emc-enable-in
net estop-ext <= hm2_7i92.0.7i84.0.0.input-00

estop-out is the gui signal sent out to external logic
estop-ext is the input from the logic that actually sets linuxcnc in/out of estop

If you electrically connected hm2_7i92.0.7i84.0.0.output-00 to hm2_7i92.0.7i84.0.0.input-00 The button would work normally.
If you wanted to add a hardware estop button to this, then you would add a switch between them. In that case the gui and the hardware button must be cleared to clear linuxcnc's estop state.

What do you wish to do?

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

Moderators: cmorley
Time to create page: 0.059 seconds
Powered by Kunena Forum