Incorporating HAL script recommendation (2.7.14 to 2.9.4 conversion of XZC

More
1 year 7 months ago #323730 by Aciera
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.

More
1 year 7 months ago #323771 by Lindley
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.

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

More
1 year 7 months ago #323803 by Aciera
Code:
./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:
Code:
#******************* # 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.

More
1 year 7 months ago #323850 by Lindley
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. 

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

More
1 year 7 months ago #323858 by Aciera
You can set the file to be loaded on startup by adding this to the [DISPLAY] section of your ini file:
Code:
OPEN_FILE = /full/path/to/file.ngc
If you want no file loaded you can try
Code:
OPEN_FILE =""
The following user(s) said Thank You: Lindley

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

More
1 year 7 months ago #323944 by Lindley
Success! Known files run as anticipated.  Did require tweaking several INI parameters and I am sure more refinements will happen as I develop experience with this version. 

I am using to drive a rose engine lathe and thus the reason for the XZC coordinate system.

Thanks again for your patience and assistance.

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

Time to create page: 0.170 seconds
Powered by Kunena Forum