systematic drift on arcs
- Meichinger
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 1
04 Feb 2025 20:23 #320653
by Meichinger
systematic drift on arcs was created by Meichinger
Hi Linux CNC forum,
I'm building on a small CNC for over two years now. Unfortunately, I've been running in some issues while milling circular pockets.
machine specs:
Traj XYZA
y-axis 1190 mm max travel, 20 mm ballscrew with 10 mm pitch, two 750W AC servo (HLTNC)
x-axis 900 mm max travel, 20 mm ballscrew with 10 mm pitch, one 750W AC servo (HLTNC)
z-axis 185 mm max travel, 16 mm ballscrew with 5 mm pitch, high torque nema 34 stepper
spindle - 2,2 kw rattmotor air cooled
Brain of the operation: raspberry pi 4b+ using a parallel port hat and a 5 axis breakout board
I'm running the premanufactured PI4 optimized Debian Bookworm image.
Y-axis settings as follows:
max_velocity = 5000 mm/min
max_acc = 20000 mm/min2
min limit = 0 mm
max limit = 1190 mm
stepgen_maxaccel = 40000
scale = 10 steps/mm -> (not sure why i set this to 10 -> 200 steps/rev and 10 mm pitch shall result in 20 steps/mm)
FERROR = 1
Min_Ferror = 0.25
The issue:
See attachment for further details
arcs/circular shapes are for any reason shifted in XY - direction, the error occurs above 250 mm/min and is almost unchanged between 1000-5000 mm/min.
What did i test up to now:
Any hint or recommendation on how to improve this would be appreciated!
Thank you!
Michael
I'm building on a small CNC for over two years now. Unfortunately, I've been running in some issues while milling circular pockets.
machine specs:
Traj XYZA
y-axis 1190 mm max travel, 20 mm ballscrew with 10 mm pitch, two 750W AC servo (HLTNC)
x-axis 900 mm max travel, 20 mm ballscrew with 10 mm pitch, one 750W AC servo (HLTNC)
z-axis 185 mm max travel, 16 mm ballscrew with 5 mm pitch, high torque nema 34 stepper
spindle - 2,2 kw rattmotor air cooled
Brain of the operation: raspberry pi 4b+ using a parallel port hat and a 5 axis breakout board
I'm running the premanufactured PI4 optimized Debian Bookworm image.
Y-axis settings as follows:
max_velocity = 5000 mm/min
max_acc = 20000 mm/min2
min limit = 0 mm
max limit = 1190 mm
stepgen_maxaccel = 40000
scale = 10 steps/mm -> (not sure why i set this to 10 -> 200 steps/rev and 10 mm pitch shall result in 20 steps/mm)
FERROR = 1
Min_Ferror = 0.25
The issue:
See attachment for further details
arcs/circular shapes are for any reason shifted in XY - direction, the error occurs above 250 mm/min and is almost unchanged between 1000-5000 mm/min.
What did i test up to now:
- Change base_period up and down -> the servos are set to 200 "steps"/rev, 10 mm pitch -> thus 20 steps/mm resulting in below 2000 pulses per second on one axis. Base_period is set to 100k, shall be fine? Changing the base_period to 40k didn't change anything as well as increasing the base period to 150k.
- Change max_acc to 4x max_velocity and stepgen to 2x max_acc -> didn't change anything
- check mechanical stiffness and backlash -> everything feels tight and rock solid, the linear guide rails are 20x30mm using very massiv long carriers.
- kill all unnecessary PIDs on the debain system in order to reduce latency -> didn't change anything
Any hint or recommendation on how to improve this would be appreciated!
Thank you!
Michael
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18165
- Thank you received: 4915
04 Feb 2025 21:46 #320661
by PCW
Replied by PCW on topic systematic drift on arcs
One guess is noise/crosstalk on the step/dir interface, especially if
the drives have a input capable of accepting high speed step signals.
the drives have a input capable of accepting high speed step signals.
Please Log in or Create an account to join the conversation.
- Meichinger
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 1
05 Feb 2025 06:46 #320704
by Meichinger
Replied by Meichinger on topic systematic drift on arcs
Hi Peter,
thank you for your quick reply!
The step/puls signal wires are unshielded nearby the breakout board and stuffed into one cable collector. Puls signal level is 5V, max frequency at my current settings is 10khz for one axis.
I'll add some braided copper shielding to those wires and check if it helps.
Br
Michael
thank you for your quick reply!
The step/puls signal wires are unshielded nearby the breakout board and stuffed into one cable collector. Puls signal level is 5V, max frequency at my current settings is 10khz for one axis.
I'll add some braided copper shielding to those wires and check if it helps.
Br
Michael
Please Log in or Create an account to join the conversation.
- Meichinger
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 1
10 Feb 2025 20:57 #321186
by Meichinger
Replied by Meichinger on topic systematic drift on arcs
Adding a shield to the step cable has not changed anything.
I will scope the step signal in the next few days...
I tried it at least 8 times today at different speeds.... it was quite intriguing that the offset diameter increased when the speed was increased, but the offset angle always remained constant.
Anyone have any other recommendations on how to fix this?
I will scope the step signal in the next few days...
I tried it at least 8 times today at different speeds.... it was quite intriguing that the offset diameter increased when the speed was increased, but the offset angle always remained constant.
Anyone have any other recommendations on how to fix this?
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18165
- Thank you received: 4915
10 Feb 2025 22:17 #321189
by PCW
Replied by PCW on topic systematic drift on arcs
Can you check if you have an accumulated error?
(does the spindle return to the same reference position when done)
(does the spindle return to the same reference position when done)
Please Log in or Create an account to join the conversation.
- cakeslob
- Offline
- Platinum Member
-
Less
More
- Posts: 836
- Thank you received: 242
11 Feb 2025 01:13 #321200
by cakeslob
Replied by cakeslob on topic systematic drift on arcs
losing steps on step space/time?
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 60000
setp stepgen.0.dirsetup 60000
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18165
- Thank you received: 4915
11 Feb 2025 01:23 #321202
by PCW
Replied by PCW on topic systematic drift on arcs
If you are not using reset mode (Not sure if the RPI can do this)
The step pulse width is the base period.
Drifting in a (mod) 45 degree angle suggests crosstalk to me.
Maybe a loose ground or 5V common in the step wiring?
The step pulse width is the base period.
Drifting in a (mod) 45 degree angle suggests crosstalk to me.
Maybe a loose ground or 5V common in the step wiring?
The following user(s) said Thank You: cakeslob, Meichinger
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 541
- Thank you received: 175
11 Feb 2025 06:54 #321211
by Hakan
Replied by Hakan on topic systematic drift on arcs
If you are not loosing steps, like the spindle end up in a different position after you are done, I would guess something mechanical.
45 degree rotated ellipses reminds me of backlash.
45 degree rotated ellipses reminds me of backlash.
Please Log in or Create an account to join the conversation.
- gekonko
-
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 2
11 Feb 2025 14:26 #321233
by gekonko
Replied by gekonko on topic systematic drift on arcs
did you tune your servos?
could be just small gain in drive.
could be just small gain in drive.
Please Log in or Create an account to join the conversation.
- Meichinger
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 1
18 Feb 2025 14:50 - 18 Feb 2025 15:03 #321921
by Meichinger
Replied by Meichinger on topic systematic drift on arcs
Hi,
thanks to all for the suggestions!
did several checks today
thanks to all for the suggestions!
did several checks today
- start vs end positon -> 1.3 mm positive error on both axis -> accumulated error on both axis
- checked step pulse width = base period
- mechanical test -> turned motors by hand while keep high resistance on the Z-axis plate -> everything feels rock solid with no observable backlash
- tuning servos -> I use the T3D servodrive von HLTNC, did several tests with different filter and timing values -> unchanged
- something very strange did happen also today... by accident I run a testprogramm with 12.000 mm/min -> the circle was perfectly straight :O
Last edit: 18 Feb 2025 15:03 by Meichinger.
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds