586,112 active members*
3,070 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Servo Motors / Drives > PID tuning, hard to understand
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2014
    Posts
    52

    PID tuning, hard to understand

    Hi everybody

    I¨m currently in the process of converting a OKK mcv-300 with a new control.

    I¨m at the state of tuning the axis servos. I have read up on tons of threads on howto go about tuning with no luck.
    I´m running with Cncdrive¨s DGS16035 servo driver.
    There is no autotune program to run, So i have started with turning up the gain, Ap, until the motor starts to occilate. Then added some damping, Ad. I can get a pretty good curve when not adding any I. That value is a zero. I¨m tuning with 100 steps. The strange thing is that when i try to go for 5000 steps it overshoots alot in both dirrections and finally end up at zero line. Is that normal? Is that because i cannot set acceleration in this tuning software?

    Fanuc DC ser. 5 servos.

    Any tips or tricks?

    /Lars

  2. #2
    Join Date
    Oct 2010
    Posts
    1189

    Re: PID tuning, hard to understand

    Hi i did similar with Granite devices it took me more than 10 weeks to get it done ,..


    Gesendet von iPad mit Tapatalk

  3. #3
    Join Date
    Feb 2014
    Posts
    52

    Re: PID tuning, hard to understand

    Hi

    Any tips or tricks for tuning? A problem i think a have is that i cannot change acceleration or velocity while pid tuning i the servoconf by cncdrive. As soon as i for ex make a 5000 steps analyse i get a totaly different grapf. It overshoots like hell, back and forth until it steadys out at zero. It does not occilate. I get no error between commanded steps and machine steps.

    Should i just tune at say 100 steps and then try with the motion controlbord to set acc and velocity?

    /Lars

  4. #4
    Join Date
    Jun 2013
    Posts
    1041

    Re: PID tuning, hard to understand

    You are not making a large enough move while tuning. That prevents your motor from having time to accelerate to a reasonable speed before reversing. Try tuning one of your motors using a step value equal to 25-100mm. When you have it running good run plots at 100 and 500mm and compare performance between the step sizes. It's really hard to say for sure what will work best without tuning at different step sizes. Also what is the resolution of your encoders, screw pitch and do you use any gearing between tour motor and screw. Lastly is the motor connected to the axis or are you tuning on a bench.

    Ben

  5. #5
    Join Date
    Feb 2014
    Posts
    52

    Re: PID tuning, hard to understand

    Hi Ben.

    Ok, I have been running only 100 and axis is barely moving. I will have to check pitch and gearing. Encoder is at 2500 p/rev.

    When i have tested 5000 steps it moved perhaps 20-30 mm.

    /Lars

  6. #6
    Join Date
    Jun 2013
    Posts
    1041

    Re: PID tuning, hard to understand

    Try tuning a axis using that 5000 step move and then report your following error once you have gotten to a good stable tuning for that move.

  7. #7
    Join Date
    Feb 2014
    Posts
    52

    Re: PID tuning, hard to understand

    Ok, will do that later today. And yes, the motor is mounted on the machine.

    Thank you for your help!

    /Lars

  8. #8
    Join Date
    Feb 2014
    Posts
    52

    Cool Re: PID tuning, hard to understand

    How to upload pictures? Taken some screenshots of the tuning program.

    Got it
    Attached Thumbnails Attached Thumbnails zaxis2.JPG   zaxis.JPG  

  9. #9
    Join Date
    Feb 2014
    Posts
    52

    Re: PID tuning, hard to understand

    Still some way to go. Should I wait to try to increase I last?
    Overshoots pretty mutch still. It sometimes occilate for a sec when reaching zero line. Pitch of ballscrew is 5mm, geared 2:1.
    1000 steps/mm.

  10. #10
    Join Date
    Jun 2013
    Posts
    1041

    Re: PID tuning, hard to understand

    Yes. Start at all zeros for p,I and d. Increase P until the motor goes unstable and then back off 30%. Then increase d until the motor goes unstable and then back off 30%. Then go back to p and increase until the motor goes unstable then back off 30%. Then back to d and same. Keep going back and forth until your error starts to increase instead of decrease or the motor will no longer allow increases without going unstable. Then last increase I until you go unstable and back off 50%. I should be a small value.

    Ben

  11. #11
    Join Date
    Sep 2010
    Posts
    1765

    Re: PID tuning, hard to understand

    Quote Originally Posted by LarsSweden View Post
    Still some way to go. Should I wait to try to increase I last?
    Overshoots pretty mutch still.......
    u r not doing it totally right. I shud be 0 until last yes.

    but P should NEVER be adjusted to give ANY overshoot. Period. I brings responce up; P should be as hi as you can make it WITHOUT any overshoot.

    I would not screw with D until very end.

    adjust P to hi as poss without any overshoot, then add I until you get it to about 5-10% overshoot. that is correct setting for velo loop gain. D is in my opinion a last resort if you cannot tun properly with P then I. I generally never use it. some cheap drives I suppose will need it; I dont work with cheap drives.

Similar Threads

  1. How hard is to hard to push a VF-2 SS
    By gpcoe in forum Haas Mills
    Replies: 7
    Last Post: 05-16-2010, 05:10 AM
  2. Trying to understand what I need?
    By KT6G Radio in forum CNC Machine Related Electronics
    Replies: 1
    Last Post: 02-19-2010, 04:07 AM
  3. Help me understand
    By chezrad in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 2
    Last Post: 06-22-2007, 02:26 AM
  4. I don't Understand
    By automizer in forum Phase Converters
    Replies: 14
    Last Post: 01-02-2006, 06:43 AM
  5. Cad/Cam Example - Help Me Understand
    By bill south in forum Uncategorised CAM Discussion
    Replies: 1
    Last Post: 06-29-2005, 08:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •