Wiki source code of Servo Guide

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

Show last authors
1 = **Troubleshooting** =
2
3 == ER21 alarm ==
4
5 * Question: RE21 Alarm.
6 * Solution: include two situations:
7 ** The customer site is indeed under-voltage power supply,
8 ** AC220V wiring :The possible wiring is L1 and L2, which are replaced by L1 and L3.
9
10 == ER30/ER34/ER36/ER37 alarm ==
11
12 * Problem: When first power-on or motor runs half-turn,then appear alarm ER30/ER34/ER36/ER37.
13 * Solution: The phase sequence of the power line UVW is wrong, it may be the customer has connected it wrong,or it may be that WECON line sequence is marked wrong. Remove the motor from machine and test the phase sequence.
14
15 == ER37 alarm ==
16
17 * Problem: When first time to power on servo and run about half circle,then the alarm ER37 appear.
18 * Solution: In addition to the wrong phase sequence of the power line UVW, or the drive and the motor can not match.
19
20 == ER23 alarm ==
21
22 * Problem: ER23 alarms.The built-in resistance of servo is possible to be broken
23 * Solution: User could buy an external braking resistor with corresponding power.(such as 200W 50 ohm). The power of braking resistor could be calculate with power calculation tool of WECON servo brake resistor as below link.
24 ** [[http:~~/~~/docs.we-con.com.cn/wiki/servo/view/6.Software/>>url:http://docs.we-con.com.cn/wiki/servo/view/6.Software/]]
25
26 **How to connect a external braking resistor?**
27
28 * Disconnect the short wire between C-D first
29 * Then connect the external braking resistor between P+ and C.
30
31 == ER27 and ER31 alarm ==
32
33 * Problem: ER27 and ER31 alarm.
34 * Solution: ER27: Encoder cable does not connect well.ER31:Power cable do not connect well.Check whether the lines are connected properly.If the alarm still occurs, replace the motor.
35
36 == ER26 alarm ==
37
38 Problem: ER26 alarms.
39
40 Solution: Motor type error. Please check whether the servo drive supports this motor
41
42 = **Configuration** =
43
44 == Modify P0-16 in panel ==
45
46 In servo panel, we want to set P0-16=200.
47
48 (% class="box infomessage" %)
49 (((
50 **✎Note: **VD1 is 5 digits, VD2 has 8 digits. P0-16 default is 10000.please turn to the previous page and change the 5th digit to 0, and change to 200 on the first page.
51 )))
52
53 == Use and share of internal multi-position and speed mixed mode ==
54
55 (% class="wikigeneratedid" %)
56 **(only Servo firmware V1.10 and above can support)**
57
58 * p0-1 set 4 speed and position mixed mode
59 * p1-1 set 0 to go internal speed
60 * p1-2 set speed
61 * p1-6 set 1 to go to the internal position
62 * p6-5 set to 17 switch mode signal
63 * p6-7 set 1 virtual switching signal
64 * p6-8 set 20 internal multi-position enable signal
65 * p6-10 set 1  
66 * p7-1 set 1 internal multi-position cyclic operation
67 * p7-2 p7-3 Set the start section and end section
68 * p7-5 Set absolute and relative position
69 * p7-9 p7-10 set position pulse and speed
70 * p7-12 Set multiple position waiting time
71 * Then p6-4 set 1 servo enable (DI2is valid as internal speed mode)
72 * p13-2 is the switch mode switch, set 1 (DI2 invalid as the internal multi-segment position mode)
73
74 == Multi-turn servos and multiple simultaneous communication timeout problems ==
75
76 **Problem:** When the customer's site 5V communicates with two multi-turn absolute value servo by rs485 at the same time, the position address in the encoder circle of the servos cannot be read in real time, and the communication of a single servo is normal.
77
78 **Solution:** After testing,Set more retry times in SD2598,then this problem can be solved.
79
80 (% style="text-align:center" %)
81 [[image:1637223482515-339.png||height="271" width="800" class="img-thumbnail"]]
82
83 == Servo rigidity ==
84
85 **Problem:** Many times we will encounter insufficient servo rigidity and motor shaking, especially in powder packaging, labeling, discs record and other equipment. There are great requirements for the rigidity of the servo. The following parameters are specific to our servos. It is a good fix for our rigidity problem.
86
87 **solve:**
88
89 * P3-2 load rigidity level selection, this parameter is appropriately increased.But you have to ensure that the motor do not have noise.
90 * P3-1 Load inertia ratio. This is complementary to P3-2. Under the condition that the motor must can not have noise, these two parameters are adjusted.
91 * P2-1 to P2-3 should be increased appropriately for general rigidity requirements, and the three parameters can be increased appropriately to basically meet the needs of customers.
92
93 == The servo rotates abnormally ==
94
95 **Question: **Regarding the solution to the abnormal rotation of the servo due to the inconsistent enable disconnection time after the servos of different power ranges are powered off.
96
97 **Solution: **When using VD2 drives with different power ranges on one machine, when the servo is powered off at the same time, the capacitance of the drive is inconsistent, resulting in the inconsistent time of the servo's enable disconnection, which will cause the servo to be inconsistent. In certain modes, abnormal rotation may occur.
98
99 The current solution is to turn off the enable of each servo after the servo motor stops running to avoid it.
100
101 {{velocity}}
102 {{html clean="false"}}
103 <div class="row">
104 #foreach ($card in $videoCards)
105 ## See http://getbootstrap.com/css/#grid-responsive-resets .
106 #if ($foreach.index > 0 && $foreach.index % 2 == 0)
107 <div class="clearfix visible-sm-block "></div>
108 #end
109 #if ($foreach.index > 0 && $foreach.index % 3 == 0)
110 <div class="clearfix visible-md-block visible-lg-block"></div>
111 #end
112 <div class="col-xs-12 col-sm-6 col-md-4">
113 #helpVideoCard($card)
114 </div>
115 #end
116 </div>
117 {{/html}}
118 {{/velocity}}
119
120 == In position mode, external pulse positioning, servo positioning is inaccurate ==
121
122 Problem: In position mode,servo positioning are inaccurate with external pulse positioning.
123
124 Solution: There are two reasons: one is a mechanical problem, and the other is an electrical problem. Mechanical problems are usually caused by gaps in lead screws and gears, or belts and chains are tight, or coupling parts such as couplings are not firmly connected; electrical problems are generally interference and wiring problems.
125
126 === Electrical problems ===
127
128 Monitor whether the number of input command pulses of the servo is consistent with that sent by the PLC. Pay attention to the relative value, or send it after resetting after power off and restart.
129
130 (% style="text-align:center" %)
131 [[image:1637228090531-399.png||height="44" width="700" class="img-thumbnail"]]
132
133 If there is an inconsistency, there is an electrical problem. If the number of pulses sent and the number of pulses received are orders of magnitude different, the high probability is a wiring problem. If the numbers are close, but there is always an error, then the high probability is an interference problem. There are several methods as follows :
134
135 * Check whether the pulse wiring is correct, whether it is firm, whether the wiring is separated from the power line, you can take the pulse line out of the wire slot and leave it in the air for testing.
136 * Check if there are interference sources, pay special attention to the electrical components that are working, such as inverters, contactors, etc., and take care of them, such as add magnet ring, freewheel diodes etc. (requires troubleshoot experience).
137 * If you use a switching power supply, it is recommended to use the DC24V power supply of the PLC. The power supply is easy to be interfered and other loads carried by it are also easy to cause interference, such as solenoid valve relays. (Easy to use, solve 90% interference problems)
138 * Whether the pulse frequency sent by the PLC is too fast, the filter parameter of the servo setting, taking into account the attenuation, generally set 1/4 the duration of the pulse width of the highest frequency.
139
140 (% style="text-align:center" %)
141 [[image:1637228139137-611.png||height="277" width="800" class="img-thumbnail"]]
142
143 * In special cases, the anti-interference ability can be enhanced: 2KΩ resistor can be connected between the pulse output terminal Y0 and the pulse power supply DC24V+, which can increase the rising edge time and increase the duty cycle.
144
145 Eliminate the problem through the above several methods, so that the number of input command pulses is consistent with the number of pulses sent by the PLC.
146
147 === **Machine problem** ===
148
149 If the number of input command pulses is the same as the number of pulses sent by the PLC, the electrical problem is eliminated, which is basically a mechanical problem. There are several methods as follows:
150
151 * Keep going in one direction at a fixed length, if it is still inaccurate, the problem caused by the mechanical gap can be eliminated.
152 * Check whether the joints such as the coupling and the motor shaft are firm.
153
154 == When the machine is stopped, the film cutter moves slowly ==
155
156 Problem: When the machine is stopped, the film cutter has a slow movement problem.
157
158 Solution: The processing method of the interference signal from the servo receiving is as follows.
159
160 Because if the filtering time is too long, it may filter out normal PLC pulses. So it should be set according to the on-site process requirements. For example, the field technology requires the maximum pulse frequency of the PLC to be 100k, then convert the pulse sent out under the condition of 100k, the pulse period is about 1/100k=10us, the theoretical pulse width is 5us, and the actual situation is a little smaller than 5us. . Therefore, in view of this situation, it is clear that p0-14 cannot be set to more than 6.
161
162 (% style="text-align:center" %)
163 [[image:1637228799036-609.png||height="240" width="700" class="img-thumbnail"]]
164
165 1. Increase p0-14. VD2 servo filter time can be modified more.
166 1. The equipment is not connected to the earth. Make sure that the servo drive-motor-chassis-earth is effectively connected. The servo, PLC, and switching power supply are all grounded.
167 1. The DC24v common end of the servo control line is best to be directly powered by the output DC24v of the plc, which is isolated from other devices.
168
169 == Real-time synchronization with PLC curve, follow~-~--requiring high servo response occasions ==
170
171 === Process requirements ===
172
173 There are some applications where the deviation between the position of the servo and the pulse sent by the PLC should not be too large. Winding machines, textiles and other equipment will respond quickly to the pulse received by the servo from the PLC to avoid problems such as disconnection. Generally, the acceleration time is very long, but the speed is high.
174
175 === Solution ===
176
177 For the PLC setting, you can do the acceleration/deceleration frequency by yourself. It is not recommended to directly use the PLC's own acceleration/deceleration time. The servo settings are as follows:
178
179 1. You can use our servo debugging(self-turning) function to set the tuned inertia and rigidity into the servo.
180 1. P3-2 load rigidity level selection: this parameter is increased appropriately,and the premise is to ensure that that the motor will not have abnormal noise.
181 1. P2-9 speed feed forward gain set to the maximum 100%.
182 1. After changing the above two parameters, the follow-up effect has been significantly improved. If the follow-up requirements of the customer are still not satisfy, you can change P3-3 to 1 to control by manual. Then manually adjust [P2-1]Position loop gain, gradually increase the position loop gain, and increase the value upward while ensuring that the motor will not have abnormal noise.
183
184 **Actual test: **From 0-3000 revolutions in about 3 seconds, the position deviation of the servo should not exceed 2 to 3 degrees of the motor (10,000 pulses per circle means that the position deviation does not exceed 56 to 83 pulses).
185
186 **Test process:** After completing the setting process of 1-3 (rigidity 16), the servo position deviation is about 120 pulses, and then manually adjust the [P2-1] position loop gain to 1600, and the maximum position deviation tested is 65 pulses. Achieve customer requirement.
187
188 == Mode switching (speed mode/torque mode) ==
189
190 === Process requirements ===
191
192 The servo normally runs at 500 rpm in the speed mode. When the DI_5 signal is input, the working mode is switched to the torque mode, and the speed is limited to 150 rpm. The torque setting value is 80.0%. When the servo torque reaches the setting value, the DO_3 signal is output to the PLC, and the PLC performs reverse operation and switches back to the speed mode at the same time.
193
194 === Solution ===
195
196 Adjust the parameters according to the yellow font of the icon below, and the steps are as follows:
197
198 (% style="text-align:center" %)
199 [[image:1.png||class="img-thumbnail"]]
200
201 **Instruction:**
202
203 * The yellow parameter is required, other parameters can be adjusted according to the usage.
204 * P6-08 DI_3 instruction inversion: used to control the direction in speed and torque mode.
205 * P6-14 DI_5 mixed mode selection: used to switch between speed and torque modes.
206 * P6-30 DO_3 torque arrival output: when the current servo current torque reaches the sum of the two parameters P5-20 and P5-21, the DO_3 signal is output.
207 * The speed mode is limited by P1-12/P1-13, and the torque mode is limited by P1-17/P1-18.
208 * In the torque mode, the servo running is not stable during debugging. The problem is solved after adjusting P3-01 and P3-02.
209
210 The software waveform monitoring of the servo PC tool is as follows:
211
212 (% style="text-align:center" %)
213 [[image:1637229200435-259.png||height="460" width="800" class="img-thumbnail"]]
214
215 Figure 2-6
216
217 (% style="text-align:center" %)
218 [[image:1637229258665-949.png||height="642" width="700" class="img-thumbnail"]]
219
220 Figure 2-7
221
222 The actual running video is as follows:
223
224 {{velocity}}
225 {{html clean="false"}}
226 <div class="row">
227 #foreach ($card in $videoCards)
228 ## See http://getbootstrap.com/css/#grid-responsive-resets .
229 #if ($foreach.index > 0 && $foreach.index % 2 == 0)
230 <div class="clearfix visible-sm-block "></div>
231 #end
232 #if ($foreach.index > 0 && $foreach.index % 3 == 0)
233 <div class="clearfix visible-md-block visible-lg-block"></div>
234 #end
235 <div class="col-xs-12 col-sm-6 col-md-4">
236 #helpVideoCard($card)
237 </div>
238 #end
239 </div>
240 {{/html}}
241
242
243 {{/velocity}}
244
245 = **Debugging Application** =
246
247 == In the case of only positioning control-servo positioning is inaccurate ==
248
249 === Problem analysis ===
250
251 (1) The servo has received too many pulses. For example, the single-turn pulse of the servo is 10000, and the plc sends 10000 pulses to the servo, but the servo has moved more than one circle or more.
252
253 (2) The pulse received by the servo is less. For example, the single-turn pulse of the servo is 10000, and the plc sends 10000 pulses to the servo, but the servo does not complete one turn.
254
255 Therefore, we need to determine the situation first, and then make targeted corrections.
256
257 === Checking problem reason ===
258
259 We can make the plc send a fixed amount of pulses (it is better to make the servo rotate full circle more intuitive), and then look at the servo's encoder cumulative position U0-13.
260
261 (% style="text-align:center" %)
262 [[image:1637230248435-554.png||height="115" width="800" class="img-thumbnail"]]
263
264 The value of U0-13 is related to the number of digits of the motor encoder. 2500 lines correspond to 10000/turn, 17 digits correspond to 131072/turn, and 23 digits correspond to 8388608/turn.
265
266 If there is no way to turn a full circle due to the mechanism, you can refer to the following formula for observation: 2500 lines, encoder cumulative position = plc sent pulse number * 10000/p0-16.
267
268 * 17-bit encoder cumulative position = plc sent pulses * 131072/p0-16
269 * 23-bit encoder cumulative position = plc sent pulses *8388608/p0-16
270
271 Through the above determination method, we can basically know what the servo problem situation is.
272
273 === Solution ===
274
275 **The first case**
276
277 If the servo receives too many pulses, it means that the servo drive has received the interference signal as a pulse signal. At this time, we need to adjust the position pulse filter on the servo side to filter out the interference signal. The corresponding parameter is p0-14.
278
279 (% style="text-align:center" %)
280 [[image:1637230495968-367.png||height="396" width="800" class="img-thumbnail"]]
281
282 Figure 3- 2
283
284 The value of P0-14 cannot be adjusted to the maximum blindly, because if the filtering time is too long, it may filter out normal PLC pulses. So it should be set according to the on-site process requirements. For example, the field technology requires the maximum pulse frequency of the PLC to be 100kHZ, then we can calculate the pulse period sent out under the condition of 100k.The pulse period is about 1/100k=10us, the theoretical pulse width is 10us/2=5us, and the actual situation is a little smaller than 5us. Therefore, in view of this situation, it is clear that p0-14 cannot be set to more than 6.
285
286 Theoretically, the problem can be solved by the setting of p0-14. If it does not work, it means that the electromagnetic environment on site is indeed very poor. At this time, you should find the interference source first. There are two common situations:
287
288 1. The equipment is not connected to the ground. Ensure that the servo drive-motor-[[machine>>path:#/javascript:;]] [[casing>>path:#/javascript:;]]-ground is effectively connected.
289 1. Interference comes from the power supply. Generally, the DC24v common terminal of the servo drive control line is often directly connected from the power supply. However, the power supply may also provide high-power solenoid valves, contactors, and frequency conversions in addition to the servo. The moment when these devices are turned on/off, it is easy to make the DC24v drop or rise instantly, which will affect the servo end. Therefore, it is recommended that the DC24v common end of the servo control line is directly powered by the output DC24v of the plc(independent power supply), and it is isolated from other devices.
290
291 **The second case**
292
293 That is, there are fewer pulses received by the servo, so there are two common reasons for this situation:
294
295 * Pulse direction signal interference during servo operation, that is to say, when that the current servo is in forward rotation, and suddenly the servo pulse direction signal pin comes to a low level to inform the servo to reverse. Due to the stuck pulse inside the servo, At this time, the servo will not reverse, but will only cancel the pulse, so the final result is that the servo does not run,looks like servo do not receive full pulse.
296 ** The solution for this situation is very simple. Remove the servo pulse direction signal and run for a while to see if it is normal. If possible, it is easy to see with an oscilloscope. If this is the case, the solution is to isolate the 24v public end.
297 * The servo control line is longer than 10 meters, and the impedance is too large, which leads to signal attenuation. The original normal pulse waveform is distorted and then filtered out by the servo driver, and the final result is that the servo runs less. The solution is, you can try to connect a resistance of about 1000 ohms (1 watt) in parallel between the PL and plus- of the servo drive. As shown in the figure:
298
299 (% style="text-align:center" %)
300 [[image:1637232217856-278.png||height="174" width="500" class="img-thumbnail"]]
301
302 == Servo motor vibrates and screams ==
303
304 === Problem analysis ===
305
306 It is often encountered that the servo will vibrate at a high frequency when it is in enable state, and in severe cases, it will be accompanied by screams. The root of the problem is mostly servo parameters. High-frequency vibration is caused by the resonance of the motor and the equipment. We need to avoid the resonance frequency range. A small part of the situation is a mechanical structure problem.
307
308 In the application environment of multiple servos, first of all, we have to determine which servo is re-vibrating. The scene environment is noisy, and the vibration can be transmitted through metal. It is easy to confuse us.
309
310 For example, we has a painful experience, a three-axis application environment. At that time, the FAE engineer at the site always thought that the z-axis was re-vibrating, but the monitoring waveform was not there. Later, it was discovered that the x-axis was re-vibrating, which was transmitted to the z-axis, which wasted a lot of time.
311
312 === Positioning problem ===
313
314 **First Method**
315
316 Open the servo PC software and monitor the servo waveform, as shown in Figure 3-4 is a normal situation, and Figure 3-5 is a typical vibration situation.
317
318 (% style="text-align:center" %)
319 [[image:1637232816623-186.png||height="533" width="800" class="img-thumbnail"]]
320
321 Figure 3-4
322
323 (% style="text-align:center" %)
324 [[image:1637232858670-790.png||height="533" width="800" class="img-thumbnail"]]
325
326 Figure 3-5
327
328 **Second Method**
329
330 Turn off the servo enable signal and the motor is still vibrating to confirm that the vibration source is not the motor. If the motor does not vibrate, it can be determined that the vibrating source is the motor.
331
332 === Solve vibrating problem ===
333
334 Solution after locking the vibrating source:
335
336 (1) Open the PC monitor software to monitor the vibration frequency, whether it corresponds to the value of P4-5 first notch filter frequency.
337
338 For example, if the vibration frequency is occasionally 300 and occasionally 500, you can set P4-5 to 400, and then increase the value of the first notch filter width of P4-7.
339
340 (2) After adjusting the frequency of the first notch filter, adjust the P4-4 torque filter time constant. If the value is adjusted to a lower value, the vibration decreases, and then continue to adjust lower with small value. If it is not ideal, you can decrease the value P4-6:1st notch depth (decreasing the value will affect the response speed of the servo).
341
342 If the above methods are not ideal, consider reducing the rigidity level, and the adjusted waveform will look like this as shown in Figure 3-6.
343
344 (% style="text-align:center" %)
345 [[image:1637232958831-524.png||height="533" width="800" class="img-thumbnail"]]
346
347 Figure 3-6
348
349 == For vibration caused by a small probability of mechanical structure ==
350
351 In the case of screw drive, it mainly depends on whether the motor shaft and the connector are parallel, whether there is left and right shaking, and whether the screws of the connector are locked well.
352
353 (% style="text-align:center" %)
354 [[image:1637233020678-863.png||height="328" width="500" class="img-thumbnail"]]
355
356 Figure 3-7
357
358 The same is true for belt drive, which mainly depends on whether the belt is tilted left and right, and whether the synchronization wheel screw is locked well.
359
360 (% style="text-align:center" %)
361 [[image:1637233082354-748.png||height="489" width="500" class="img-thumbnail"]]
362
363 Figure 3-8
364
365 == Too slow servo response affects overall output ==
366
367 In some simple reciprocating positioning and feeding occasions, such as high-speed one-to-one mask machine, terminal machine, feeder, etc., servo positioning is required to respond quickly to achieve higher output of the equipment as a whole. At this time, the servo also needs to adjust the gain with plc. .
368
369 === Problem analysis ===
370
371 Figure 3-9 is a typical graph before optimization. After the servo finish debugging(auto-tuning), without parameter adjustment, the whole positioning time is almost 225ms, and the plc is 50ms acceleration and deceleration time, so it runs softly.
372
373 (% style="text-align:center" %)
374 [[image:1637233571911-749.png||height="511" width="800" class="img-thumbnail"]]
375
376 Figure 3-9
377
378 === Solution ===
379
380 **Optimize the acceleration and deceleration time of PLC**
381
382 Optimize the acceleration and deceleration time of the PLC first. The acceleration time can be set as small as 10ms or less. The deceleration time can be longer but generally can be done within 50ms. If the load is small, the acceleration time can be consistent with the acceleration time, unless the load inertia ratio is very big, then adjust accordingly.
383
384 (% style="text-align:center" %)
385 [[image:1637233500046-492.png||height="515" width="800" class="img-thumbnail"]]
386
387 As shown in the figure: we directly press the acceleration and deceleration of the plc below 5ms, and the overall positioning time is shortened to about 155ms, but it can be seen that the servo lag in the second half of the deceleration is serious and there is a lag of about 75ms, so we have to start adjusting the servo parameters.
388
389 **The rigidity level directly adopts self-tuning**
390
391 The rigidity level can be directly used as the recommended level from self-tuning, without any changes. Change [P3-3] to 1(manual setting). Then, manually adjust [P2-1]:position loop gain, and gradually increase the position loop gain.
392
393 (% style="text-align:center" %)
394 [[image:1637233668907-566.png||height="484" width="746"]]
395
396 Figure 3- 11
397
398 As shown in the figure above, the position loop gain is 450, the overall positioning time is shortened to 120ms, the second half of the deceleration lag is also shortened to 40ms, there is no overshoot and no vibration, and the gain still can be adjusted up.
399
400 **Comparison chart**
401
402 Finally, take a look at the final comparison chart. This is that after the position loop gain is set to 550, the overall positioning time is shortened to 107 ms, which is twice as short as the initial 225 ms.
403
404 (% style="text-align:center" %)
405 [[image:1637233729256-783.png||height="335" width="776"]]
406
407 (% style="text-align:center" %)
408 [[image:1637233751441-245.png||height="346" width="780"]]
409
410 Figure 3- 12
411
412 === Summary ===
413
414 The cognition of rigidity level: the rigidity level parameter itself has no meaning for the internal algorithm of the servo. It acts more as a "shortcut key", and the position loop gain, speed loop gain, speed loop integral time constant, and torque filter parameters these four parameters can be quickly set by the choice of rigidity level only. And the values of these four parameters at each rigidity level are the best ratios obtained by our research and development according to the theoretical algorithm, just like the formula, of course, it is only limited to the theory, so there is also the parameter p3-3. When we find that directly changing the rigidity level cannot achieve the effect we want, we need to change p3-3 to manual setting, and fine-tune a certain parameter by observing the curve, such as the position loop gain.
415
416 == Application occasions of large inertia pulleys-Servo stop instability ==
417
418 === Problem analysis ===
419
420 In the application of large inertia pulley, the servo stops unstable.
421
422 === Solution ===
423
424 **Servo tuning**
425
426 * Step 1: Preparation
427 ** P4-4 Torque filtering time constant: try to set the minimum value to 10 first (no filtering);
428 ** P2-3 Speed loop integral time, set 5000 first; (when 5000, the influence of this parameter is small)
429 * The second step: gradually adjust P2-2 speed loop gain; the larger the value, the faster the response;
430 * Step 2: gradually adjust P2-3 speed loop integral time constant; the smaller the value, the faster the response;
431 * Step 3: adjust P2-1 position loop gain, the larger the value, the faster the response;
432
433 **Parameters and curves before commissioning**
434
435 (% style="text-align:center" %)
436 [[image:1637233948792-253.png||height="530" width="850" class="img-thumbnail"]]
437
438 Figure 3- 13
439
440 (% style="text-align:center" %)
441 [[image:1637234076675-117.png||height="512" width="800" class="img-thumbnail"]]
442
443 Figure 3- 14
444
445 It can be seen from the above figure that there will be a short period of uniform speed at the end of the curve and then decelerate to stop, so that there will be an obvious slow-speed and then stop action on the motor.
446
447 Such as video action
448
449 {{velocity output="false"}}
450 #set ($docextras = [])
451
452 #set ($videoCards = [
453 {
454 'url': 'https://wecon-disk.oss-ap-southeast-1.aliyuncs.com/Download/WIKI/Servo/Video/servo%20guide/3.5.2.2%E8%B0%83%E5%89%8D%E5%8A%A8%E4%BD%9C.mp4'
455 }
456
457
458 ])
459
460 #macro (helpVideoCard $data)
461 <div class="videoCard">
462 <iframe src="$data.url" allowfullscreen title="$escapetool.xml($data.title)" role="presentation" ></iframe>
463 <div class="videoCard-body">
464 <div class="videoCard-title">
465
466 </div>
467 <ul>
468 #foreach ($topic in $data.topics)
469 <li>$topic</li>
470 #end
471 </ul>
472 </div>
473 <div class="videoCard-footer">
474
475 <span class="videoCard-duration">
476
477 </span>
478 </div>
479 </div>
480 #end
481 {{/velocity}}
482
483 {{velocity}}
484 {{html clean="false"}}
485 <div class="row">
486 #foreach ($card in $videoCards)
487 ## See http://getbootstrap.com/css/#grid-responsive-resets .
488 #if ($foreach.index > 0 && $foreach.index % 2 == 0)
489 <div class="clearfix visible-sm-block "></div>
490 #end
491 #if ($foreach.index > 0 && $foreach.index % 3 == 0)
492 <div class="clearfix visible-md-block visible-lg-block"></div>
493 #end
494 <div class="col-xs-12 col-sm-6 col-md-4">
495 #helpVideoCard($card)
496 </div>
497 #end
498 </div>
499 {{/html}}
500
501
502 {{/velocity}}
503
504 **Adjust P2-2 parameters**
505
506 When adjusting the parameters, first increase or decrease the parameters, try several times to see the effect of different curves and motors, summarize the rules, and see if the effect of adjusting the parameters is better or if the parameters are adjusted smaller. After determining the direction, adjust back to the original parameter, and then gradually increase or decrease the parameter until the parameter with the best effect is recalled.
507
508 (% style="text-align:center" %)
509 [[image:1637234424429-924.png||height="405" width="850" class="img-thumbnail"]]
510
511 Figure 3- 15
512
513 (% style="text-align:center" %)
514 [[image:1637234473817-237.png||height="362" width="700" class="img-thumbnail"]]
515
516 Figure 3- 16
517
518 From the above figure, it can be seen that the smoothness of the curve at the end section reduces the slow uniform speed, but the fluctuation at the end section is still a bit large. At this time, you need to adjust the P2-3 parameter again.
519
520 **Adjust P2-3 parameters**
521
522 After adjusting the P2-2 parameters. You can adjust the P2-3 parameter according to the speed loop integral time constant; the smaller the value, the faster the response.
523
524 (% style="text-align:center" %)
525 [[image:1637234558361-388.png||height="410" width="800" class="img-thumbnail"]]
526
527 Figure 3- 17
528
529 (% style="text-align:center" %)
530 [[image:1637234602299-138.png||height="386" width="750" class="img-thumbnail"]]
531
532 Figure 3- 18
533
534 After adjusting the two parameters of P2-2 and P2-3, you can see that the curve has been significantly improved. In addition, depending on the actual action, finally increase the p2-1 position loop gain so that the motor can stop more quickly, but If the adjustment is too large, it is easy to overshoot.
535
536 == Servo can not stop and rotate back some position ==
537
538 {{velocity output="false"}}
539 #set ($docextras = [])
540
541 #set ($videoCards = [
542 {
543 'url': 'https://wecon-disk.oss-ap-southeast-1.aliyuncs.com/Download/WIKI/Servo/Video/servo%20guide/3.6%20motor%20can%20not%20stop%20immediately.mp4'
544 }
545
546
547 ])
548
549 #macro (helpVideoCard $data)
550 <div class="videoCard">
551 <iframe src="$data.url" allowfullscreen title="$escapetool.xml($data.title)" role="presentation" ></iframe>
552 <div class="videoCard-body">
553 <div class="videoCard-title">
554
555 </div>
556 <ul>
557 #foreach ($topic in $data.topics)
558 <li>$topic</li>
559 #end
560 </ul>
561 </div>
562 <div class="videoCard-footer">
563
564 <span class="videoCard-duration">
565
566 </span>
567 </div>
568 </div>
569 #end
570 {{/velocity}}
571
572 {{velocity}}
573 {{html clean="false"}}
574 <div class="row">
575 #foreach ($card in $videoCards)
576 ## See http://getbootstrap.com/css/#grid-responsive-resets .
577 #if ($foreach.index > 0 && $foreach.index % 2 == 0)
578 <div class="clearfix visible-sm-block "></div>
579 #end
580 #if ($foreach.index > 0 && $foreach.index % 3 == 0)
581 <div class="clearfix visible-md-block visible-lg-block"></div>
582 #end
583 <div class="col-xs-12 col-sm-6 col-md-4">
584 #helpVideoCard($card)
585 </div>
586 #end
587 </div>
588 {{/html}}
589
590
591 {{/velocity}}
592
593 === Problem analysis ===
594
595 This servo uses position mode.Because the tension of  belt moves the motor backwards,and the motor runs out of the correct position.So servo drive will control motor rotate back.
596
597 === Solution ===
598
599 1. Try to add the P2-1 for example P2-1=40.0 .User can set to 80.0
600 1. If P2-1 still can not solve problem.User can try to add P3-2 For example,P3-2=14.User can set to 16,18 ...But please make sure motor do not have noise
601 1. If user want to save the P2-1 and P3-2 parameter after restart servo.Please set P3-3=1
602
603 == WECON PLC DVIT to control the Servo stop ==
604
605 {{velocity output="false"}}
606 #set ($docextras = [])
607
608 #set ($videoCards = [
609 {
610 'url': 'https://global-123-1253699689.cos.na-siliconvalley.myqcloud.com/Download/WIKI/Servo/Video/servo%20guide/3.7%20MICON%20DVIT.mp4'
611 }
612
613
614 ])
615
616 #macro (helpVideoCard $data)
617 <div class="videoCard">
618 <iframe src="$data.url" allowfullscreen title="$escapetool.xml($data.title)" role="presentation" ></iframe>
619 <div class="videoCard-body">
620 <div class="videoCard-title">
621
622 </div>
623 <ul>
624 #foreach ($topic in $data.topics)
625 <li>$topic</li>
626 #end
627 </ul>
628 </div>
629 <div class="videoCard-footer">
630
631 <span class="videoCard-duration">
632
633 </span>
634 </div>
635 </div>
636 #end
637 {{/velocity}}
638
639 {{velocity}}
640 {{html clean="false"}}
641 <div class="row">
642 #foreach ($card in $videoCards)
643 ## See http://getbootstrap.com/css/#grid-responsive-resets .
644 #if ($foreach.index > 0 && $foreach.index % 2 == 0)
645 <div class="clearfix visible-sm-block "></div>
646 #end
647 #if ($foreach.index > 0 && $foreach.index % 3 == 0)
648 <div class="clearfix visible-md-block visible-lg-block"></div>
649 #end
650 <div class="col-xs-12 col-sm-6 col-md-4">
651 #helpVideoCard($card)
652 </div>
653 #end
654 </div>
655 {{/html}}
656
657
658 {{/velocity}}
659
660 === Problem analysis ===
661
662 This servo uses position mode.WECON PLC will control servo stop with DVIT.The sersor will check the stop signal,then PLC will receive sensor signal and stop with a setting pulse number.But in different speed,the stop position is different.
663
664 The most possible reason is the servo position control can not follow by PLC in time.
665
666 === Solution ===
667
668 After taking many trials, found that Using VD2 and changing the position loop gain, I got a result in position at different speed. I suggest client to check with his existing machine. Below parameter i changed and i got good result in position.
669
670 P2-01 = 310.0
671
672 P2-02 = 20.0
673
674 = **Power calculation of WECON servo brake resistor** =
675
676 [[Power calculation of WECON servo brake resistor V1.05>>https://ftp.we-con.com.cn/Download/WIKI/Servo/Manual/Power%20calculation%20of%20WECON%20servo%20brake%20resistor%20V1.05.xlsx]]
677
678 = **Servo motor selection calculation** =
679
680 **[[Servo motor selection calculation>>https://ftp.we-con.com.cn/Download/WIKI/Servo/Manual/Servo%20motor%20selection%20calculation.pptx]]**