Page 1 of 2 12 LastLast
Results 1 to 12 of 17

Thread: tuning dual servos on CNC router

  1. #1
    Registered Boltz's Avatar
    Join Date
    Mar 2010
    Location
    US
    Posts
    228
    Downloads
    0
    Uploads
    0

    tuning dual servos on CNC router

    I'm just learning about servos, and I think I've got some of the basic concepts of servo tuning. I understand that what's usually done is to command a move and compare the commanded position to the actual position reported by the encoder, and that this is typically done with the motor installed and connected to it's intended load, so that the inertia and resonance of the whole system can be tuned.

    What's puzzling me is how one goes about tuning a pair of servos that need to work in tandem, which is what I've got on the Multicam router I recently bought.

    I'm getting an "excessive following error" fault occasionally on one of the drives, so I'm wondering if they need tuning.

    Thanks for any help.

    -Jim Hart


  2. #2
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,965
    Downloads
    0
    Uploads
    0
    The tuned loop for servo systems is referred to as the PID loop, a search will bring you much info if you want to get more info on it, also a valuable resource is the instructional videos on the Galil Motion site if you want to learn about servo tuning.
    Generally for two servo's to be used on the same axis requires the gearing feature of the controller, one axis (slave) is geared off the primary axis (master) encoder, Multicam mention they use a stand alone RISC/DSP controller which may imply they use closed loop gearing function in order to synchronize the dual axis.
    Excess following error could well mean tuning, or alternatively a binding on the slave side, if this error is on the dual axis
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  3. #3
    Registered Boltz's Avatar
    Join Date
    Mar 2010
    Location
    US
    Posts
    228
    Downloads
    0
    Uploads
    0
    Thanks for the quick reply, Al!

    It sounds like you're saying that the synchronization of the 2 motors takes place in the machine controller, and the general term for this is "gearing".

    Unfortunately, the controller for this machine (made by Extratech) is kind of a Black Box, they're an OEM vendor who won't talk at all to an end user. Getting support from Multicam has been kind of an arduous process, where you leave a message and a tech gets back to you in several hours, or maybe not at all.

    My Kingdom for a set of ladder diagrams! At least I have a copy of Ultramaster, so I can get detailed fault descriptions. There may be some mechanical binding, not sure how to check and adjust the pinions.

    Anyway, in the dual motor setups you've worked on, is tuning done on the motors individually or simultaneously? Would you use a looping g-code program to command a long sequence of plus and minus moves, then tune one drive at a time?

    thanks,
    -Jim Hart


  4. #4
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,965
    Downloads
    0
    Uploads
    0
    In a typical CNC machine, the servo loop and tuning is invisible to the part programming.
    In a synchronized geared situation, both drives should be tuned for optimum, often the software is either capable of self tuning through a soft ware program, or a series of moves are performed whilst the PID is tuned for optimum performance to achieve as low as possible following error on each axis.
    I would expect anyone designing a machine of this nature to have a maintenance or diagnostic tuning feature available.
    If you have an axis that is difficult to achieve a reasonable result, then I would look at mechanical problems for the solution.
    Although rare, I have run across proprietary designs in the past that have been averse to offering anything in the way of technical detail.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  • #5
    Registered Boltz's Avatar
    Join Date
    Mar 2010
    Location
    US
    Posts
    228
    Downloads
    0
    Uploads
    0
    Ultramaster has an autotune option, although the help file recommends using the autotune as a jumping off point for manual tuning (at least that's the way I read it).

    I've sucessfully used the manual tune option to set up a continuous oscillation on the y-axis. The software has a built-in o-scope, and I've been able to compare commanded speed and position with what the encoder says. Haven't been bold enough to change any PID or K-values, but I'm starting to get a bit of a grip on it conceptually.

    Still can't grasp how one is supposed to tune the pair of x-axis motors. I can look at the scope while a program is running and compare commanded and encoder values, but then the program has to be stopped and the drive disabled to adjust the PID and K's.

    Interestingly, the problem only happens during an extended slew move at full rapid, such as when parking the gantry high or low. Short slew moves, all normal cutting speeds, and rapid jog (about 75% of full rapid) all work just fine.


  • #6
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,965
    Downloads
    0
    Uploads
    0
    It could be that on extended moves the following error gradually increases and this could cause the slave side to skew or yaw and this will aggravate the problem due to friction.
    On the cards I use (Galil) they have an option to look at the following error as during a move and the ability to change the PID in between moves.
    Record the PID and experiment, you could always plug the original back in.
    If you look at one of the Galil manuals, near the front of each manual is tuning the PID loop, the general sequence applies to other systems also, not just to Galil.
    Al.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  • #7
    Registered Boltz's Avatar
    Join Date
    Mar 2010
    Location
    US
    Posts
    228
    Downloads
    0
    Uploads
    0

    still working on this

    It looks like I'm getting some overshoot on the X axis, an shown by the ripples in the corner. Kd is set at zero. I'm wondering if setting a positive value for Kd would increase damping and reduce overshoot. The screen shot is from Ultramaster.

    -Jim Hart
    Attached Thumbnails Attached Thumbnails tuning dual servos on CNC router-x_axis_overshoot.jpg   tuning dual servos on CNC router-xa_tuning_normal_operation_position.png  
    My main machine: Multicam MG series (MG101) with original Extratech H971 controller, Minarik servo motors, Electro-Craft BRU-series drives, 4KW Colombo. Let's talk Multicam!


  • #8
    Registered Boltz's Avatar
    Join Date
    Mar 2010
    Location
    US
    Posts
    228
    Downloads
    0
    Uploads
    0

    weird wave

    I wrote a little g-code program which moves the X-axis back and forth over a 3 inch span, then looked at the built in oscilloscope in Ultramaster and saw this rather weird waveform. Things would be so much easier if I could just send the same square wave to both motors.

    -Jim Hart
    Attached Thumbnails Attached Thumbnails tuning dual servos on CNC router-x_pos_cmnd.png  
    My main machine: Multicam MG series (MG101) with original Extratech H971 controller, Minarik servo motors, Electro-Craft BRU-series drives, 4KW Colombo. Let's talk Multicam!


  • #9
    Registered
    Join Date
    Nov 2004
    Location
    USA
    Posts
    448
    Downloads
    0
    Uploads
    0
    KD=0 is wrong, unless you are in velocity mode. What does the other gantry servo drive tuning set to?

    Rob


  • #10
    Registered
    Join Date
    Jun 2010
    Location
    United States
    Posts
    156
    Downloads
    0
    Uploads
    0

    Tuning dual servos on CNC router

    Jim,
    I thing you guys might be over thinking this:

    Have you looked at all of the mechanics of the servo assemblies
    1. Pinions do they look like mountain peaks or devils tower. I should look like Devils Tower.
    2. How does your rack look. It should have the same look
    3. If you drop your servo and spin the pinion by hand, back and forth are you feeling any backlash.
    4. If you feel backlash, pull apart the motor from the transmission, I think you have a small pinion is connected to the servo shaft, but then again Multicam had various versions, check that little pinion it could be worn out.
    5. If you still haven't found anything:
    1.Move to the front of the table and set a home point and drop one of the motors.
    2. Press Enter to get into the Menu and move cursor until you get to Move, Enter
    3. Put a X value of say 36" and don't work about Y or Z.
    4. Measure from the front of the rail to say the front of the bearing car and repeat the same process for the other side. Check those measurements.
    5. At that point switch the motors side, XA for XB and XB for XA.

    If one side is short and once your switch side, that shortness shows up on the other side, then it is something with the motor or gearbox. If you get the same measurement, have you squared the gantry.

    Try this and let me know...

    Chris..


  • #11
    Registered Boltz's Avatar
    Join Date
    Mar 2010
    Location
    US
    Posts
    228
    Downloads
    0
    Uploads
    0
    MCP, yes I've been through the mechanicals. The pinions and couplings are tight, gearboxes are like new, and the rack doesn't look anything like that machine in South Africa that's been used to run composites all day! The X-axis overshoot is quite observable while cutting, it's consistent, and it happens in both directions.

    Spoiledbrat, the other option is the position loop. The servo tunung docs at Kollmorgen say to tune the fastest loops first, which is why I'm starting with the velocity loop. I've now completed a full set of screenshots of all the original settings, so now I'm set to start tweaking things.

    I agree, it's odd that D is greyed out. Evidently the velocity loop is PI, but the position loop is PID.

    Here's a shot of the position tuning screen, I haven't changed Kd, it was set at zero.

    I've been following your struggle with your Galil controller.

    -Jim Hart

    -Jim Hart

    Quote Originally Posted by spoiledbrat View Post
    KD=0 is wrong, unless you are in velocity mode. What does the other gantry servo drive tuning set to?

    Rob
    Attached Thumbnails Attached Thumbnails tuning dual servos on CNC router-xa_tuning_normal_operation_position.png  
    My main machine: Multicam MG series (MG101) with original Extratech H971 controller, Minarik servo motors, Electro-Craft BRU-series drives, 4KW Colombo. Let's talk Multicam!


  • #12
    Registered
    Join Date
    Jun 2010
    Location
    United States
    Posts
    156
    Downloads
    0
    Uploads
    0

    Tuning dual servos on CNC router

    Can you give me a pic of your servo and the amp..... might have the old programs for that drive....


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Advice on Dual Plasma Router Table
      By Mini-MillX2 in forum General Waterjet
      Replies: 2
      Last Post: 01-27-2007, 06:04 AM
    2. servos to control dual axis solar tracker
      By BullCreek in forum Servo Motors and Drives
      Replies: 17
      Last Post: 08-15-2006, 09:04 AM
    3. Tuning Servos with out an O-scope?
      By Bird_E in forum Gecko Drives
      Replies: 2
      Last Post: 02-23-2005, 01:16 PM
    4. Servos on Cad-Cut Router
      By CAM_MAN in forum Servo Motors and Drives
      Replies: 3
      Last Post: 02-10-2005, 08:44 PM
    5. dual purpose cnc router
      By junkmail in forum DIY CNC Router Table Machines
      Replies: 2
      Last Post: 03-10-2004, 01:01 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.