Error with VistaCNC P4-SE

More
4 years 4 months ago #244292 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.

Please Log in to join the conversation.

More
4 years 4 months ago #244295 by tommylight
Code:
./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
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.

Please Log in to join the conversation.

More
4 years 4 months ago #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

Please Log in to join the conversation.

More
4 years 4 months ago #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 to join the conversation.

More
4 years 4 months ago #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?

Please Log in to join the conversation.

More
4 years 4 months ago #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:
  • 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 to join the conversation.

More
4 years 4 months ago #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 to join the conversation.

More
3 years 5 months ago #272128 by Wayner
Replied by Wayner on topic Error with VistaCNC P4-SE
what is the correct line ending character for linuxcnc?

Please Log in to join the conversation.

More
3 years 5 months ago #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 to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum