Hello Guest it is March 28, 2024, 06:44:48 AM

Author Topic: IP-A and Servo drives, voltage matching...  (Read 14817 times)

0 Members and 1 Guest are viewing this topic.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
IP-A and Servo drives, voltage matching...
« on: November 01, 2016, 09:18:13 AM »
Is it possible for some kind soul to explain if I have any issue here or not please... :)

I have 3000rpm AC servo motors and they are controlled by 10-0-10v from the IP-A as normal.

However, I have my motor tuning velocity set to 3000mm/min as its not a very big mill and pretty old.

With the lead-screws I have (inch) they are 5.08mm/rev and I have 2:1 belt reduction so I think the motor will never do more than 1181rpm ((3000/5.08)*2)

Does this matter or am i ok here - I'm finding confusing info about motor tuning and matching the control signal to the speed etc.

I cant change the belt drive reduction but I have found the setting parameter for the drives that reduces the motor speed per input volt.

Thanks
Re: IP-A and Servo drives, voltage matching...
« Reply #1 on: November 04, 2016, 10:19:25 PM »
Dave,

Most closed loop servo systems utilize amps that have tachometer feedback from the motors. Many have amps with encoder feedback as well. Also, the IP-A control can compute the RPM of the motor based upon encoder feedback. This is how my machine works. I am running at about 175imp for my rapids even though the machine is capable of running at 200ipm rapids based upon max RPM for my servo motors. So, to directly answer your question, your settings should be fine as long at your amps are getting proper tachometer feedback from the motors and as long as the CSMIO-IP/A is getting proper encoder feedback.

The automatic PID tuning worked really well on my machine. You should run the auto-tune first and see if you get good results. For me, good results were errors less than 5 encoder pulses. Make sure your amps are in good tune to start with, otherwise you will never get good results from the CSMIO/IP-A autotune.


Hope this helps!
Mike
 

 

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: IP-A and Servo drives, voltage matching...
« Reply #2 on: November 05, 2016, 10:12:09 AM »
Thanks Mike

The best tune i can get is manually and gives around 300 count following error when doing rapid jogs back and forward, encoders are 10,000 count.

I cannot tune the amp to motor as it is 'supposed' to be automatic just by setting the motor type parameter, the manual is in heavy Chinglish so not much help.

The drives and motors came from China via AliExpress store.

The parameters are all there but without knowing exactly what to do, i would not fiddle with them.
Re: IP-A and Servo drives, voltage matching...
« Reply #3 on: November 07, 2016, 12:24:52 AM »
ah bummer about the Chinglish... Some ideas for you:

Do you have a oscope? If yes you should verify the amps are seeing tachometer feedback from the servos.
Verify your encoders are 10k count or is that 10k edges? Remember that a 10k encoder would provide 40k edges which is what the IP-A cares about. That's a lot of precision!
You could also remove a belt from one of your servos and run it with a fixed DC voltage to the amp. As an example, +5vdc should spin the servo at 1500 RPM clockwise. If this is not the case you need to futz the settings for the amp. You'd need an oscope to look at the tach signal to measure RPM.

Is this a new machine your building or is it a retofit?

Mike



Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: IP-A and Servo drives, voltage matching...
« Reply #4 on: November 07, 2016, 02:21:49 AM »
Hi

this is a retrofit/conversion of a manual mill to cnc.

Yes i do have a 'scope but would not know how to do those tests, the encoders are 10,000 all edges, 2,500 count. I would feel certain that they are working correctly or else it would run away / fault out ?

They do run at 3000rpm for 10v input so that sounds ok?

Its just the amp pID loop that I can't tune due to the chinglish, as well as lack of knowledge.
Re: IP-A and Servo drives, voltage matching...
« Reply #5 on: November 07, 2016, 04:07:06 PM »
Hmm,

Well your troubleshooting instincts are good... Testing the tach signal should be easy, it's likely a +5vdc square wave, one pulse per rev so 3khz = 3000 rpm. 1.5khz = 1500rpm. Probe at the connection to the amp.
It's good that the servos run 3k @10vdc but it would be reassuring to know they run at 1500 rpm at 5vdc. This will at least tell you that there is a linear relationship between control voltage and RPM since this is what the IP-A expects.

I agree with you, this really sounds like a problem with the amp parameters... Can you even be sure that you have connected the tachs to the right pins given the poor docs?

Good luck!
Mike





Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: IP-A and Servo drives, voltage matching...
« Reply #6 on: November 07, 2016, 04:19:30 PM »
The motor cables are pre-wired to sockets/plugs so pretty much impossible to get wrong :)

The encoder signals from the drive to the IP-A would also give fault is wired wrong.

It all seems to work right, just with a bit of a following error, the best tune i could get was to tune for lowest following error in sequence - P, I, D, Vff they seem pretty stiff and stop sharp except for the Z drive which has a smaller motor and is still like jelly - you can move the pulley by hand a fair bit and it will pull back whereas the X & Y are locked solid.

Offline mc

*
  •  382 382
    • View Profile
