Warning: File contains DOS-style line endings.
25 May 2023 14:54 #272152
by Wayner
Warning: File contains DOS-style line endings. was created by Wayner
I am a newbee to LInux CNC. I need some help getting past the "Warning: File contains DOS-style line endings."
I am trying to configure LInuxcnc to work with a VistaCNC P4 S pendant. I keep getting the error "Warning: File contains DOS-style line endings."
I have saved the file vc-ps4.hal in linux but the error still comes up. I have looked at the file in Notepad++ and it has CRLF after each line.
Is there a specific file format I need to save the file in?
Thanks in advance for any help.
Wayne
I am trying to configure LInuxcnc to work with a VistaCNC P4 S pendant. I keep getting the error "Warning: File contains DOS-style line endings."
I have saved the file vc-ps4.hal in linux but the error still comes up. I have looked at the file in Notepad++ and it has CRLF after each line.
Is there a specific file format I need to save the file in?
Thanks in advance for any help.
Wayne
Please Log in or Create an account to join the conversation.
25 May 2023 17:45 #272159
by JPL
Replied by JPL on topic Warning: File contains DOS-style line endings.
Dos/windows style is CR + LF
Linux (Unix) style is LF only.
That can be quickly changed when using notepad++ or programmer's notepad.
Linux (Unix) style is LF only.
That can be quickly changed when using notepad++ or programmer's notepad.
Please Log in or Create an account to join the conversation.
25 May 2023 20:21 #272168
by rodw
Replied by rodw on topic Warning: File contains DOS-style line endings.
There is a command line program called dos2unix which will clean it up
You will need to install it with: sudo apt install dos2unix
If you must open a file on Windows, use notepad++ and ensure the line endings are set for linefeed only in the settings.
You will need to install it with: sudo apt install dos2unix
If you must open a file on Windows, use notepad++ and ensure the line endings are set for linefeed only in the settings.
Please Log in or Create an account to join the conversation.
25 May 2023 20:45 #272170
by Wayner
Replied by Wayner on topic Warning: File contains DOS-style line endings.
Thanks I was able to make the change with Notepad++.
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2388
- Thank you received: 779
25 May 2023 21:40 #272173
by snowgoer540
Replied by snowgoer540 on topic Warning: File contains DOS-style line endings.
You can use geany in Linux to change it as well.
Note that if you email the file to yourself, sometimes Google chrome sees fit to change the line endings (assuming during its virus scan). At least it used to.
Note that if you email the file to yourself, sometimes Google chrome sees fit to change the line endings (assuming during its virus scan). At least it used to.
Please Log in or Create an account to join the conversation.
27 May 2023 01:09 - 27 May 2023 01:11 #272240
by Wayner
Replied by Wayner on topic Warning: File contains DOS-style line endings.
I got P4-s working with my PC's running linuxcnc 2.6.11- unbutu12.04.
I cant seem to get it to work with my LinuxCNC 2.84-buster.
Im getting Debug error "vc-postgui.hal:6: Pin 'ini.4.max_velocity' does not exist"
Note: Using POSIX realtime
note: MAXV max: 25.000 units/sec 1500.000 units/min
note: LJOG max: 25.000 units/sec 1500.000 units/min
note: LJOG default: 0.200 units/sec 12.000 units/min
note: AJOG max: 25.000 units/sec 1500.000 units/min
note: AJOG default: 25.000 units/sec 1500.000 units/min
note: jog_order='XYZA'
note: jog_invert=set()
vc-postgui.hal:6: Pin 'ini.4.max_velocity' does not exist
2183
2218
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
I cant seem to get it to work with my LinuxCNC 2.84-buster.
Im getting Debug error "vc-postgui.hal:6: Pin 'ini.4.max_velocity' does not exist"
Note: Using POSIX realtime
note: MAXV max: 25.000 units/sec 1500.000 units/min
note: LJOG max: 25.000 units/sec 1500.000 units/min
note: LJOG default: 0.200 units/sec 12.000 units/min
note: AJOG max: 25.000 units/sec 1500.000 units/min
note: AJOG default: 25.000 units/sec 1500.000 units/min
note: jog_order='XYZA'
note: jog_invert=set()
vc-postgui.hal:6: Pin 'ini.4.max_velocity' does not exist
2183
2218
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Last edit: 27 May 2023 01:11 by Wayner. Reason: typo's
Please Log in or Create an account to join the conversation.
27 May 2023 03:12 #272241
by JohnnyCNC
Replied by JohnnyCNC on topic Warning: File contains DOS-style line endings.
Mine is working under 2.8.4. This is the contents of my vc-postgui.hal
net axis_0_max_vel vc-p4s.ini.0.max.vel => ini.0.max_velocity
net axis_1_max_vel vc-p4s.ini.1.max.vel => ini.1.max_velocity
net axis_2_max_vel vc-p4s.ini.2.max.vel => ini.2.max_velocity
net axis_3_max_vel vc-p4s.ini.3.max.vel => ini.3.max_velocity
net axis_4_max_vel vc-p4s.ini.4.max.vel => ini.4.max_velocity
net axis_5_max_vel vc-p4s.ini.5.max.vel => ini.5.max_velocity
net spindle-speed hm2_5i25.0.encoder.00.count
In my vc-p4s.hal I only have 3 axis setup
setp axis_0_max_velocity [JOINT_0]MAX_VELOCITY
setp axis_1_max_velocity [JOINT_1]MAX_VELOCITY
setp axis_2_max_velocity [JOINT_2]MAX_VELOCITY
I don't know if any of this will help. Maybe you could comment it out if you don't have that many axis.
John
net axis_0_max_vel vc-p4s.ini.0.max.vel => ini.0.max_velocity
net axis_1_max_vel vc-p4s.ini.1.max.vel => ini.1.max_velocity
net axis_2_max_vel vc-p4s.ini.2.max.vel => ini.2.max_velocity
net axis_3_max_vel vc-p4s.ini.3.max.vel => ini.3.max_velocity
net axis_4_max_vel vc-p4s.ini.4.max.vel => ini.4.max_velocity
net axis_5_max_vel vc-p4s.ini.5.max.vel => ini.5.max_velocity
net spindle-speed hm2_5i25.0.encoder.00.count
In my vc-p4s.hal I only have 3 axis setup
setp axis_0_max_velocity [JOINT_0]MAX_VELOCITY
setp axis_1_max_velocity [JOINT_1]MAX_VELOCITY
setp axis_2_max_velocity [JOINT_2]MAX_VELOCITY
I don't know if any of this will help. Maybe you could comment it out if you don't have that many axis.
John
Please Log in or Create an account to join the conversation.
27 May 2023 11:31 #272260
by Wayner
Replied by Wayner on topic Warning: File contains DOS-style line endings.
Our files are the same except for line "net spindle-speed hm2_5i25.0.encoder.00.count"
I commented out axis 4 and 5, the app loads. The pendant is now working.
I had previoulsy commented out line 5.
Thanks for your help,
Wayne
I commented out axis 4 and 5, the app loads. The pendant is now working.
I had previoulsy commented out line 5.
Thanks for your help,
Wayne
Please Log in or Create an account to join the conversation.
27 May 2023 22:03 #272292
by JohnnyCNC
Replied by JohnnyCNC on topic Warning: File contains DOS-style line endings.
I'm using a 1.8kw servo motor as a spindle and it has an encoder so that is what the extra line in mine is for.
I wonder why I don't get the error you were getting? I only have a mill with XYZ. Oh well, I guess if it works don't break it.
I wonder why I don't get the error you were getting? I only have a mill with XYZ. Oh well, I guess if it works don't break it.
Please Log in or Create an account to join the conversation.
28 May 2023 16:06 #272346
by Wayner
Replied by Wayner on topic Warning: File contains DOS-style line endings.
Im using Axsis 4 axsis GUI. That may be why I had to comment out the 5th and 6th axsis.
So far I can't get Gmoccapy gui to work.
Thanks again for your insight and help. This is my first attempt at installing Linuxcnc. My previous version was pre installed by Sherline.
Wayne
So far I can't get Gmoccapy gui to work.
Thanks again for your insight and help. This is my first attempt at installing Linuxcnc. My previous version was pre installed by Sherline.
Wayne
Please Log in or Create an account to join the conversation.
Time to create page: 0.086 seconds