07 Adjustments

Version 12.1 by Joey on 2022/06/11 15:30

Overview

The servo drive needs to make the motor faithfully operate in accordance with the instructions issued by the upper controller without delay as much as possible. In order to make the motor action closer to the instruction and maximize the mechanical performance, gain adjustment is required. The process of gain adjustment is shown in Figure 7-1.

image-20220608174118-1.png

Figure 7-1 Gain adjustment process

The servo gain is composed of multiple sets of parameters such as position loop, speed loop, filter, load inertia ratio, etc., and they affect each other. In the process of setting the servo gain, the balance between the setting values of each parameter must be considered.

Note: Before adjusting the gain, it is recommended to perform a jog trial run first to ensure that the servo motor can operate normally! The gain adjustment process description is shown in the table below.

Gain adjustment processFunctionDetailed chapter
1Online inertia recognitionUse the host computer debugging platform software matched with the drive to automatically identify the load inertia ratio. With its own inertia identification function, the drive automatically calculates the load inertia ratio.7.2
2Automatic gain adjustmentOn the premise of setting the inertia ratio correctly, the drive automatically adjusts a set of matching gain parameters.7.3.1
3Manual gain adjustmentBasic gainOn the basis of automatic gain adjustment, if the expected effect is not achieved, manually fine-tune the gain to optimize the effect.7.3.2
Feedforward gainThe feedforward function is enabled to improve the followability.7.3.3
4Vibration suppressionMechanical resonanceThe notch filter function is enabled to suppress mechanical resonance.7.4.1

Table 7-1 Description of gain adjustment process

Inertia recognition

Load inertia ratio P03-01 refers to:

image-20220611152902-1.png

The load inertia ratio is an important parameter of the servo system, and setting of the load inertia ratio correctly helps to quickly complete the debugging. The load inertia ratio could be set manually, and online load inertia recognition could be performed through the host computer debugging software.

image-20220611152918-2.png

Before performing online load inertia recognition, the following conditions should be met:

The maximum speed of the motor should be greater than 300rpm;

The actual load inertia ratio is between 0.00 and 100.00;

The load torque is relatively stable, and the load cannot change drastically during the measurement process;

The backlash of the load transmission mechanism is within a certain range;

The motor's runable stroke should meet two requirements:

There is a movable stroke of more than 1 turn in both forward and reverse directions between the mechanical limit switches.

Before performing online inertia recognition, please make sure that the limit switch has been installed on the machine, and that the motor has a movable stroke of more than 1 turn each in the forward and reverse directions to prevent overtravel during the inertia recognition process and cause accidents.

Meet the requirement of inertia recognition turns P03-05.

Make sure that the motor's runable stroke at the stop position is greater than the set value of the number of inertia recognition circles P03-05, otherwise the maximum speed of inertia recognition P03-06 should be appropriately reduced.

During the automatic load inertia recognition process, if vibration occurs, the load inertia identification should be stopped immediately.

The related function codes are shown in the table below.

Function codeName

Setting method

Effective time

Default valueRangeDefinitionUnit
P03-01Load inertia ratio

Operation setting

Effective immediately

200100 to 10000Set load inertia ratio, 0.00 to 100.00 times0.01
P03-05

Inertia recognition turns

Shutdown setting

Effective immediately

21 to 20Offline load inertia recognition process, motor rotation number settingcircle
P03-06

Inertia recognition maximum speed

Shutdown setting

Effective immediately

1000300 to 2000

Set the allowable maximum motor speed instruction in offline inertia recognition mode.

The faster the speed during inertia recognition, the more accurate the recognition result will be. Usually, you can keep the default value.

rpm
P03-07

Parameter recognition rotation direction

Shutdown setting

Effective immediately

00 to 2

0: Forward and reverse reciprocating rotation

1: Forward one-way rotation

2: Reverse one-way rotation

-

Table 7-2 Related parameters of gain adjustment

Gain adjustment

In order to optimize the responsiveness of the servo drive, the servo gain set in the servo drive needs to be adjusted. Servo gain needs to set multiple parameter combinations, which will affect each other. Therefore, the adjustment of servo gain must consider the relationship between each parameter.

Under normal circumstances, high-rigidity machinery can improve the response performance by increasing the servo gain. But for machines with lower rigidity, when the servo gain is increased, vibration may occur, and then affects the increase in gain. Therefore, selecting appropriate servo gain parameters can achieve higher response and stable performance.

