estop-out is not following the E-Stop status

More
11 Oct 2023 12:05 - 12 Oct 2023 13:23 #282739 by ruffle
Elsewhere in this August Forum, someone said that estop-out should automatically follow the E-Stop status... but it doesn't seem to.

I'm running rodw's fine build for bullseye on a RPi 4 which means Linuxcnc 2.10-pre0.

A simple config built with PNCConf produces the following things to do with estop:

[code]cnc@lathe:~/linuxcnc/configs/Test$ grep -i estop *
Test.hal:# --- ESTOP-OUT ---
Test.hal:net estop-out  =>     hm2_7i76e.0.7i76.0.0.output-05
Test.hal:# --- ESTOP-EXT ---
Test.hal:net estop-ext     <=  hm2_7i76e.0.7i76.0.0.input-15
Test.hal:#  ---estop signals---
Test.hal:net estop-out     <=  iocontrol.0.user-enable-out
Test.hal:net estop-ext     =>  iocontrol.0.emc-enable-in
cnc@lathe:~/linuxcnc/configs/Test$


Triggering the external E-Stop button shows ESTOP on Axis but the state of estop-out doesn't change.

Attached images showing without and with the External EStop button triggered but Halwatch shows no change to estop-out.

Is this a PNCConf thing? a 2.10.-pre0 thing or am I totally misunderstanding the function of estop-out?

[attachment=56488]Screenshot_2023-10-11_12-36-37.png[/attachment][attachment=56489]Screenshot_2023-10-11_12-37-09.png[/attachment]

Thanks.
[/code]
Attachments:
Last edit: 12 Oct 2023 13:23 by ruffle. Reason: Marked as solved

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

More
11 Oct 2023 15:12 #282754 by chris@cnc
You have latency problems and in this case, the EMG status does not change.
Run this and check where the problem is.
​​​​​​​latency-histogram --nobase --sbinsize 1000
halcmd show param hm2*tmax*
sudo chrt 99 ping -i .001 -q [your_card]

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

More
11 Oct 2023 16:01 #282757 by ruffle
Ah.... maybe that didn't help but...

I'd used Pncconf to generate a simple config and took the defaults including a servo period of 1000000.

Changing this to 2000000 (as suggested for an RPi 4 by PCW) gets rid of the warning but estop-out still doesn't change from FALSE no matter what the E-Stop status actually is.

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

More
11 Oct 2023 16:16 - 11 Oct 2023 16:23 #282758 by Aciera
could you please attach your hal and ini files?

[edit]
Also maybe try again with this line commented out in your hal file:

net estop-out  =>     hm2_7i76e.0.7i76.0.0.output-05
Last edit: 11 Oct 2023 16:23 by Aciera.

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

More
11 Oct 2023 17:39 - 11 Oct 2023 17:45 #282763 by ruffle
No difference with the

net estop-out  =>     hm2_7i76e.0.7i76.0.0.output-05

line commented out.

hal and ini files attached.

[edit]
FYI, nothing in the other hal files. As I said it was a simple config generated by Pncconf.
cnc@lathe:~/linuxcnc/configs/Test$ ls -l
total 44
-rw-r--r-- 1 cnc cnc 6630 Oct 11 18:33 Test.hal
-rw-r--r-- 1 cnc cnc 3233 Oct 11 16:41 Test.ini
drwxr-xr-x 2 cnc cnc 4096 Oct 11 12:02 backups
-rw-r--r-- 1 cnc cnc  103 Oct 11 12:02 custom.hal
-rw-r--r-- 1 cnc cnc  108 Oct 11 12:02 custom_gvcp.hal
-rw-r--r-- 1 cnc cnc  111 Oct 11 12:02 custom_postgui.hal
-rw-r--r-- 1 cnc cnc 1666 Oct 11 18:32 linuxcnc.var
-rw-r--r-- 1 cnc cnc 1666 Oct 11 18:32 linuxcnc.var.bak
-rw-r--r-- 1 cnc cnc  105 Oct 11 12:02 shutdown.hal
-rw-r--r-- 1 cnc cnc  209 Oct 11 12:02 tool.tbl
cnc@lathe:~/linuxcnc/configs/Test$ 
Attachments:
Last edit: 11 Oct 2023 17:45 by ruffle. Reason: Show other hal files

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

More
12 Oct 2023 02:43 #282792 by phillc54
iocontrol.0.user-enable-out does not follow the estop state, it is commonly used as an output from GUI's for estop.

github.com/LinuxCNC/linuxcnc/blob/2.9/sr...ask/ioControl.cc#L14

If you are looking to follow the estop state then you could use hauli.estop.is-activated.
 
The following user(s) said Thank You: Aciera

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

More
12 Oct 2023 10:10 #282805 by ruffle
Thanks for that pointer (wouldn't have found it in a million years!)

hauli.estop.is-activated does indeed follow the E-Stop state as you say.

However, I can't get it to turn the output on my 7i76E on :-(
net hauli.estop.is-activated => hm2_7i76e.0.7i76.0.0.output-05

doesn't actually change output 5 on when hauli.estop.is-activated changes. I'm using the same constructs for other 7i76E outputs (net pause-on => hm2_7i76e.0.7i76.0.0.output-06) and they work.

I'm missing something obvious but I'm in danger of wearing out Mr Google trying to find it :)

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

More
12 Oct 2023 10:37 #282806 by phillc54

net hauli.estop.is-activated => hm2_7i76e.0.7i76.0.0.output-05


You forgot a name for the net:
net estop-active hauli.estop.is-activated => hm2_7i76e.0.7i76.0.0.output-05

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

More
12 Oct 2023 12:37 #282815 by ruffle
I think that was one of the permutations I tried while flailing around but it results in an error:

Putting this in Test.hal:

net estop-active hauli.estop.is-activated => hm2_7i76e.0.7i76.0.0.output-05

Linuxcnc errors out with:
./Test.hal:28: Pin 'hauli.estop.is-activated' does not exist

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

More
12 Oct 2023 12:42 #282816 by tommylight

net estop-active hauli.estop.is-activated => hm2_7i76e.0.7i76.0.0.output-05

Typo, should be "halui"
net estop-active halui.estop.is-activated => hm2_7i76e.0.7i76.0.0.output-05

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

Time to create page: 0.176 seconds
Powered by Kunena Forum