Editing Tuning position controller

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help page.

Latest revision Your text
Line 14: Line 14:
 
**Choose ''Serial only'' setpoint input {{param|CM}}
 
**Choose ''Serial only'' setpoint input {{param|CM}}
 
**Make other necessary adjustments to have drive powered and enabled  
 
**Make other necessary adjustments to have drive powered and enabled  
**Untick {{param|CIS}}
+
**Untick Setpoint smoothing {{param|CIS}}
 
**Set Goals tab {{param|DIV}} and {{param|MUL}} to 50
 
**Set Goals tab {{param|DIV}} and {{param|MUL}} to 50
**Set {{param|CAL}} & {{param|CVL}} limits reasonably to the levels that motor is expected to handle
+
**Set acceleration {{param|CAL}} & velocity {{param|CVL}} limits reasonably to the levels that motor is expected to handle
 
*Set-up the test stimulus and capture settings from Testing tab (an example, may be varied):
 
*Set-up the test stimulus and capture settings from Testing tab (an example, may be varied):
 
**Set target setpoint 1 [[TSP1]] to 100  
 
**Set target setpoint 1 [[TSP1]] to 100  
Line 22: Line 22:
 
**Set target setpoint 2 [[TSP2]] to -100
 
**Set target setpoint 2 [[TSP2]] to -100
 
**Set delay1 [[TSD2]] to 0.25 s
 
**Set delay1 [[TSD2]] to 0.25 s
**Choose {{param|TSR}} of 500 to 2500 Hz
+
**Choose sample rate {{param|TSR}} of 500 to 2500 Hz
 
**Choose ''Capture setpoint change in positive direction'' from the dropdown
 
**Choose ''Capture setpoint change in positive direction'' from the dropdown
 
**''Tick Continuously repeating capture''
 
**''Tick Continuously repeating capture''
 
**Tick ''Position setpoint'' and ''Position achieved'' from signals
 
**Tick ''Position setpoint'' and ''Position achieved'' from signals
 
**Tick ''Start capture'' to begin continous capture.  
 
**Tick ''Start capture'' to begin continous capture.  
**Tick {{param|TSE}} to begin a continuous position back and forth motion generation
+
**Tick Enable test stimulus {{param|TSE}} to begin a continuous position back and forth motion generation
  
 
Once the steps above are done, motor should be generating short distance back and forth motion motion and position response graphs should appear on the right side of Granity about once in 3-5 seconds.
 
Once the steps above are done, motor should be generating short distance back and forth motion motion and position response graphs should appear on the right side of Granity about once in 3-5 seconds.
Line 67: Line 67:
 
[[File:posgains7.png|800px|]]
 
[[File:posgains7.png|800px|]]
  
Finally after playing little bit with all of {{param|KVP}}, {{param|KVI}} and {{param|KPP}} experimentally, we find a less overshooting response without losing much stiffness.
+
Finally after playing little bit with all of {{param|KVP}}, {{param|KVI}} and {{param|KPP}} gains experimentally, we find a less overshooting response without losing much stiffness.
  
 
===Curing tracking error and overshoot===
 
===Curing tracking error and overshoot===
Line 74: Line 74:
 
[[File:posgains8.png|800px|]]
 
[[File:posgains8.png|800px|]]
  
Reducing {{param|CAL}} and/or {{param|CVL}} limits makes the trajectory easier to follow and reduces tracking error and overshooting.  
+
Reducing acceleration {{param|CAL}} and/or velocity {{param|CVL}} limits makes the trajectory easier to follow and reduces tracking error and overshooting.  
  
 
[[File:posgains9.png|800px|]]
 
[[File:posgains9.png|800px|]]
  
The same may be also achieved by utilizing [[Feed-forward]] {{param|VFF}} and {{param|AFF}} which essentially compensate system friction and mass limiting the dynamic performance.  
+
The same may be also achieved by utilizing [[Feed-forward]] gains {{param|VFF}} and {{param|AFF}} which essentially compensate system friction and mass limiting the dynamic performance.  
  