The servo supports automatic gain adjustment and manual gain adjustment. It is recommended to use automatic gain adjustment first.

Automatic gain adjustment

Automatic gain adjustment means that through the rigidity level selection function P03-02, the servo drive will automatically generate a set of matching gain parameters to meet the requirements of rapidity and stability.

The rigidity of the servo 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 larger the corresponding position loop gain and speed loop gain, and the faster the response speed of the system.

image-20220611152630-1.png
Before adjusting the rigidity grade, set the appropriate load inertia ratio P03-01 correctly.

The value range of the rigidity grade is between 0 and 31. Grade 0 corresponds to the weakest rigidity and minimum gain, and grade 31 corresponds to the strongest rigidity and maximum gain. According to different load types, the values in the table below are for reference.

Rigidity gradeLoad mechanism type
Grade 4 to 8Some large machinery
Grade 8 to 15Low rigidity applications such as belts
Grade 15 to 20High rigidity applications such as ball screw and direct connection

Table 7-3 Experience reference of rigidity grade

When the function code P03-03 is set to 0, the gain parameters are stored in the first gain by modifying the rigidity grade.

When debugging with the host computer debugging software, automatic rigidity level measurement can be carried out, which is used to select a set of appropriate rigidity grades as operating parameters. The operation steps are as follows:

Step1 Confirm that the servo is in the ready state, the panel displays “rdy”, and the communication line is connected;

Step2 Open the host computer debugging software, enter the trial run interface, set the corresponding parameters, and click "Servo on";

Step3 Click the "forward rotation" or "reverse rotation" button to confirm the travel range of the servo operation;

Step4 After the "start recognition" of inertia recognition lights up, click "start recognition" to perform inertia recognition, and the load inertia can be measured.

Step5 After the inertia recognition test is completed, click "Save Inertia Value";

Step6 Click "Next" at the bottom right to go to the parameter adjustment interface, and click "Parameter measurement" to start parameter measurement.

Step7 After the parameter measurement is completed, the host computer debugging software will pop up a confirmation window for parameter writing and saving.

image-20220611152634-2.png

✎There may be a short mechanical whistling sound during the test. Generally, the servo will automatically stop the test. If it does not stop automatically or in other abnormal situations, you can click the "Servo Off" button on the interface to turn off the servo, or power off the machine!

✎For the detailed operation of the host computer debugging software, please refer to "Wecon Servo Debugging Platform User Manual".

Function codeName

Setting method

Effective time

Default valueRangeDefinitionUnit
P03-03Self-adjusting mode selection

Operation setting

Effective immediately

00 to 2

0: Rigidity grade self-adjusting mode. Position loop gain, speed loop gain, speed loop integral time constant, torque filter parameter settings are automatically adjusted according to the rigidity grade setting.

1: Manual setting; you need to manually set the position loop gain, speed loop gain, speed loop integral time constant, torque filter parameter setting

2: Online automatic parameter self-adjusting mode (Not implemented yet)

-

Table 7-4 Details of self-adjusting mode selection parameters

Manual gain adjustment

When the servo automatic gain adjustment fails to achieve the desired result, you can manually fine-tune the gain to achieve better results.

The servo system consists of three control loops, from the outside to the inside are the position loop, the speed loop and the current loop. The basic control block diagram is shown as below.

image-20220608174209-2.png

Figure 7-2 Basic block diagram of servo loop gain

The more the inner loop is, the higher the responsiveness is required. Failure to comply with this principle may lead to system instability!

The default current loop gain of the servo drive has ensured sufficient responsiveness. Generally, no adjustment is required. Only the position loop gain, speed loop gain and other auxiliary gains need to be adjusted.

This servo drive has two sets of gain parameters for position loop and speed loop. The user can switch the two sets of gain parameters according to the setting value of P02-07 the 2nd gain switching mode. The parameters are are below.

Function codeName
P02-01The 1st position loop gain
P02-02The 1st speed loop gain
P02-03The 1st speed loop integral time constant
P02-04The 2nd position loop gain
P02-05The 2nd speed loop gain
P02-06The 2nd speed loop integral time constant
P04-04Torque filter time constant

(1) Speed loop gain

In the case of no vibration or noise in the mechanical system, the larger the speed loop gain setting value, the better the response of servo system and the better the speed followability. When noise occurs in the system, reduce the speed loop gain. The related function codes are shown as below.