Re: IP-A and Servo drives, voltage matching...
« Reply #7 on: November 09, 2016, 04:43:49 AM »
Dave, the motors you're using don't have any tach signal, they only have encoders. If things weren't wired correctly, then the drive would trigger a fault.

Your following error does sound pretty high. My Lathe can manage sub 50 on both axis, but it took a bit of manual tuning to get there, with some tips thrown in from somebody who really knows about tuning.

Essentially you keep increasing P until things go unstable, back it of slightly, increase D until things go unstable, then back it of slightly.
Repeat the above a few times, until you find the limit of stability.
Then apply some I, but once you apply I, you may have to decrease PD, as I makes things unstable.
Auto-tuning will usually get reasonable performance, but it rarely works well with unbalanced axis i.e. vertical Z axis.

There could also be a problem with the controller fighting against any inbuilt filtering in the servo drives, which is something I hit when trying to run my Kinco servos in Torque mode. Torque mode should in theory give you better performance, but tuning is far more critical.
I'm not sure what tuning/plotting capabilities CS-Labs have, but KFlop comes with some very good tools so you can generate various plots, and see exactly what is happening. Being able to see the output oscillating, along with the following error under different conditions makes tuning far easier.

Offline mc

*
  •  382 382
    • View Profile
Re: IP-A and Servo drives, voltage matching...
« Reply #8 on: November 09, 2016, 04:47:06 AM »
Just found a relevant post from Tom Kerekes (The man behind Dynomotion), from the yahoo group explaining a bit about tuning-

Quote
Unfortunately Servo Tuning is complex. There isn't really a simple - this parameter causes this problem situation.  Everything somewhat interacts and needs to work together to get the desired result.  Every system is different and has different requirements.

But basically and simplistically:

P Gain simply applies an Output Drive Proportional to error (how far the system is away from the Desired Target Destination).  This is usually the primary source of corrective feedback.  ie used for: "If way off to the right side of the road turn way left"

I Gain increases or decreases the Output Drive at a rate proportional to error (Output is proportional to all previous errors accumulated).  Corrects small persistent errors.  ie used for: "If slightly off to the right keep gradually rotating the steering wheel to the left until centered"

D Gain applies an Output Drive proportional to the rate of approach to the target.  ie used for: "Rapidly approaching a stop sign - apply brakes until speed is reduced"

PID values will influence how the system responds dynamically to errors.  Filters will also influence the dynamics of how the system responds and offer additional and more flexibility than PID values.  It is very difficult to intuitively predict how a change to PID+Filters will affect the dynamic system behavior when thinking in the time domain.   Working in the frequency domain is much more intuitive.  There is a considerable learning curve involved which is beyond most Users but is really the only way to have an understanding of the dynamics of a system.  It involves a two step process.  #1 one must understand how the shape of the Magnitude/Phase plot (Bode Plot) of the system will determine its response. #2 one must understand how PID+Filters will affect the Bode Plot.  For example a Bode Plot with a High Bandwidth and with large Gain and Phase Margins will correct errors quickly and be a stable system.  A Low pass Filter will reduce the amplitude of higher frequencies and introduce phase lag at higher frequencies.   Integrator Gain will increase the magnitude of low frequencies and add phase lag.  D gain will increase the magnitude of higher frequencies and add phase lead. 

This is all classical control theory.  There are numerous resources on-line
http://www.google.com/search?q=pid+tuning+tutorial

Regarding Max Limits: in general when a system is operating normally Max Limits (Errors, Output, Integrator, Following) should have no limiting effect and should have no influence on the dynamic response.  Generally the Max Limits are designed to help in abnormal situations in order to avoid an overly violent system response to the abnormal situation.  For example Max Integrator reduces a problem referred to as Integrator Wind-up.  If you take a well behaved and well tuned system (with some I Gain) and force the motor off of target a small amount and hold it off for a long time the Integrator will accumulate a huge amount of error.  If you suddenly release the motor shaft the system will respond with a violent overshoot.  Max Integrator can be used to make the integrator stop accumulating error at some level.

The order of tuning operations are usually:
#1 start with P gain
#2 add D gain (2nd order low pass filter 1000Hz Q1.4 will reduce output spikes)
#3 repeat #1 and #2 a few times
#4 add small amount of I gain

HTH
Good luck
Regards
TK

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: IP-A and Servo drives, voltage matching...
« Reply #9 on: November 09, 2016, 05:58:11 AM »
Thanks, that really does read as a complex process and some skill needed ;)

I know the parameters are all there, but the manual gives no help at all, does not describe them very well and just presumes the user would enter a simple motor code and all will be well - this does not take any notice of what load you have on the motor though which seems important to me I think??

Tuning the drive sounds like the answer but with little knowledge and no display - its just LED numbers, I would not know where to start really, the supplier was of little help as expected "Just enter the motor code" was the reply.

The CSMIO controller does have a good graph display on the PID screen but as it states in the manual, if the drive is not tuned correctly it is a waste of time trying to get a good setup.

Drive manual link below...