- LinuxCNC
- General LinuxCNC Questions
- Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
- Lindley
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
11 Mar 2025 18:01 #323695
by Lindley
Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC was created by Lindley
Where do I add the suggested script fix in my configuration? The converted file from my XZC coordinate system does not work.
Report is attached. Can provide HAL and INI if needed.
Thanks
Report is attached. Can provide HAL and INI if needed.
Thanks
Please Log in or Create an account to join the conversation.
- Aciera
-
- Away
- Administrator
-
Less
More
- Posts: 4427
- Thank you received: 1974
11 Mar 2025 18:11 #323696
by Aciera
Replied by Aciera on topic Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
The recommendation is not related to your problem, which is here:
So please attach your hal and ini files.
HAL: ERROR: function 'pid.s.do-pid-calcs' not found
./Editlindowxzc3-11-25rev2.hal:21: addf failed
So please attach your hal and ini files.
Please Log in or Create an account to join the conversation.
- Lindley
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
11 Mar 2025 18:36 #323697
by Lindley
Replied by Lindley on topic Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
Per request. Thanks for quick response.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Away
- Administrator
-
Less
More
- Posts: 4427
- Thank you received: 1974
11 Mar 2025 19:38 #323700
by Aciera
Replied by Aciera on topic Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
in your hal:
change this line
to:
change this line
loadrt pid names=pid.x,pid.z,pid.c
to:
loadrt pid names=pid.x,pid.z,pid.c,pid.s
The following user(s) said Thank You: Lindley
Please Log in or Create an account to join the conversation.
- Lindley
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
11 Mar 2025 22:43 #323710
by Lindley
Replied by Lindley on topic Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
Made suggested change...another issue. The provided line was in the file from the conversion script and I totally missed it as I was preparing INI and HAL files base in Imperial values rather than metric. However, another issue arose: program could not find variable INPUT_SCALE. I believe this is the updated name for the old (2.7.14) STEP_SCALE. I changed the INI to reflect this and tried again. Still an issue.
Notably as I have been working on this configuration conversion. I have encountered several apparent variable name changes between 2.7.14 and 2.9.4, Unfortunately I did not create a list which at this point would have been helpful.
In any event here is the set of documents for my latest attempt:
Notably as I have been working on this configuration conversion. I have encountered several apparent variable name changes between 2.7.14 and 2.9.4, Unfortunately I did not create a list which at this point would have been helpful.
In any event here is the set of documents for my latest attempt:
Please Log in or Create an account to join the conversation.
- Lindley
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
12 Mar 2025 00:04 #323717
by Lindley
Replied by Lindley on topic Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
FYI: Based on memory and a quick look, it appears the default and maximum velocity and acceleration variables (4 total) have an added "LINEAR" in the name for 2.9.4. This is from comparison of the TRAJ section for 2.9.4 and TRAJ and AXIS in 2.7.14 documentation. The 2.9.4 document does mention some additional variables that carry over from the conversions involving scale aspects.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Away
- Administrator
-
Less
More
- Posts: 4427
- Thank you received: 1974
12 Mar 2025 07:24 #323730
by Aciera
Replied by Aciera on topic Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
That error report still refers to the 'pid.s.do-pid-calcs' not being found. Maybe you attached the wrong file?
Please Log in or Create an account to join the conversation.
- Lindley
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
12 Mar 2025 19:13 #323771
by Lindley
Replied by Lindley on topic Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
Very possible...wrong file attached.
In the meantime, found several apparent errors in the HAL when comparing to the original version conversion. Further, I had to reset the BIOS to defaults for Debian 12 to install and had not reset the serial port address. This should be consistent set of INI, HAL, and error report files.
In the meantime, found several apparent errors in the HAL when comparing to the original version conversion. Further, I had to reset the BIOS to defaults for Debian 12 to install and had not reset the serial port address. This should be consistent set of INI, HAL, and error report files.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Away
- Administrator
-
Less
More
- Posts: 4427
- Thank you received: 1974
13 Mar 2025 06:54 #323803
by Aciera
1. Your ini is missing the spindle section while your hal references 'SPINDLE_9' ini entries. Looking at your hal file makes me think that you are not actually using a spindle setup. If that is the case then you might want to completely remove this section from your hal:
Replied by Aciera on topic Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
./Lxzc3-12-25rev4.hal:201: Ini variable '[SPINDLE_9]P' not found.
1. Your ini is missing the spindle section while your hal references 'SPINDLE_9' ini entries. Looking at your hal file makes me think that you are not actually using a spindle setup. If that is the case then you might want to completely remove this section from your hal:
#*******************
# SPINDLE S
#*******************
setp pid.s.Pgain [SPINDLE_9]P
setp pid.s.Igain [SPINDLE_9]I
setp pid.s.Dgain [SPINDLE_9]D
setp pid.s.bias [SPINDLE_9]BIAS
setp pid.s.FF0 [SPINDLE_9]FF0
setp pid.s.FF1 [SPINDLE_9]FF1
setp pid.s.FF2 [SPINDLE_9]FF2
setp pid.s.deadband [SPINDLE_9]DEADBAND
setp pid.s.maxoutput [SPINDLE_9]MAX_OUTPUT
setp pid.s.error-previous-target true
net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
net spindle-output <= pid.s.output
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-enable <= spindle.0.on
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse
net spindle-brake <= spindle.0.brake
net spindle-revs => spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-index-enable <=> spindle.0.index-enable
# ---Setup spindle at speed signals---
sets spindle-at-speed true
Please Log in or Create an account to join the conversation.
- Lindley
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
13 Mar 2025 16:51 #323850
by Lindley
Replied by Lindley on topic Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
Correct..do not use spindle control. Eliminated those sections and references. CNC now starts until encountering the axis.ngc file for the splash display which is XYZ coordinates instead of XZC. So, struggling trying to replace the file with my old splash file which was in XZC coordinates. The file is in a read only root directory (usr/share/images/axis.ngc I believe) and I have not yet figured out how to paste in the new file.
In any event, considerable progress and light at the end of the tunnel.
Thanks so much for the assistance and accommodating my limited competence in LINUX.
In any event, considerable progress and light at the end of the tunnel.
Thanks so much for the assistance and accommodating my limited competence in LINUX.
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC
Time to create page: 0.094 seconds