07 Adjustment
Overview
The servo drive is required to run the motor in least time delay and as faithful as possible against references from the host controller or internal setting. Gain adjustment needs to be performed to meet the requirements.
Figure 7-1 Gain adjustment flowchart
Servo gain is adjusted by setting multiple parameters (including position loop gain, speed loop gain, filter and inertia ratio) that affect each other. Ensure these parameters have a balanced relationship during setting.
The following table shows the general gain adjustment description:
Gain Adjustment Procedure | Function | Section to Refer | ||
---|---|---|---|---|
1 | Inertia auto-tuning | online | Use the debugging tool(running in pc) to perform inertia identification. self-inertia identification function, the drive automatically calculates the load inertia ratio | 7.2.1 |
2 | Automatic gain adjustment | The drive automatically gives the gain parameters to match the inertia ratio (it should be set correctly). | 7.3.1 | |
3 | Manual gain adjustment | Basic gain | If the automatic gain adjustment result is not satisfactory, perform fine manual adjustment. | 7.3.2 |
Feedforward gain | Enable this function to improve the follow-up characteristics. | 7.3.3 | ||
4 | Vibration suppression | Mechanical resonance | Enable the notch function to suppress mechanical resonance. | 7.4.1 |
Inertia ratio
The inertia ratio [P3-1] is:
The inertia ratio is an important parameter of the servo system, and quick commissioning could be implemented with the correct setting of this parameter.
It could be set manually or auto-tuned automatically by the servo drive itself.
Before performing online auto-tuning, the following conditions should be met:
The maximum speed of the motor should be greater than 300rpm.
The actual inertia ratio is between 0.00 and 100.00.
The load torque is stable without dramatic change.
The backlash of the load transmission mechanism is within a certain range.
The movement travel of the motor should meet the following requirements.
The movement travel of above one revolution in either forward or reverse direction is available between the mechanical limit switches. To make sure the limit switches have been installed, the required movement travel is reserved to prevent the condition that the motor senses the limit switches, it maybe cause accidents during auto-tuning.
[P3-5] (Motor revolutions for an inertia auto-tuning) is met: Ensure the movement travel for the motor in the stop position is larger than [P3-5]. if not, decrease [P3-6](maximum speed of inertia identification).
During inertia auto tuning, if vibration occurs, the auto tuning should be stopped Immediately.
Relevant function code:
Code | Parameter Name | Property | Effective Time | Range | Function | Unit | Default |
---|---|---|---|---|---|---|---|
P3-1 | Load inertia ratio | At stop | Immediate | 0~10000 | Set load inertia ratio, 0.00 - 100.00 times | 0.01 | 500 |
P3-5 | Number of inertia identification cycles | At stop | Immediate | 1~2 | Offline load inertia identification process, motor rotation number setting | revolution | 2 |
P3-6 | Maximum speed of inertia identification | At stop | Immediate | 300~2000 | Set the maximum allowed motor speed command in offline inertia identification mode. | rpm | 1000 |
P3-7 | rotation direction parameter | At stop | Immediate | 0~2 | 0: forward and backward rotation 1: forward-forward one-way rotation 2: backward-backward one-way rotation | - | 0 |
Gain adjustment
In order to optimize the response of the servo drive, it is necessary to adjust the servo gain. The servo gain is defined by several parameters. Therefore, the adjustment of the servo gain should take into account the relationship between the various parameters.
In general, high-rigidity machinery could improve the response performance by increasing the servo gain. However, for machines with low rigidity, when the servo gain is increased, vibration may occur, which in turn affects the increase in gain. Therefore, selecting a suitable servo gain parameter could achieve stable performance while achieving a high response.
The servo supports automatic gain adjustment and manual gain adjustment. It is recommended to use automatic gain adjustment.
Automatic Gain Tuning
Automatic gain tuning means that the servo drive automatically produces the matching gain parameters based on the setting of[P3-2] (rigidity level selection) to achieve fast response and stability.
Servo rigidity refers to the ability of the motor rotor to resist load inertia, that is, the self-locking ability of the motor rotor. The stronger the servo rigidity, the greater the position loop gain and speed loop gain, the faster the system response speed.
The setting range of [P3-2]is 0–31. The level 0 indicates he weakest stiffness and lowest gain and level 31 indicates the strongest stiffness and highest gain. The following table lists the stiffness levels for different load types.
Recommended Stiffness Level | Type of Load Mechanism |
---|---|
Level 4 to level 8 | Large-scale machinery |
Level 8 to level 15 | Applications with low stiffness such as belt |
Level 15 to level 20 | Applications with high stiffness such as ball screw and direct-connected motor |
When the function code [P3-3]is set to 0, the gain parameter is stored in the first gain by modifying the rigidity level.
During actual commissioning, it could be used for automatic rigidity level determination with the debug tool. It is used to select a suitable rigidity level as the operating parameter. The operation steps are as follows:
Confirm that the servo is in the ready state, the panel displays rdy, and the communication line is connected.
Open the debugging tool software, go to the run interface, set the corresponding parameters, and click "Servo On".
Click the "Forward" or "Reverse" button to confirm the travel range of the servo operation.
After the "auto tuning" lights up, click "auto tuning" to perform inertia recognition
After the auto gain tuning is completed, click "Save Inertia Value".
Click "Next" on the lower right to go to the parameter adjustment interface, and click "Parameter Measurement" to start parameter measurement.
After the parameter measurement is completed, the debug tool would pop up a confirmation window for parameter writing and saving.
Related function codes:
Code | Parameter Name | Property | Effective Time | Range | Function | Unit | Default |
---|---|---|---|---|---|---|---|
P3-3 | Auto-tuning mode selection | During running | Immediate | 0~2 | 0: Rigidity level auto-tuning mode. according to the rigidity level setting, position loop gain, speed loop gain, speed loop integration time constant, and torque filter parameter settings are automatically 1:Manual setting. users need to manually set the position loop gain, speed loop gain, speed loop integration time constant, and torque filter parameter settings. adjusted. 2:Online automaticparameter auto-tuning mode (not implemented yet). | - | 1 |
Manual Gain Adjustment
When the automatic gain adjustment result is not satisfactory, execute fine manual gain adjustment to achieve better result.
The servo system consists of three control loops, namely, position loop, speed loop, and current loop from external to internal. The following figure shows the basic control block diagram.
Figure 7-2 Basic control block diagram of manual gain adjustment
The most internal loop must have the highest response. The default current loop gain of the servo drive ensures the response, and need not be adjusted. You only need to adjust the position loop gain, speed loop gain and other auxiliary gains. When executing gain adjustment in the position control mode, increase the speed loop gain as well after increasing the position loop gain, and ensure the response of the position loop is lower than that of the speed loop to keep the system stable.
This servo drive has two sets of position loop and speed loop gain parameters. The user could switch between 2 sets of gain parameters according to the method corresponding to the setting value of the second gain switching mode in [P2-7]. Usually use external DI to switch.
Relevant parameters:
Code | Function |
---|---|
P2-1 | 1st position loop gain |
P2-2 | 1st speed loop gain |
P2-3 | 1st speed loop integral time constant |
P2-4 | 2nd position loop gain |
P2-5 | 2nd speed loop gain |
P2-6 | 2nd speed loop integral time constant |
P4-4 | Torque filter time constant |
Speed loop gain
Within the range of no vibration or noise in the mechanical system, the greater the speed loop gain setting value, the better the response of the servo system and the better the speed followability.
When noise occurs in the system, the speed loop gain should be reduced.
Relevant function code:
Code | Parameter Name | Property | Effective Time | Range | Function | Unit | Default |
---|---|---|---|---|---|---|---|
P2-2 | 1st speed loop gain | During running | Immediate | 0~35000 | Set the speed loop gain to determine the response of the speed loop. | 0.1Hz | 65 |
P2-5 | 2nd speed loop gain | During running | Immediate | 0~35000 | Set the speed loop gain to determine the response of the speed loop. | 0.1Hz | 65 |
Speed loop integral time constant
Speed loop integral time constant is used to eliminate speed loop deviation. Decreasing the integral time constant of the speed loop could increase the speed of the speed following, but the set value is too small would easily cause speed overshoot or vibration. when the time constant is set too large, the integral effect would be weakened, resulting in the deviation of the speed loop.
Relevant function code:
Code | Parameter Name | Property | Effective Time | Range | Function | Unit | Default |
---|---|---|---|---|---|---|---|
P2-3 | 1st speed loop integration time constant | During running | Immediate | 100~65535 | Set the speed loop integral constant. The smaller the set value, the stronger the integral effect. | 0.1ms | 1000 |
P2-5 | 2nd speed loop integration time constant | During running | Immediate | 100~65535 | Set the speed loop integral constant. The smaller the set value, the stronger the integral effect. | 0.1ms | 1000 |
Position loop gain
Determine the highest frequency that the position loop could follow changing position reference. Increasing this parameter could speed up the positioning time and improve the ability of the motor to resist external disturbances when it is stationary. However, if the value is set too high, the system may be unstable .
Relevant function code:
Code | Parameter Name | Property | Effective Time | Range | Function | Unit | Default |
---|---|---|---|---|---|---|---|
P2-1 | 1st position loop gain | During running | Immediate | 0~6200 | Set the position loop gain to determine the responsiveness of the position control system. | 0.1Hz | 400 |
P2-4 | 2nd position loop gain | During running | Immediate | 0~6200 | Set the position loop gain to determine the responsiveness of the position control system. | 0.1Hz | 400 |
Torque reference filter time
Choosing an appropriate torque filter time constant could suppress mechanical vibration. The larger the value of this parameter, the stronger the suppression ability, but if the setting value is too large, the response frequency of the current loop would decrease, causing vibration.
Relevant function code:
Code | Parameter Name | Property | Effective Time | Range | Function | Unit | Default |
---|---|---|---|---|---|---|---|
P4-4 | Torque filter time constant | During running | Immediate | 10~2500 | When [Auto-tuning mode] is set as 1, or 2, this parameter is set automatically | 0.01 | 50 |
Feedforward gain
Summary: During position control and full-closed control, the speed control reference required for the operation is calculated from the internal position reference, and get the speed feedforward by comparing speed reference with the position feedback to get the speed feedforward, which could reduce more position deviation and improve response.
additionally, the torque reference required for operation is calculated from the speed control reference, and the torque feed-forward obtained by comparing the torque reference with the speed feedback could improve the response of the speed control system.
Relevant function code(speed Feedforward Gain):
Code | Function | Description |
---|---|---|
P2-9 | Speed feedforward gain | When the speed feedforward filter is set to 50 (0.5 ms), gradually increase the speed feedforward gain to make the speed feedforward effective. The position deviation during operation under a certain speed state becomes smaller according to the value of the speed feedforward gain as the following formula. Position deviation [reference unit] = reference speed [unit / s] / position loop gain [1 / s] × (100-speed feedforward gain [%]) / 100 |
P2-10 | Speed feedforward filter |
Relevant function code (torque Feedforward Gain):
Code | Function | Description |
---|---|---|
P2-11 | Torque feedforward gain | Increase the torque feed-forward gain, because the position deviation during certain acceleration and deceleration could be close to 0, so under the ideal condition that the external disturbance torque does not operate, when driving under the trapezoidal speed model, the position deviation could be close to 0. In fact, there should be external disturbance torque, so the position deviation couldnot be zero. In addition, like the speed feedforward, although the greater the torque feedforward filter constant, the smaller the operating noise, but the greater the position deviation of the acceleration change point. |
P2-12 | Torque feedforward filter |
Vibration Suppression
Suppression of Mechanical Resonance
Resonance may occur at vicinity of the mechanical resonance frequency when the servo gain is increased, making the gain couldnot be increased further.
Mechanical resonance could be suppressed in the following two methods:
Torque reference filter
By setting the filter time constant so that it suppresses gain near the resonance frequency. The cutoff frequency of the torque reference filter could be calculated using the following formula. Filter cutoff frequency (Hz).
fc = 1 / [2π × setting parameter value × 0.001]
Notch:
The notch reduces the gain at certain frequencies to suppress mechanical resonance. After resonance is suppressed with correct setting of the notch, attempt to increase the gain gradually. The following figure shows the resonance
suppression principle of the notch.
Figure 7-3 Resonance suppression principle of the notch
There are 2 sets of notches in the servo drive. Each notch has 3 parameters, which are the frequency, width level and depth level.
Notch Width Level
The notch width level indicates the ratio of the notch width to the notch center frequency:
Where:
: Notch center frequency, that is, mechanical resonance frequency
: Notch width, indicating the ratio of -3dB attenuation frequency band with respective
to the notch center frequency
The corresponding relationship is shown in the figure below. Generally keep the default value of 4.
(b)Notch Depth Level
The notch depth level indicates the ratio of input to output at center frequency.
The input is completely shut with depth level 0 and fully received with depth level 100
at the center frequency. A smaller notch depth level indicates larger notch depth, which
produces stronger resonance suppression and makes the system instable. Pay attention
to this during use. The specific relationship is shown below:
Figure 7-4 Frequency characteristic curve of notch
Relevant function code:
Code | Parameter Name | Property | Effective Time | Range | Function | Unit | Default |
---|---|---|---|---|---|---|---|
P4-5 | First notch frequency | During running | Immediate | 250~5000 | Set the center frequency of the 1st notch filter. When the setting value is 5000, the function of the notch filter is disabled. | Hz | 300 |
P4-6 | First notch depth level | During running | Immediate | 0~100 | 0: all blocked 100: all passed | - | 100 |
P4-7 | First notch width level | During running | Immediate | 0~12 | 0: 0.5 x bandwidth 4: 1x bandwidth 8: 2 times the bandwidth 12: 4 times the bandwidth | - | 4 |
P4-8 | Second notch frequency | During running | Immediate | 250~5000 | Set the center frequency of the second notch filter. When the setting value is 5000, the function of the notch filter is disabled. | Hz | 500 |
P4-9 | Second notch depth level | During running | Immediate | 0~100 | 0: all blocked 100: all passed | - | 100 |
P4-10 | Second notch width level | During running | Immediate | 0~12 | 0: 0.5 x the bandwidth 4: 1x bandwidth 8: 2 times the bandwidth 12: 4 times the bandwidth | - | 4 |