Pin 'halui.estop.is−activated' does not exist, when clearly it does

More
11 Jul 2019 11:21 #139100 by JetForMe
I'm trying to wire up `halui.estop.is−activated`, but LinuxCNC (2.9) doesn't like it. Here's a snippet of my HAL:
net program-idle <= halui.program.is-idle
net program-open-collet <= motion.digital-out-02		# m64/m65 p2
net program-purge-air <= motion.digital-out-03			# m64/m65 p3

net e-stop-active <= halui.estop.is−activated

The first line reference to `halui.program.is-idle` goes without a hitch. I can look in the Show HAL Configuration UI and see the pin is there and responding to changes in Axis. I can even issue a hal command in the dialog to link `halui.estop.is−activated` to a net. But I can't do it in my HAL files. I also tried to do it in postui.hal, but that had no effect. I think my hal ui pins are all created by the time any of my HAL files are read:
[HAL]
#TWOPASS = on			Doesn't work, causes load errors
HALUI = halui
HALFILE = router3.hal
HALFILE = io.hal
HALFILE = custom.hal
HALFILE = postgui.hal

[HALUI]

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

More
11 Jul 2019 15:34 - 11 Jul 2019 15:36 #139109 by pl7i92
just mark it as # not read
then start the mashine and look if it is existig
spelling
as of 2.9 the pinnames changed

and use the one that is in halshow
or halmeter present

it is highly recomended to use halui only in postgui files as special the estop chain is effected

POSTGUI_HALFILE = custom_postgui.hal
not a postgui as a halfile and at the end of the hal files loaded
Last edit: 11 Jul 2019 15:36 by pl7i92.

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

More
11 Jul 2019 20:47 - 11 Jul 2019 20:49 #139124 by JetForMe
The pin name *hasn't* changed, though. It shows up in the running LinuxCNC as I detailed above.

And I tried POSTGUI_HALFILE = postgui.hal

It had no discernible effect. That INI file was created by the 7i76e wizard.
Last edit: 11 Jul 2019 20:49 by JetForMe.

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

More
12 Jul 2019 00:41 #139132 by cmorley
please post the error messages

Chris M

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

More
12 Jul 2019 02:13 - 12 Jul 2019 02:14 #139133 by JetForMe
It's in the title of the post: "Pin 'halui.estop.is−activated' does not exist." Sorry, I meant to clarify that in the original post. This error is displayed in the output from invoking `linuxcnc` on the command line, after a bunch of typical output while it processes the config files.
Last edit: 12 Jul 2019 02:14 by JetForMe.

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

More
12 Jul 2019 02:18 #139134 by cmorley
Is that the exact message? was there any messages before it?
It's possible that is not the real error, but an error caused by something before it.

Chris M

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

More
12 Jul 2019 02:44 - 12 Jul 2019 02:44 #139135 by JetForMe
Yeah, that was the exact message. I'm not in front of it right now, but I looked pretty closely, and I didn't see any other output before that that was different from when I comment out that line in the HAL file. I even tried with `-d`. I'll try again as soon as I'm in front of it to be sure, but I don't think so.

The error line included the file and line number of the HAL file with the error.
Last edit: 12 Jul 2019 02:44 by JetForMe.

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

More
12 Jul 2019 03:59 #139137 by JetForMe
I've attached the console output when launching with the two configurations. There's one other difference between them. In the non-error case (when I comment out the is-activated line), I get this additional line in the logs:

normal.txt:
waiting for s.joints<0>, s.kinematics_type<0>

When I uncomment the line, that line is suppressed, the rest show up, as well as the error lines:

error.txt:
postgui.hal:13: Pin 'halui.estop.is−activated' does not exist
Shutting down and cleaning up LinuxCNC...
task: 64 cycles, min=0.000005, max=0.011011, avg=0.007812, 0 latency excursions (> 10x expected cycle time of 0.010000s)
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/rmann/linuxcnc_debug.txt
and
    /home/rmann/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

I've also attached all my config files.

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

More
12 Jul 2019 05:17 #139140 by cmorley
When I looked at your postgui file I see this on line 13 :

net e-stop-active <= halui.estop.is−activated

Chris M
The following user(s) said Thank You: JetForMe

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

More
12 Jul 2019 05:41 #139142 by JetForMe
Ooh interesting. File encoding issue, maybe. Lemme investigate.

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

Time to create page: 0.169 seconds
Powered by Kunena Forum