Function codeName

Setting method

Effective time

Default valueRangeDefinitionUnit
P02-021st speed loop gain

Operation setting

Effective immediately

650 to 35000Set speed loop proportional gain to determine the responsiveness of speed loop.0.1Hz
P02-052nd speed loop gain

Operation setting

Effective immediately

650 to 35000Set speed loop proportional gain to determine the responsiveness of speed loop.0.1Hz

Table 7-5 Speed loop gain parameters

(2) Speed loop integral time constant

The speed loop integral time constant is used to eliminate the speed loop deviation. Decreasing the integral time constant of the speed loop can increase the speed of the speed following. If the set value is too small, is will easily cause speed overshoot or vibration. When the time constant is set too large, the integral action will be weakened, resulting in a deviation of the speed loop. Related function codes are shown as below.

Function codeName

Setting method

Effective time

Default valueRangeDefinitionUnit
P02-03

1st speed loop integral time constant

Operation setting

Effective immediately

1000100 to 65535Set the speed loop integral constant. The smaller the set value, the stronger the integral effect.

0.1

ms

P02-06

2nd speed loop integral time constant

Operation setting

Effective immediately

10000 to 65535Set the speed loop integral constant. The smaller the set value, the stronger the integral effect.

0.1

ms

Table 7-6 Speed loop integral time constant parameters

(3) Position loop gain

Determine the highest frequency of the position instruction that the position loop can follow the change. Increasing this parameter can speed up the positioning time and improve the ability of the motor to resist external disturbances when the motor is stationary. However, if the setting value is too large, the system may be unstable and oscillate. The related function codes are shown as below.

Function codeName

Setting method

Effective time

Default valueRangeDefinitionUnit
P02-011st position loop gain

Operation setting

Effective immediately

4000 to 6200Set position loop proportional gain to determine the responsiveness of position control system.0.1Hz
P02-042nd position loop gain

Operation setting

Effective immediately

350 to 6200Set position loop proportional gain to determine the responsiveness of position control system.0.1Hz

Table 7-7 Position loop gain parameters

(4) Torque instruction filter time

Selecting an appropriate torque filter time constant could suppress mechanical resonance. The larger the value of this parameter, the stronger the suppression ability. If the setting value is too large, it will decrease the current loop response frequency and cause needle movement. The related function codes are shown as below.

Function codeName

Setting method

Effective time

Default valueDefinitionUnit
P04-04Torque filter time constant

Operation setting

Effective immediately

50This parameter is automatically set when “self-adjustment mode selection” is selected as 1 or 20.01ms

Table 7-8 Details of torque filter time constant parameters

Feedforward gain

Speed feedforward could be used in position control mode and full closed-loop function. It could improve the response to the speed instruction and reduce the position deviation with fixed speed.

Speed feedforward parameters are shown in Table 7-9. Torque feedforward parameters are shown in Table 7-10.

Torque feedforward could improve the response to the torque instruction and reduce the position deviation with fixed acceleration and deceleration.

Function codeNameAdjustment description
P02-09Speed feedforward gain

When the speed feedforward filter is set to 50 (0.5 ms), gradually increase the speed feedforward gain, and the speed feedforward will take effect. The position deviation during operation at a certain speed will be reduced according to the value of speed feedforward gain as the formula below.

Position deviation (instruction unit) = instruction speed[instruction unit/s]÷position loop gain [1/s]×(100-speed feedforward gain [%])÷100

P02-10Speed feedforward filtering time constant

Table 7-9 Speed feedforward parameters

Function codeNameAdjustment description
P02-11Torque feedforward gainIncrease the torque feedforward gain because the position deviation can be close to 0 during certain acceleration and deceleration. Under the ideal condition of external disturbance torque not operating, when driving in the trapezoidal speed model, the position deviation can be close to 0 in the entire action interval. In fact, there must be external disturbance torque, so the position deviation cannot be zero. In addition, like the speed feedforward, although the larger the constant of the torque feedforward filter, the smaller the action sound, but the greater the position deviation of the acceleration change point.
P02-12Torque feedforward filtering time constant

Table 7-10 Torque feedforward parameters

Mechanical resonance suppression

Mechanical resonance suppression methods

