Facing Error after updating Linuxcnc to 2.9 from 2.7

More
28 Feb 2024 17:08 #294703 by yrsiddhapura
I tried to update Linuxcnc 2.7 wheezy preempt-rt to LinuxCNC 2.9 bookworm preempt-rt and copy old config files to new and try to start but facing error.
Attachments:

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

More
28 Feb 2024 17:11 #294704 by yrsiddhapura
Due to limitated file upload here i am attaching mine HAL and INI files.

File Attachment:

File Name: 7I76e_io_2...2-28.ini
File Size:4 KB

File Attachment:

File Name: custom_2024-02-28.hal
File Size:2 KB

File Attachment:

File Name: postgui_call_list.hal
File Size:0 KB

File Attachment:

File Name: oprator_20...2-28.hal
File Size:8 KB

File Attachment:

File Name: 7I76e_io_2...2-28.hal
File Size:13 KB
Attachments:

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

More
28 Feb 2024 17:29 #294707 by Mecanix
Everywhere you see axis.0. will need updating e.g. to axis.x.

Your INI file also need updating. For each axis you need:
[AXIS_X] and [JOINT_0]
[AXIS_Y] and [JOINT_1]
[AXIS_Z] and [JOINT_2]

All in all, you've prolly just discovered that you need a whole new set of config that rhyme with 2.9.
The following user(s) said Thank You: yrsiddhapura

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

More
28 Feb 2024 17:34 - 28 Feb 2024 17:47 #294708 by PCW
The reported error is a syntax error in line 21 of custom,hal:

setp axis.0.jog-vel-mode 0

Which looks OK (at least in the supplied file)

 Edit: as Mechanix suggested, this needs to have the axis letter
rather than number.

This should have been done by the conversion
script that automatically converts 2.7 configurations to 2.8+


It would be _much_  easier to identify the error by running LinuxCNC
from the command line and posting the printed text here.
Last edit: 28 Feb 2024 17:47 by PCW.
The following user(s) said Thank You: yrsiddhapura

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

More
28 Feb 2024 18:55 #294712 by yrsiddhapura
Thank you so much guys will try to change axis number to letter and also try conversion script 

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

More
28 Feb 2024 19:55 #294720 by Wieser
A side question from an unexperienced user.
How do I get Linuxcnc to show such an error message when failing at startup? Is it a HAL or INI command?

My current workflow is to change only a single thing in HAL, and then restart linuxcnc. 
If I change or add multiple lines I never know what the cause problem is when linuxcnc won't start afterwards.

 

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

More
28 Feb 2024 20:07 #294721 by PCW
Easiest way is to launch LinuxCNC from the command line:

linuxcnc
 
The following user(s) said Thank You: yrsiddhapura, Wieser

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

More
01 Mar 2024 06:29 #294821 by yrsiddhapura
@mechanix and @pcw thank you so much guys machine is working now

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

Time to create page: 0.331 seconds
Powered by Kunena Forum