07 Adjustment

Last modified by Wecon on 2025/09/03 21:03

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.

7.Adjustment_html_e1e204ad6845e811.jpg

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 ProcedureFunction

Section to Refer

1

Inertia auto-tuning

onlineUse the debugging tool(running in pc) to perform inertia identification. self-inertia identification function, the drive automatically calculates the load inertia ratio7.2.1
2Automatic gain adjustmentThe drive automatically gives the gain parameters to match the inertia ratio (it should be set correctly).7.3.1
3

Manual gain

adjustment

Basic gainIf the automatic gain adjustment result is not satisfactory, perform fine manual adjustment.7.3.2
Feedforward gainEnable 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:

7.Adjustment_html_938143c035655a1c.jpg

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:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P3-1Load inertia ratioAt stopImmediate0~10000Set load inertia ratio, 0.00 - 100.00 times0.01500
P3-5Number of inertia identification cyclesAt stopImmediate1~2Offline load inertia identification process, motor rotation number settingrevolution2
P3-6Maximum speed of inertia identificationAt stopImmediate300~2000Set the maximum allowed motor speed command in offline inertia identification mode.rpm1000
P3-7rotation direction parameterAt stopImmediate0~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.

Information

✎Note: before adjusting the rigidity level, set the proper load inertia ratio [P3-1] correctly!

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 LevelType of Load Mechanism
Level 4 to level 8Large-scale machinery
Level 8 to level 15Applications with low stiffness such as belt
Level 15 to level 20Applications 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.

Information

✎Note:  There may be a mechanical noise during the test. Generally, the servo would automatically stop the test. If it does not automatically stop or other abnormal conditions occur, you could click the "servo off" button on the interface to turn off the servo or power off the machine! 

After the parameter measurement is completed, the debug tool would pop up a confirmation window for parameter writing and saving.

Information

✎Note: For detailed operation of the debug tool, please refer to the "Wecon Servo Debugging Platform User Manual".

Related function codes:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P3-3Auto-tuning mode selectionDuring runningImmediate0~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.

7.Adjustment_html_eb0d87cc7f324007.jpg

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:

CodeFunction
P2-11st position loop gain
P2-21st speed loop gain
P2-31st speed loop integral time constant
P2-42nd position loop gain
P2-52nd speed loop gain
P2-62nd speed loop integral time constant
P4-4Torque 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:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P2-21st speed loop gainDuring runningImmediate0~35000Set the speed loop gain to determine the response of the speed loop.0.1Hz65
P2-52nd speed loop gainDuring runningImmediate0~35000Set the speed loop gain to determine the response of the speed loop.0.1Hz65

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:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P2-31st speed loop integration time constantDuring runningImmediate100~65535Set the speed loop integral constant. The smaller the set value, the stronger the integral effect.0.1ms1000
P2-52nd speed loop integration time constantDuring runningImmediate100~65535Set the speed loop integral constant. The smaller the set value, the stronger the integral effect.0.1ms1000

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:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P2-11st position loop gainDuring runningImmediate0~6200Set the position loop gain to determine the responsiveness of the position control system.0.1Hz400
P2-42nd position loop gainDuring runningImmediate0~6200Set the position loop gain to determine the responsiveness of the position control system.0.1Hz400

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:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P4-4Torque filter time constantDuring runningImmediate10~2500When [Auto-tuning mode] is set as 1, or 2, this parameter is set automatically0.0150

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):

CodeFunctionDescription
P2-9Speed 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-10Speed feedforward filter

Relevant function code (torque Feedforward Gain):

CodeFunctionDescription
P2-11Torque feedforward gainIncrease 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-12Torque 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.

7.Adjustment_html_92cf82aa9a49d472.jpg

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:

7.Adjustment_html_1b19e9b7537f3ef1.jpg

Where:

7.Adjustment_html_c92ab66212ffef9c.jpg Notch center frequency, that is, mechanical resonance frequency

7.Adjustment_html_3664b099b2061525.jpg 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:

7.Adjustment_html_a2dda2d475a38298.jpg

Figure 7-4 Frequency characteristic curve of notch

Relevant function code:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P4-5First notch frequencyDuring runningImmediate250~5000

Set the center frequency of the 1st notch filter.

When the setting value is 5000, the function of the notch filter is disabled.

Hz300
P4-6First notch depth levelDuring runningImmediate0~100

0: all blocked

100: all passed

-100
P4-7First notch width levelDuring runningImmediate0~12

0: 0.5 x bandwidth

4: 1x bandwidth

8: 2 times the bandwidth

12: 4 times the bandwidth

-4
P4-8Second notch frequencyDuring runningImmediate250~5000Set the center frequency of the second notch filter. When the setting value is 5000, the function of the notch filter is disabled.Hz500
P4-9Second notch depth levelDuring runningImmediate0~100

0: all blocked

100: all passed

-100
P4-10Second notch width levelDuring runningImmediate0~12

0: 0.5 x the bandwidth

4: 1x bandwidth

8: 2 times the bandwidth

12: 4 times the bandwidth

-4