iMachI3 P2-S Pendant Install Fail

More
19 Oct 2023 01:24 #283263 by gromitnyc
iMachI3 P2-S Pendant Install Fail was created by gromitnyc
I'm trying to get a iMach3 P2-S pendant to work with my LinuxCNC install. It is a fresh install of LinuxCNC (Debian) and I believe I followed the instructions from VirtualCNC. I'm just starting to learn a bit about HAL, but I'm not even sure the problem is in the HAL file.

When I start LinuxCNC it terminates with an error. The error seems to be from the first "net" command.

Here is the beginning of the HAL file:
# 0---vc-p2s Control Pendant
loadusr -W vc-p2s

loadrt and2 names=and2.vc
addf and2.vc servo-thread

# 1---LCD reletive Coordinates
net axis.0.pos-relative halui.axis.0.pos-relative => vc-p2s.axis.0.pos-relative
net axis.1.pos-relative halui.axis.1.pos-relative => vc-p2s.axis.1.pos-relative
.
.
.

Here is the Debug file information:

Note: Using POSIX realtime
./vc-p2s.hal:8: Pin 'halui.axis.0.pos-relative' does not exist
2765
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

I've attached the error, log, HAL, and ini files.

Thanks in advance for any help.


File Attachment:

File Name: vc-p2s.hal
File Size:5 KB

File Attachment:

File Name: my-mill.ini
File Size:3 KB

File Attachment:

File Name: linuxcnc_info.txt
File Size:4 KB

File Attachment:

File Name: linuxcnc.report.txt
File Size:5 KB

File Attachment:

File Name: linuxcnc.d...Dtyv.txt
File Size:0 KB
Attachments:

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
19 Oct 2023 07:17 #283278 by Aciera
Replied by Aciera on topic iMachI3 P2-S Pendant Install Fail

I followed the instructions from VirtualCNC

I'm not familiar with the device but it seems that the instructions are out of date.

' halui.axis.0.pos-relative' is now 'halui.axis.x.pos-relative'
' halui.axis.1.pos-relative' is now 'halui.axis.y.pos-relative'

There are likely other pin names that need updating so have a look here:
linuxcnc.org/docs/html/man/man1/halui.1.html
The following user(s) said Thank You: rdtsc, gromitnyc

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

More
20 Oct 2023 01:41 #283336 by gromitnyc
Replied by gromitnyc on topic iMachI3 P2-S Pendant Install Fail
Thanks for the quick response. You were absolutely correct about their HAL file being out of date. I went through it and updated what I could figure out and commented out things I couldn't. I've got linuxcnc running again and it seems to be communicating with the device.

The lines I commented out need to be updated too, but for these changes I'm having to do some research. I've included the lines below. If any of the changes are obvious to you, please let me know.


#net jog.0.cont-plus  vc-p2s.jog.0.plus  => halui.jog.0.plus
#net jog.0.cont-minus vc-p2s.jog.0.minus => halui.jog.0.minus
#net jog.1.cont-plus  vc-p2s.jog.1.plus  => halui.jog.1.plus
#net jog.1.cont-minus vc-p2s.jog.1.minus => halui.jog.1.minus
#net jog.2.cont-plus  vc-p2s.jog.2.plus  => halui.jog.2.plus
#net jog.2.cont-minus vc-p2s.jog.2.minus => halui.jog.2.minus

 

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

More
20 Oct 2023 02:54 #283337 by JohnnyCNC
Replied by JohnnyCNC on topic iMachI3 P2-S Pendant Install Fail
Below is a portion of an email that I sent to Vista back in 2020 that list the changes I had to make to for my P4S pendant.  The p2s file probably needs similar changes.  I hope this is of some help.

While I was waiting for my pendant to come back I was upgrading from LinuxCNC 2.7.15 to 2.8.0~Pre1. I found some things that need changed in the vc-p4s.hal that I just downloaded from your site.

These were the changes I needed to make that were not unique to my configuration.

line 10 change halui.axis.x.pos-relative to halui.axis.z.pos-relative.

section #9-Spindle
line 80 change halui.spindle.override.scale to halui.spindle.0.override.scale
line 81 change halui.spindle.override.count-enable to halui.spindle.0.override.count-enable
line 82 change halui.spindle.override.counts to halui.spindle.0.override.counts
line 83 change halui.spindle.override.value to halui.spindle.0.override.value

108 Change halui.spindle.start to halui.spindle.0.start
109 Change halui.spindle.stop to halui.spindle.0.stop
The following user(s) said Thank You: rdtsc, gromitnyc

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
20 Oct 2023 06:44 #283339 by Aciera
Replied by Aciera on topic iMachI3 P2-S Pendant Install Fail

#net jog.0.cont-plus  vc-p2s.jog.0.plus  => halui.jog.0.plus
#net jog.0.cont-minus vc-p2s.jog.0.minus => halui.jog.0.minus
#net jog.1.cont-plus  vc-p2s.jog.1.plus  => halui.jog.1.plus
#net jog.1.cont-minus vc-p2s.jog.1.minus => halui.jog.1.minus
#net jog.2.cont-plus  vc-p2s.jog.2.plus  => halui.jog.2.plus
#net jog.2.cont-minus vc-p2s.jog.2.minus => halui.jog.2.minus

'halui.jog.0.plus' would be 'halui.axis.x.plus'
'halui.jog.0.minus' would be 'halui.axis.x.minus'

for the other lines replace 'jog.1' with 'axis.y' and 'jog.2' with 'axis.z'
The following user(s) said Thank You: rdtsc, gromitnyc

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

More
20 Oct 2023 19:30 #283382 by gromitnyc
Replied by gromitnyc on topic iMachI3 P2-S Pendant Install Fail
Thank you all!

I've eliminated all errors and the pendant seems to be functioning correctly. Now, on to my other problems. :-)

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

More
28 Jul 2024 19:57 - 28 Jul 2024 20:07 #306274 by rdtsc
Replied by rdtsc on topic iMachI3 P2-S Pendant Install Fail
This list is once again incomplete and will likely change again in the future. Instead of posting more changes, check your errors against the following link for the correct names:

linuxcnc.org/docs/html/man/man1/halui.1.html#PINS
Last edit: 28 Jul 2024 20:07 by rdtsc.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum