6.2 Speed Control

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

Speed control refers to control the speed of the machine through the speed reference. Through internal digital setting, analog voltage or communication, the servo drive could achieve fast and precise control of the mechanical speed. Therefore, the speed control mode is mainly used to control the rotation speed, or use the host controller to realize the position control, and the host controller output is used as the speed reference, such as analog engraving and milling machine.

The speed control block diagram is as follows:

1617847349362-165.png

                                                                                          Figure1 speed control diagram

Set the parameter P0-1 to 2 through the panel or debugging tool on PC to make the servo drive work in speed control mode.

Relevant function code:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P0-1Control mode (default setting)At stopPower-on again1~10

1: Position control mode

2: Speed control mode

3: Torque control mode

-1

Speed Reference Input Setting

6.2 Speed Control Mode_html_a8629780ec434b3f.jpg

Speed Reference Source

There are two sources of speed reference in speed control mode, which could be set by [P1-1].

Relevant function code:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P1-1Speed command sourceAt stopImmediate0~1

0: Internal speed command (set in P1-3).

1: AI_1 analog input.

-0

Internal speed reference

Set the speed value through the function code [P1-2] as the speed reference.

Relevant function codes:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P1-2Internal speed commandDuring runningImmediate-3000~3000Internal speed commandrpm100

Analog voltage input as a reference

Take the analog voltage signal output by the host controller or other equipments, processed as a speed reference.

Analog voltage setting method:

6.2 Speed Control Mode_html_d0878df502c2834c.jpg

Figure 2 flowchart of setting speed reference by analog voltage

Glossary:

Zero drift: Value of the servo drive sampling voltage relative to GND when the input

voltage of the analog channel is zero.

Offset: Input voltage value of the analog channel when the sampling voltage is zero after

zero drift correction.

Dead zone: Input voltage range of the analog channel when the sampling voltage is zero.

6.2 Speed Control Mode_html_8240b9b6679fce55.jpg

                                                               Figure 3 Analog signal after-offset

After completing the correct settings, you could view the input voltage values of AI_1 and AI_2 through U0-21 and U0-22

CodeFunctionUnitFormat
U0-21AI1 input voltage valueVdecimal(3 decimal digits)
U0-22AI2 input voltage valueVdecimal(3 decimal digits)

Relevant function codes:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P5-1AI_1 input biasDuring runningImmediate-5000~5000Set AI_1 channel analog offset valuemv0
P5-2AI_1 Input filter constantDuring runningImmediate0~65535AI_1 channel input first-order low-pass filtering time constantms200
P5-3AI_1 dead zoneDuring runningImmediate0~1000Set AI_1 channel analog dead zone valuemv20
P5-4AI_1 zero driftDuring runningImmediate-500~500Automatic calibration zero drift inside the driver.mv0
P5-5AI_2 input biasDuring runningImmediate-5000~5000Set AI_2 channel analog offset valuemv0
P5-6AI_2 Input filter constantDuring runningImmediate0~60000AI_2 channel input first-order low-pass filtering time constantms200
P5-7AI_2 dead zoneDuring runningImmediate0~1000Set AI_1 channel analog dead zone valuemv20
P5-8AI_2 zero driftDuring runningImmediate-500~500Automatic calibration zero drift value inside the drivermv0
P5-9Analog 10V for speed valueAt stopImmediate1000~4500Set the speed value corresponding to analog 10Vrpm3000
P5-10Analog 10V for torque valueAt stopImmediate0~3000Set the torque value corresponding to analog 10V0.1%1000

Acceleration and deceleration time setting

The acceleration/deceleration time setting refers to convert a speed command with a relatively high acceleration into a speed command with a relatively gentle acceleration, so as to achieve the purpose of controlling the acceleration.

In the speed control mode, excessive acceleration of the speed command would cause the vibration. At this time, increase the acceleration or deceleration time to achieve a smooth speed change of the motor and avoid mechanical damage caused by the above situation.

6.2 Speed Control Mode_html_c48a78e9d3b0a51c.jpg

                                     Figure 4 diagram of acc. and dec. time

Actual acceleration time T1 = speed reference / 1000 * acceleration time

Actual deceleration time T2 = speed reference / 1000 * deceleration time

Relevant function codes:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P1-3Acc. timeDuring runningImmediate0~65535Acceleration time from 0 to 1000rpm in speed command modems50
P1-4Dec. timeDuring runningImmediate0~65535Deceleration time from 1000 to 0 rpm in speed command modems50

Speed Reference Limitation

The servo drive could display the value of the speed reference in speed mode.

Sources of speed instruction limits include:

[P1-10]: Set the maximum speed limit value

[P1-12]: Set forward speed limit value

[P1-13]: Set the reverse speed limit value

Maximum motor speed: determined according to the model of the motor

