A-Axis improper movements
- TglEMC
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
- Thank you received: 4
11 Oct 2022 20:59 #253983
by TglEMC
A-Axis improper movements was created by TglEMC
I am experiencing A-axis improper movements during a long run with version LinuxCNC 2.7.15. My system is Debian 9 stretch. A-axis scale is set correctly and well tested.
In my testing I can see that it does have something to do with the long run. The long run takes 3.93 hours to complete. If I increase the feed speed for a faster test run, it runs complete and accurate. What is most curious is that when it fails, it overruns the expected feed. What I mean is that each movement is supposed to be 7.5°, but when it fails, it runs about 12° instead.
I have attached my Gcode file, hal, and ini files.
Does anyone have any ideas on this problem?
Thank you in advance
In my testing I can see that it does have something to do with the long run. The long run takes 3.93 hours to complete. If I increase the feed speed for a faster test run, it runs complete and accurate. What is most curious is that when it fails, it overruns the expected feed. What I mean is that each movement is supposed to be 7.5°, but when it fails, it runs about 12° instead.
I have attached my Gcode file, hal, and ini files.
Does anyone have any ideas on this problem?
Thank you in advance
Please Log in or Create an account to join the conversation.
- TglEMC
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
- Thank you received: 4
12 Oct 2022 01:14 #253993
by TglEMC
Replied by TglEMC on topic A-Axis improper movements
I forgot to mention, the LinuxCNC software shows the correct axis positioning for all the axis's while the physical A-axis(Rotary table) is well out of position. This indicates to me that the software feed to the para port is in error.
Please Log in or Create an account to join the conversation.
- TglEMC
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
- Thank you received: 4
19 Oct 2022 22:46 #254571
by TglEMC
Replied by TglEMC on topic A-Axis improper movements
I have successfully installed Debian 10 Buster. Further testing reveals that LinuxCNC version 2.8.4-1-gb7824717b as the same problem.
Extensive testing shows that the a-axis runs better when codes G64 p0.0001 and G61 are not used. At the g1 a-180 movement, it ran to exactly +5 degrees over setting to table at 185 while the LinuxCNC display showed it being at -180.
Extensive testing shows that the a-axis runs better when codes G64 p0.0001 and G61 are not used. At the g1 a-180 movement, it ran to exactly +5 degrees over setting to table at 185 while the LinuxCNC display showed it being at -180.
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
Less
More
- Posts: 19468
- Thank you received: 6529
20 Oct 2022 00:11 #254574
by tommylight
Replied by tommylight on topic A-Axis improper movements
Scaling is off, check the scale for the A axis/joint in the .ini file.At the g1 a-180 movement, it ran to exactly +5 degrees over setting to table at 185 while the LinuxCNC display showed it being at -180.
Please Log in or Create an account to join the conversation.
- TglEMC
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
- Thank you received: 4
20 Oct 2022 00:47 #254578
by TglEMC
Replied by TglEMC on topic A-Axis improper movements
Scaling has been set and tested multiple times. It ran perfectly for the first 27 increments, and suddenly it jumped +5° of it where it should have been. I should add, even though the table was at 185°, and Linux showed 180° on the display, when I ran g1 a0 f1000 it ran back to 0° perfectly and the Linux display showed it at 0°. Very strange!
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
Less
More
- Posts: 19468
- Thank you received: 6529
20 Oct 2022 00:51 #254579
by tommylight
Replied by tommylight on topic A-Axis improper movements
Yeah, again, scaling.
Just in case, you should also raise the values of step space and length and also dir hold and dir setup.
Just in case, you should also raise the values of step space and length and also dir hold and dir setup.
Please Log in or Create an account to join the conversation.
- TglEMC
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
- Thank you received: 4
20 Oct 2022 01:08 #254580
by TglEMC
Replied by TglEMC on topic A-Axis improper movements
I see those settings in hal. I will have to read up and see what they do. This is how they look now:
setp stepgen.3.position-scale [JOINT_3]SCALE
setp stepgen.3.steplen 1
setp stepgen.3.stepspace 1
setp stepgen.3.dirhold 145000
setp stepgen.3.dirsetup 145000
setp stepgen.3.maxaccel [JOINT_3]STEPGEN_MAXACCEL
net apos-cmd joint.3.motor-pos-cmd => stepgen.3.position-cmd
net apos-fb stepgen.3.position-fb => joint.3.motor-pos-fb
net astep <= stepgen.3.step
net adir <= stepgen.3.dir
net aenable joint.3.amp-enable-out => stepgen.3.enable
setp stepgen.3.position-scale [JOINT_3]SCALE
setp stepgen.3.steplen 1
setp stepgen.3.stepspace 1
setp stepgen.3.dirhold 145000
setp stepgen.3.dirsetup 145000
setp stepgen.3.maxaccel [JOINT_3]STEPGEN_MAXACCEL
net apos-cmd joint.3.motor-pos-cmd => stepgen.3.position-cmd
net apos-fb stepgen.3.position-fb => joint.3.motor-pos-fb
net astep <= stepgen.3.step
net adir <= stepgen.3.dir
net aenable joint.3.amp-enable-out => stepgen.3.enable
Please Log in or Create an account to join the conversation.
- PCW
- Online
- Moderator
Less
More
- Posts: 17950
- Thank you received: 4816
20 Oct 2022 02:10 - 20 Oct 2022 02:13 #254583
by PCW
Replied by PCW on topic A-Axis improper movements
You have steplen and stepspace specified as "1" but I'm not sure if this makes sense
unless "reset" mode is being used.
(and reset mode is not being used, though it might be a good idea
to use reset mode with your low base thread rate)
unless "reset" mode is being used.
(and reset mode is not being used, though it might be a good idea
to use reset mode with your low base thread rate)
Last edit: 20 Oct 2022 02:13 by PCW.
The following user(s) said Thank You: TglEMC
Please Log in or Create an account to join the conversation.
- TglEMC
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
- Thank you received: 4
02 Nov 2022 22:17 #255805
by TglEMC
Replied by TglEMC on topic A-Axis improper movements
The hal and ini files that I loaded were the original stepconf with presets settings. stepspace = 0 is for reset mode. I did try that with reset mode, but no joy.
After many days reading and testing various settings, I finally got something very close. I made one disturbing discovery through that process. My rotary table that I have been using for over 12 years has a scale error. The etched scale at 140° jumps to 150° on the next mark, but is only 5° movement. This throws the rest of the scale off by 5°.
It still overruns one total revolution by 1°, but it is appears that is equally spaced over of complete 360° rotation. I was able to get working parts made with this setting.
I want to thank you all for your help. I now know way more than I thought I would ever need to know about hal.
After many days reading and testing various settings, I finally got something very close. I made one disturbing discovery through that process. My rotary table that I have been using for over 12 years has a scale error. The etched scale at 140° jumps to 150° on the next mark, but is only 5° movement. This throws the rest of the scale off by 5°.
It still overruns one total revolution by 1°, but it is appears that is equally spaced over of complete 360° rotation. I was able to get working parts made with this setting.
I want to thank you all for your help. I now know way more than I thought I would ever need to know about hal.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.223 seconds