584,857 active members*
4,585 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2010
    Posts
    79

    Dual loop settings

    Does anyone here have a dual (rotary & linear encoders on same axis) loop setup with a Kflop that is working well?

    I have tuned my single loops (rotary motor encoders) and they work quite well, but nothing seems to be stable when adding in a outer loop with the linear encoders.

    I am using the ch1->Dest += ch0->Output in a C program to add the loops together, but it is very hard to get anything to move stable.

    I have set the outer loop to be encoder input and no output in the config settings.

    Am I supposed to match the acceleration / velocity settings between the axis channels?
    I think the outer loop should be all P and I and the inner loop should be all D for stability, but how would this work?
    If you make an axis with only D values then it will not work, and having P values in both loops makes it unstable.

    What kind of limits should the ch0 output and integrator have?

    If I understand this theory it should be:
    A motion command is send to Ch0, this output is conditioned with the PI values.
    The output is then sent to the Ch1 destination.
    Ch1 combines this with is encoder and adds D to stabilize the axis.


    Any help would be appreciated.


    Dave

  2. #2
    Join Date
    May 2006
    Posts
    4043
    Hi Dave,

    There are numerous ways to do the dual loop. But here is my suggestion.

    First tune the inner loop (motor shaft feedback) for maximum performance. This may involve PID+Filters etc as required. You can set the Velocity, Acceleration, and Jerk to good values for testing and for any single loop mode but these wont actually be used in dual loop mode as the outer loop will be controlling the trajectory.

    Next enable the dual loop. Note that loops connected together with:

    ch1->Dest += ch0->Output;

    means that the target position of the inner loop moves at a velocity proportional to the output of the outer loop. So the Outer loop can be tuned in the same manner as if it was connected to say a +/-10V Analog Velocity Commanded Amplifier. Only P Gain should be stable. A servo with simple P only Gain commanding velocity usually works well. As the error decreases the velocity decreases which should result in a nice exponential approach to the target. If the system is unstable decrease the P gain until it is stable.

    As stated previously the Outer Loop's trajectory will determine the motion, so set the Velocity, Acceleration, an Jerk here for your system.

    HTH
    Regards
    TK
    http://dynomotion.com

  3. #3
    Join Date
    Sep 2011
    Posts
    474
    WHich linear encoders are compatible? Renishaw? Typical glass scale?

    Thanks!

  4. #4
    Join Date
    May 2006
    Posts
    4043
    Hi SwampDonkey,

    As long as the encoders output digital quadrature and don't exceed 1 million quadrature counts/sec at max speed they should work. See also here

    Regards
    TK
    http://dynomotion.com

Similar Threads

  1. Open Loop to Closed Loop Stepper Conversion
    By beamhome in forum Stepper Motors / Drives
    Replies: 11
    Last Post: 03-09-2014, 11:27 PM
  2. Adtech servo driver settings for loop control
    By phantom1500 in forum Servo Motors / Drives
    Replies: 0
    Last Post: 02-10-2013, 11:23 PM
  3. Adtech servo driver settings for loop control
    By phantom1500 in forum Controller & Computer Solutions
    Replies: 0
    Last Post: 02-10-2013, 11:23 PM
  4. CNC conversion typically open loop or closed loop?
    By foobar42 in forum Benchtop Machines
    Replies: 8
    Last Post: 10-30-2009, 01:21 AM
  5. question on closed loop vs open loop (servo systems)
    By boonie in forum Servo Motors / Drives
    Replies: 20
    Last Post: 11-09-2007, 07:30 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
  •