The recommended way to tune FF gains, is to start increasing {{param|VFF}} until the optimum level has been found. After that, increase {{param|AFF}} until the optimum point has been reached.
+
The recommended way to tune FF gains, is to start increasing velocity feed-forward {{param|VFF}} until the optimum level has been found. After that, increase acceleration feed-forward {{param|AFF}} until the optimum point has been reached.
  
 
[[File:Poscurrentsaturation.png|800px]]
 
[[File:Poscurrentsaturation.png|800px]]
Line 86: Line 86:
 
If following the tuning procedure does not result in satisfactory tracking performance, the problem may be asking too much from the motor. In the example above the acceleration limit is set too high to be accelerated with the given motor torque limits (or current limits).
 
If following the tuning procedure does not result in satisfactory tracking performance, the problem may be asking too much from the motor. In the example above the acceleration limit is set too high to be accelerated with the given motor torque limits (or current limits).
  
To verify if the problem happens due to torque limit, tick also Torque achieved and Torque setpoint signals from the Testing tab settings. In such way also motor currents will be displayed simultaneously with the position response curves. If the torque curve is limited to the set, {{param|MMC}}, then the problem is insufficient torque. In the image above we can see that the torque curves are saturated at 4A and -4A levels which matches the configured {{param|MMC}} value of 4A in this demonstration.
+
To verify if the problem happens due to torque limit, tick also Torque achieved and Torque setpoint signals from the Testing tab settings. In such way also motor currents will be displayed simultaneously with the position response curves. If the torque curve is limited to the set peak current limit {{param|MMC}}, then the problem is insufficient torque. In the image above we can see that the torque curves are saturated at 4A and -4A levels which matches the configured {{param|MMC}} value of 4A in this demonstration.
  
 
To help this, try:
 
To help this, try:
*Increasing {{param|MMC}} and {{param|MCC}} if possible
+
*Increasing current limits {{param|MMC}} and {{param|MCC}} if possible
*Reducing {{param|CAL}} and/or {{param|CVL}} limits
+
*Reducing acceleration {{param|CAL}} and/or velocity {{param|CVL}} limits
  
 
===Steps to do after tuning finished===
 
===Steps to do after tuning finished===
 
*Stop test stimulus by unticking {{param|TSE}}
 
*Stop test stimulus by unticking {{param|TSE}}
*Stop scope capture by unticking ''Continuously repeating capture''
+
*Stop scope catpure by unticking ''Continuously repeating capture''
 
*Undo all temporary changes made to settings
 
*Undo all temporary changes made to settings
 
*Save settings to drive memory by clicking ''Save settings on drive non-volatile memory'' button
 
*Save settings to drive memory by clicking ''Save settings on drive non-volatile memory'' button
Line 100: Line 100:
 
*If setpoint signal scaling is needed, adjust {{param|MUL}} and {{param|DIV}} values. See [[Signal path of motor drive]] for explanation of velocity setpoint scale.
 
*If setpoint signal scaling is needed, adjust {{param|MUL}} and {{param|DIV}} values. See [[Signal path of motor drive]] for explanation of velocity setpoint scale.
  
{{tip|If drive will be controlled by an external motion [[controller]] with acceleration & velocity limits, such as CNC controller programs like [[Mach3]] or [[LinuxCNC]], then its recommended to increase {{param|CAL}} to the maximum value of 32767 and disable {{param|CIS}} to prevent drive's internal acceleration limiter modifying the [[setpoint signal]]. Using these settings effectively disables the internal acceleration limit and let's external controller to control accelerations.}}
+
{{tip|If drive will be controlled by an external motion [[controller]] with acceleration & velocity limits, such as CNC controller programs like [[Mach3]] or [[LinuxCNC]], then its recommended to increase acceleration limit {{param|CAL}} to the maximum value of 32767 and disable setpoint smoothing {{param|CIS}} to prevent drive's internal acceleration limiter modifying the [[setpoint signal]]. Using these settings effectively disables the internal acceleration limit and let's external controller to control accelerations.}}
 
+
[[Category:Tuning_guide]]
+
[[Category:Granity_user_guide]]
+

Please note that all contributions to Granite Devices Knowledge Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Granite Devices Knowledge Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Select categories:

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)