| The amplitude of the forward speed reference | ≤ min {Max. motor speed, P1-10, P1-12}

| The amplitude of the negative speed reference | ≤ min {Max. speed of the motor, P1-10, P1-13}

Relevant function codes:

CodeParameter NameProperty

Effective  Time

RangeFunctionUnitDefault
P1-10Max speed thresholdDuring runningImmediate0~5000Set the maximum speed limit value.rpm3600
P1-12Forward speed thresholdDuring runningImmediate0~3000Set forward speed limitrpm3000
P1-13Reverse speed thresholdDuring runningImmediate0~3000Set reverse speed limitrpm3000

6.3.4 Zero Speed Clamp Function

Zero speed clamping function means that when the zero speed clamping signal (ZCLAMP) is valid, when the absolute value of the speed reference is lower than the zero speed clamping speed value, the servo motor is in the locked state. At this time, the servo drive is in position lock mode, and the speed reference is invalid.

Relevant function codes:

CodeParameter NameProperty

Effective Time

RangeFunctionUnitDefault
P1-21Zero speed clamp function selectionDuring runningImmediate0~3

Set the zero speed clamp function. In speed mode:

0: Force speed to 0.

1: Force the speed to 0, and keep the position locked when the actual speed is less than [P1.22].

2: When the speed reference is less than [P1-22], force the speed to 0 and keep the position locked.

3: Invalid, ignore the zero speed clamp input.

-0
P1-22Speed threshold for zeroDuring runningImmediate0~1000Set the speed threshold of the zero speed clamp functionrpm20

6.2 Speed Control Mode_html_61e92ce6c2ee6f6d.jpg

Figure 5 Zero Speed Clamp waveform

Speed-relevant DO Signals

Different DO signals are output to the host controller based on comparison between the speed feedback after filter and different thresholds. We need to assign different function for the DO terminals and set the valid logic.

Motor Rotation DO Signal

After the speed reference is filtered, the absolute value of the actual speed of the servo motor reaches [P5-16] (rotation detection speed threshold), then the motor is considered to be rotating. At this time, the DO terminal of the servo drive could output a rotation detection signal. Conversely, when the actual rotation speed of the servo motor does not reach [P5-16], it is considered that the motor is not rotating.

6.2 Speed Control Mode_html_8705095c118de5ed.jpg

Figure 6-14 motor rotation DO signal

Relevant function codes:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P5-16Rotation detection speed thresholdDuring runningImmediate0~1000Set motor rotation signal judgment thresholdrpm20
P6-26DO_1 function selectionDuring runningImmediate128~142132-TGON rotation detection-131

Zero speed signal

The absolute value of the actual speed of the servo motor is less than a certain threshold [P5-19], it is considered that the servo motor stops rotating, and the DO terminal of the servo drive could output a zero speed signal at this time. Conversely, if the absolute value of the actual speed of the servo motor is not less than this value, it is considered that the motor is not at a standstill and the zero speed signal is invalid.

6.2 Speed Control Mode_html_3ac63328ba7bf6a9.jpg

Figure 6 zero speed signal waveform

Relevant function codes:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P5-19Zero speed output signal thresholdDuring runningImmediate0~6000Zero speed output signal thresholdrpm10
P7-18DO_1 function selectionDuring runningPower on again128~142133-ZSP zero speed signal-132

Speed Consistent DO Signal

In speed control, when the absolute value of the difference between the motor speed after filter and the speed reference satisfies the setting of [P5-17], the actual motor speed is considered to reach the speed reference. At this moment, the servo drive outputs the speed consistent signal. When the absolute value of the difference between the motor speed after filter and the speed reference exceeds the setting of [P5-17], the speed consistent signal is inactive.

6.2 Speed Control Mode_html_3e24dd8a30cb7a80.jpg

Figure 7 Speed Consistent Waveform

Relevant function codes:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P5-17Speed consistent signal thresholdDuring runningImmediate0~100Set the speed consistent signal thresholdrpm10
P7-18DO_1 function selection During runningImmediate128~142135-V-COIN speed consistent-135

Speed Reached DO Signal

When the absolute value of the motor speed after filter exceeds the setting of[P4-16],the motor speed is considered to reach the desired value. At this moment, the servo drive outputs the speed reached signal. When the absolute value of the motor speed after filter is smaller than or equal to the setting of[P4-16], the speed reached signal is inactive.

6.2 Speed Control Mode_html_cb697a599b98a07.jpg

Figure 6-17 Speed reached signal waveform

Relevant function codes:

CodeParameter NameProperty

Effective

Time

RangeFunctionUnitDefault
P5-18Speed approaching signal thresholdDuring runningImmediate10~6000Speed reached signal threshholdrpm100
P7-18DO_1 function selection During runningPower on again128~142136-V-NEAR speed near -136