Hal confusion

More
19 Aug 2019 17:16 #142502 by jensor
Hal confusion was created by jensor
Booting into Axis, Failure Is:
LINUXCNC - 2.7.11
Machine configuration directory is '/home/jack/linuxcnc/configs/bridgeport'
Machine configuration file is '1BP.ini'
Starting LinuxCNC...
(time=1566230313.311088,pid=7391): Registering server on TCP port 5005.
(time=1566230313.311205,pid=7391): running server for TCP port 5005 (connection_socket = 3).
.
iocontrol: machine: 'LINUXCNC-1BP' version '2.7.8'
Found file(REL): ./1BPstepper.hal
Found file(REL): ./2X-BoxPinOutTest.hal
./2X-BoxPinOutTest.hal:125: Pin 'parport.2.pin-03-out' was already linked to signal 'estopactivated'
Shutting down and cleaning up LinuxCNC...

Line 66 in 2X-BoxPinOutTest.hal is apparently causing a problem.
I cannot find where the name "estopactivated" is mentioned in any file being used, 1BP.ini, 1BPstepper.hal, or 2X-BoxPinOutTest.hal Files are attached.
What can be causing this error? (By the way - It used to work ok, but apparently something has gotten contaminated.)
Is there a better way to connect the hal pin "halui.estop.is-activated" to a parallel port pin?
jensor

File Attachment:

File Name: 1BP_2019-08-19.ini
File Size:8 KB

File Attachment:

File Name: 1BPstepper...8-19.hal
File Size:2 KB

File Attachment:

File Name: 2X-BoxPinOutTest.hal
File Size:4 KB
Attachments:

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

More
19 Aug 2019 17:40 #142504 by pl7i92
Replied by pl7i92 on topic Hal confusion
the halui pin you use needs to be in a postgui file
you can use the motion pin
iocontrol.0.user-enable-out

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

More
19 Aug 2019 17:46 #142505 by PCW
Replied by PCW on topic Hal confusion
You have a conflict in2X-BoxPinOutTest.hal:

net estopactivated halui.estop.is-activated parport.2.pin-03-out
...

net allhomed logic.0.and parport.2.pin-03-out

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

More
19 Aug 2019 17:51 #142509 by Todd Zuercher
Replied by Todd Zuercher on topic Hal confusion
In line 66 of the file 2X-BoxPinOutTest.hal is the line
net estopactivated halui.estop.is-activated parport.2.pin-03-out
then again in in line 126 you tried to connect the same parallel port pin
net allhomed logic.0.and parport.2.pin-03-out

Any pin name can only be used once in all of your active hal files.

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

More
19 Aug 2019 18:07 #142512 by jensor
Replied by jensor on topic Hal confusion
Replacing:
net estopactivated halui.estop.is-activated parport.2.pin-03-out
With:
net estopactivated iocontrol.0.user-enable-out parport.2.pin-03-out
Leads to error:
LINUXCNC - 2.7.11
Machine configuration directory is '/home/jack/linuxcnc/configs/bridgeport'
Machine configuration file is '1BP.ini'
Starting LinuxCNC...
(time=1566237632.285896,pid=10078): Registering server on TCP port 5005.
(time=1566237632.286038,pid=10078): running server for TCP port 5005 (connection_socket = 3).
.
iocontrol: machine: 'LINUXCNC-1BP' version '2.7.8'
Found file(REL): ./1BPstepper.hal
Found file(REL): ./2X-BoxPinOutTest.hal
./2X-BoxPinOutTest.hal:66: Pin 'iocontrol.0.user-enable-out' was already linked to signal 'enable'
Shutting down and cleaning up LinuxCNC...

So this command isn't available before the postgui file

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

More
19 Aug 2019 18:36 #142514 by Todd Zuercher
Replied by Todd Zuercher on topic Hal confusion
Postgui has nothing to do with it. It is the fact that you already used that pin name earlier on line 49.

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

More
19 Aug 2019 22:35 #142524 by tommylight
Replied by tommylight on topic Hal confusion

then again in in line 126 you tried to connect the same parallel port pin
net allhomed logic.0.and parport.2.pin-03-out
.

You can omit that line or change the pin out number.

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

More
20 Aug 2019 01:17 - 20 Aug 2019 01:18 #142531 by jensor
Replied by jensor on topic Hal confusion
You're right on line 126. My mistake, however still a problem.

Todd -
48 # create a signal for the estop loopback
49 net enable iocontrol.0.user-enable-out iocontrol.0.emc-enable-in
no reference to parport.2.pin-03-out there.
Doing a search in the file shows only one instance of parport.2.pin-03-out since I deleted it on line 126.

Still get same original error:
iocontrol: machine: 'LINUXCNC-1BP' version '2.7.8'
Found file(REL): ./1BPstepper.hal
Found file(REL): ./2X-BoxPinOutTest.hal
./2X-BoxPinOutTest.hal:66: Pin 'iocontrol.0.user-enable-out' was already linked to signal 'enable'
Shutting down and cleaning up LinuxCNC...

So still the question how can it already be linked?
Last edit: 20 Aug 2019 01:18 by jensor. Reason: add text.

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

More
20 Aug 2019 01:33 #142533 by PCW
Replied by PCW on topic Hal confusion
Search for multiple occurrences of: iocontrol.0.user-enable-out

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

More
20 Aug 2019 02:04 - 20 Aug 2019 02:16 #142536 by jensor
Replied by jensor on topic Hal confusion
No other occurrences of "iocontrol.0.user-enable-out".

jensor
Last edit: 20 Aug 2019 02:16 by jensor.

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

Time to create page: 0.100 seconds
Powered by Kunena Forum