- Configuring LinuxCNC
- Advanced Configuration
- K2 Retrofit with pico systems servo amplifier and encoders using 7i95t
K2 Retrofit with pico systems servo amplifier and encoders using 7i95t
- GeramyL
- Offline
- Senior Member
-
Less
More
- Posts: 74
- Thank you received: 6
14 Jul 2025 21:11 - 14 Jul 2025 22:32 #331834
by GeramyL
K2 Retrofit with pico systems servo amplifier and encoders using 7i95t was created by GeramyL
Hey guys I have been having a hell of a time trying to get closed loop pid tuning going, which i've done before pretty easily.The Z Axis seems to require over 500 P in order to have proper cmd-pos and fb-pos being in line or on target.No matter what I do I seem to get this crazy drift once im done pressing the job button.Maybe someone can help out?I have tried tuning to no end. The Z Axis has a shock which creates resistance from it falling downwards.Maybe my scale is incorrect or something else?The Servo Amplifiers use Digital PWM/DIR
Attachments:
Last edit: 14 Jul 2025 22:32 by GeramyL.
Please Log in or Create an account to join the conversation.
- langdons
- Offline
- Platinum Member
-
Less
More
- Posts: 515
- Thank you received: 50
15 Jul 2025 18:02 #331860
by langdons
Replied by langdons on topic K2 Retrofit with pico systems servo amplifier and encoders using 7i95t
"The Z Axis has a shock which creates resistance from it falling downwards."
If you remove the shock, what happens?
Does it fall under its own weight?
Is there any way you can make the Z-axis lighter?
(By removing superfluous stuff to reduce weight)
Perhaps you need a beefier motor on the Z-axis.
If you remove the shock, what happens?
Does it fall under its own weight?
Is there any way you can make the Z-axis lighter?
(By removing superfluous stuff to reduce weight)
Perhaps you need a beefier motor on the Z-axis.
Please Log in or Create an account to join the conversation.
- GeramyL
- Offline
- Senior Member
-
Less
More
- Posts: 74
- Thank you received: 6
15 Jul 2025 23:39 #331873
by GeramyL
Replied by GeramyL on topic K2 Retrofit with pico systems servo amplifier and encoders using 7i95t
The machine worked before, but basically your saying due to the amount of power being used aka the P needed to get the motor to move and then the drift is evidence that the motor is probably a little under powered? So maybe I need to redo the tuning overall instead start from P = 300, D = 0, I = 0, BIAS = 0 FF0 = 0 FF1 = 0 and FF1 = 0 and see if im still getting drift? The other option is to see if i can increase the servo-thread update frequency? from 1000000 to 900000? That would get more more cycles per P right giving me more response, but is essentially the same as increasing right?
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Platinum Member
-
Less
More
- Posts: 457
- Thank you received: 161
16 Jul 2025 00:54 #331877
by unknown
Replied by unknown on topic K2 Retrofit with pico systems servo amplifier and encoders using 7i95t
Ignore what Langdon suggests, his advice is unreliable at best, mostly uninformed and most formed in an empty head and produced rectally.
My apologies for sourcing the thread and being so crass but many a time I have seen the above mentioned member not answer the topic and speak non sense.
Whilst I myself don't have correct answer Tommy or some other more knowledgeable member may chime in.
As for decreasing the thread period, aka increasing thread frequency I would run a latency test using the new figures the see how this affects latency, just to be sure there are no surprises, the Linuxcnc docs will have this information, but it will be need to run from the command line.
Once again apologies for the crass warning.
My apologies for sourcing the thread and being so crass but many a time I have seen the above mentioned member not answer the topic and speak non sense.
Whilst I myself don't have correct answer Tommy or some other more knowledgeable member may chime in.
As for decreasing the thread period, aka increasing thread frequency I would run a latency test using the new figures the see how this affects latency, just to be sure there are no surprises, the Linuxcnc docs will have this information, but it will be need to run from the command line.
Once again apologies for the crass warning.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18902
- Thank you received: 5216
16 Jul 2025 01:00 #331878
by PCW
Replied by PCW on topic K2 Retrofit with pico systems servo amplifier and encoders using 7i95t
If these are voltage mode (bare PWM) drivers, the tuning is somewhat like
velocity mode servos (with low velocity loop gain) That means that FF1 is critical.
I would first set a relatively low P term and adjust FF1 so that during constant velocity
the motor neither lags nor leads the desired position (too much FF1 will make the
position lead and too little will make it lag) Note that this is just for tuning during constant
speed motion.
Next I would adjust D as high as possible while remaining stable.
Next do the same with P and back off about 30% from where it becomes unstable
You can now add some FF2 to compensate for the following error during acceleration
and decceleration.
Finally you can add as much I term as is stable (watch out for big oscillations)
and then back off about 50% from the point where it became unstable
Note: If you need to retune FF1 , you need a low P term and zero I term
Also if you can decrease the Ethernet latency and run a higher frequency servo
thread, the performance will be improved.
velocity mode servos (with low velocity loop gain) That means that FF1 is critical.
I would first set a relatively low P term and adjust FF1 so that during constant velocity
the motor neither lags nor leads the desired position (too much FF1 will make the
position lead and too little will make it lag) Note that this is just for tuning during constant
speed motion.
Next I would adjust D as high as possible while remaining stable.
Next do the same with P and back off about 30% from where it becomes unstable
You can now add some FF2 to compensate for the following error during acceleration
and decceleration.
Finally you can add as much I term as is stable (watch out for big oscillations)
and then back off about 50% from the point where it became unstable
Note: If you need to retune FF1 , you need a low P term and zero I term
Also if you can decrease the Ethernet latency and run a higher frequency servo
thread, the performance will be improved.
Please Log in or Create an account to join the conversation.
- GeramyL
- Offline
- Senior Member
-
Less
More
- Posts: 74
- Thank you received: 6
16 Jul 2025 01:56 #331880
by GeramyL
Replied by GeramyL on topic K2 Retrofit with pico systems servo amplifier and encoders using 7i95t
these are PWM digital signal, pico systems servo amplifiers, as far as im told the pwm from the 7i95t is digital. Well not so much as im told but also through experience, heh pwm analog didn't work dont ask how i know i dont want to know how i even know. Just call it a misunderstanding in hardware specifications.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- K2 Retrofit with pico systems servo amplifier and encoders using 7i95t
Time to create page: 0.058 seconds