When the mechanical rigidity is low, vibration and noise may occur due to resonance caused by shaft twisting, and it may not be possible to increase the gain setting. In this case, by using a notch filter to reduce the gain at a specific frequency, after resonance is effectively suppressed, you can continue to increase the servo gain. There are 2 methods to suppress mechanical resonance.

(1) Torque instruction filter

By setting the filter time constant, the torque instruction is attenuated in the high frequency range above the cutoff frequency, so as to achieve the expectation of suppressing mechanical resonance. The cut-off frequency of the torque instruction filter could be calculated by the following formula:

https://docs.we-con.com.cn/bin/download/Servo/2.%20User%20Manual/06%20VD2%20SA%20Series%20Servo%20Drives%20Manual%20%28Full%20V1.1%29/07%20Adjustments/WebHome/40.png?rev=1.1

(2) Notch filter

The notch filter can achieve the expectation of suppressing mechanical resonance by reducing the gain at a specific frequency. When setting the notch filter correctly, the vibration can be effectively suppressed. You can try to increase the servo gain. The principle of the notch filter is shown in Figure 7-3.

Notch filter

The VD2 series servo drives have 2 sets of notch filters, each of which has 3 parameters, namely notch frequency, width grade and depth grade.

(1) Width grade of notch filter

The notch width grade is used to express the ratio of the notch width to the center frequency of the notch:

https://docs.we-con.com.cn/bin/download/Servo/2.%20User%20Manual/06%20VD2%20SA%20Series%20Servo%20Drives%20Manual%20%28Full%20V1.1%29/07%20Adjustments/WebHome/41.png?rev=1.1

In formula (7-1), https://docs.we-con.com.cn/bin/download/Servo/2.%20User%20Manual/06%20VD2%20SA%20Series%20Servo%20Drives%20Manual%20%28Full%20V1.1%29/07%20Adjustments/WebHome/42.png?rev=1.1 is the center frequency of notch filter, that is, the mechanical resonance frequency; https://docs.we-con.com.cn/bin/download/Servo/2.%20User%20Manual/06%20VD2%20SA%20Series%20Servo%20Drives%20Manual%20%28Full%20V1.1%29/07%20Adjustments/WebHome/43.png?rev=1.1 is the width of notch filter, which represents the frequency bandwidth with an amplitude attenuation rate of -3dB relative to the center frequency of notch filter.

(2) Depth grade of notch filter

The depth grade of notch filter represents the ratio relationship between input and output at center frequency.

When the notch filter depth grade is 0, the input is completely suppressed at center frequency. When the notch filter depth grade is 100, the input is completely passable at center frequency. Therefore, the smaller the the notch filter depth grade is set, the deeper the the notch filter depth, and the stronger the suppression of mechanical resonance. But the system may be unstable, you should pay attention to it when using it. The specific relationship is shown in Figure 7-4.

image-20220608174259-3.png

Figure 7-3 Notch characteristics, notch width, and notch depth

https://docs.we-con.com.cn/bin/download/Servo/2.%20User%20Manual/06%20VD2%20SA%20Series%20Servo%20Drives%20Manual%20%28Full%20V1.1%29/07%20Adjustments/WebHome/44.png?rev=1.1

Figure 7-4 Frequency characteristics of notch filter

Function codeName

Setting method

Effective time

Default valueRangeDefinitionUnit
P04-051st notch filter frequency

Operation setting

Effective immediately

300250 to 5000Set the center frequency of the 1st notch filter. When the set value is 5000, the function of notch filter is invalid.Hz
P04-061st notch filter depth

Operation setting

Effective immediately

1000 to 100

0: all truncated

100: all passed

-
P04-071st notch filter width

Operation setting

Effective immediately

40 to 12

0: 0.5 times the bandwidth

4: 1 times the bandwidth

8: 2 times the bandwidth

12: 4 times the bandwidth

-
P04-082nd notch filter frequency

Operation setting

Effective immediately

500250 to 5000Set the center frequency of the 2nd notch filter. When the set value is 5000, the function of the notch filter is invalid.Hz
P04-092nd notch filter depth

Operation setting

Effective immediately

1000 to 100

0: all truncated

100: all passed

-
P04-102nd notch filter width

Operation setting

Effective immediately

40 to 12

0: 0.5 times the bandwidth

4: 1 times the bandwidth

8: 2 times the bandwidth

12: 4 times the bandwidth

-

Table 7-11 Notch filter function code parameters