Error with VistaCNC P4-SE
31 May 2022 15:43 - 31 May 2022 15:47 #244292
by deus
Error with VistaCNC P4-SE was created by deus
Hello,
I tried installing the VistaCNC P4-SE MPG. Generally the installation steps are pretty straight forward. Unfortunately, I end up with an error and I am not yet 'fluent' in HAL to understand what this all means. I attached the error report.
I was hoping somebody could point me in the right direction. Any help would be very much appreciated.
Cheers
PS: I did manage to get rid of the 'Warning: File contains DOS-style line endings.' by saving the file again.
I tried installing the VistaCNC P4-SE MPG. Generally the installation steps are pretty straight forward. Unfortunately, I end up with an error and I am not yet 'fluent' in HAL to understand what this all means. I attached the error report.
I was hoping somebody could point me in the right direction. Any help would be very much appreciated.
Cheers
PS: I did manage to get rid of the 'Warning: File contains DOS-style line endings.' by saving the file again.
Last edit: 31 May 2022 15:47 by deus.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19201
- Thank you received: 6436
31 May 2022 16:23 #244295
by tommylight
Two things:
1. do not use windows to edit Linux files, line 2 contains something of that sort.
2. pin on line 8 is missing from the configuration.
Upload the hal and ini files so we can have a look.
Replied by tommylight on topic Error with VistaCNC P4-SE
./vc-p4s.hal:2: Warning: File contains DOS-style line endings.
./vc-p4s.hal:8: Pin 'halui.axis.0.pos-relative' does not exist
7752
1. do not use windows to edit Linux files, line 2 contains something of that sort.
2. pin on line 8 is missing from the configuration.
Upload the hal and ini files so we can have a look.
Please Log in or Create an account to join the conversation.
31 May 2022 16:33 #244296
by deus
Replied by deus on topic Error with VistaCNC P4-SE
Thank you for your prompt reply.
Here is the hal and ini files.
The code that I am supposed to add to the ini file is commented out.
For completion - I also added the hal files which were supplied from VistaCNC.
Cheers
Here is the hal and ini files.
The code that I am supposed to add to the ini file is commented out.
For completion - I also added the hal files which were supplied from VistaCNC.
Cheers
Please Log in or Create an account to join the conversation.
02 Jun 2022 13:58 #244452
by deus
Replied by deus on topic Error with VistaCNC P4-SE
Just bumping this to see if anybody had similar issues. Maybe somebody setup already the VistaCNC MPG and has some hints? Thanks!
Please Log in or Create an account to join the conversation.
02 Jun 2022 14:17 #244453
by spumco
Replied by spumco on topic Error with VistaCNC P4-SE
I've got one and it's mostly working. I've disabled all of the built-in macros and extra features until I can finish more important things on my rebuild.
Having said that, jogging in step/velocity/continuous works fine.
Once you've fixed the Windows text editor issue Tommy pointed out, the real error is that LCNC can't find pin vc-p4s.axis.0.pos-relative.
This is the first line in the vc-p4s.hal file. Means that pin wasn't created... meaning the Vista install process didn't work properly.
I'm not in front of my machine, but if you read the installation instructions you have to put three files in your home directory and then run 'make'. I don't know linux well, but I think that installs a vista.comp (hal component) or something. That component would create the vc4ps.axis.whatever pin(s) which could then be referenced in the vc4ps.hal and vc4ps-postgui.hal files.
Have a go at installing again and see if that sorts it out.
Make sense?
Having said that, jogging in step/velocity/continuous works fine.
Once you've fixed the Windows text editor issue Tommy pointed out, the real error is that LCNC can't find pin vc-p4s.axis.0.pos-relative.
This is the first line in the vc-p4s.hal file. Means that pin wasn't created... meaning the Vista install process didn't work properly.
I'm not in front of my machine, but if you read the installation instructions you have to put three files in your home directory and then run 'make'. I don't know linux well, but I think that installs a vista.comp (hal component) or something. That component would create the vc4ps.axis.whatever pin(s) which could then be referenced in the vc4ps.hal and vc4ps-postgui.hal files.
Have a go at installing again and see if that sorts it out.
Make sense?
Please Log in or Create an account to join the conversation.
03 Jun 2022 14:36 #244524
by deus
Replied by deus on topic Error with VistaCNC P4-SE
I figured it out - First of all, I used the wrong vc4ps.hal file. VistaCNC provided two files for different versions of LinuxCNC.
Then I needed to re-save the hal files under linux to get rid of the DOS warning.
Finally, I needed to go through the list of the halui signal in my hal file and comment out certain links as they appear to be defined again in the vc4ps.hal file. I needed to comment out the following lines:
The MPG works flawless now - Happy days. Thank you so much for the help.
Then I needed to re-save the hal files under linux to get rid of the DOS warning.
Finally, I needed to go through the list of the halui signal in my hal file and comment out certain links as they appear to be defined again in the vc4ps.hal file. I needed to comment out the following lines:
- jog-x-pos (also for y and z)
- jog-x-neg (also for y and z)
- spindle-manual-stop
- machine-manual-stop
The MPG works flawless now - Happy days. Thank you so much for the help.
Please Log in or Create an account to join the conversation.
05 Jun 2022 00:25 #244591
by JohnnyCNC
Replied by JohnnyCNC on topic Error with VistaCNC P4-SE
If you want a Windows editor that works well for Linux and Windows files try Notepad++. It always saves the file using the same line endings that the file had when you opened it. It can also convert files to/from CR/LF/CRLF. You can also turn on a feature that lets you see the line ending characters and any other non-printable characters that are in the file.
Please Log in or Create an account to join the conversation.
25 May 2023 01:37 - 25 May 2023 01:39 #272128
by Wayner
Replied by Wayner on topic Error with VistaCNC P4-SE
what is the correct line ending character for linuxcnc?
Last edit: 25 May 2023 01:39 by Wayner. Reason: typo
Please Log in or Create an account to join the conversation.
25 May 2023 23:03 #272175
by JohnnyCNC
Replied by JohnnyCNC on topic Error with VistaCNC P4-SE
I don't know the official answer but mine are LF. Files created in Linux are usually LF.
Please Log in or Create an account to join the conversation.
Time to create page: 0.202 seconds