Parameter adjustment method
By calculating the upper limit of the feedback gain in the servo control device and adjusting the feedback gain and speed feedforward gain within its range, the problem of difficulty in improving servo control followability in the existing technology is solved, and better servo control effects are achieved. .
Patent Information
- Application Number
- CN202080039995.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-28
- Filing Date
- 2020-03-02
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-03-02
AI Technical Summary
When the existing servo control device adjusts the speed feedforward gain, it is difficult to fully improve the ability to follow the target command, and it fails to effectively consider the balance between the feedback gain and the speed feedforward gain, resulting in the inability of the motor output to be properly servo controlled.
By calculating the upper limit of the feedback gain in the servo control device, and adjusting the feedback gain and speed feedforward gain within a range that does not exceed the upper limit, servo control with a small track following error can be achieved. The specific steps include: first, set the speed feedforward gain as the base value and calculate the upper limit of the feedback gain; then set the feedback gain to a lower initial value and increase the speed feedforward gain; finally, when the speed feedforward gain is large, , gradually increase the feedback gain to ensure that it does not exceed the upper limit value.
Appropriate adjustment of feedback gain and speed feedforward gain is achieved, which improves the followability and stability of servo control and ensures that the motor output can effectively follow the target command.
Smart Images

Figure CN113924531B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a parameter adjustment method for adjusting a control parameter of a control device that performs servo control. Background Art
[0002] In the past, servo control devices were sometimes configured to perform feedforward control together with feedback control in order to make the motor output quickly consistent with the target command. In this case, in the feedforward controller assembled in the servo control device, by appropriately setting the speed feedforward gain and the torque feedforward gain, the deviation of the motor when the acceleration and deceleration are constant and the speed is constant can be made zero, and the deviation when the acceleration changes can be reduced as much as possible. However, in general, the user needs to observe the output of the motor while exploring the appropriate value of the speed feedforward gain set for the feedforward controller, so the user's burden is not small.
[0003] Therefore, for example, Patent Document 1 discloses a technique for automatically adjusting the speed feedforward gain, etc. in such a feedforward controller to an appropriate value. In this technique, the speed feedforward gain, etc. are automatically adjusted based on the deviation (position deviation) between the target position command and the output (position output) of the motor. Specifically, the motor is operated in a state where the speed feedforward gain, etc. are initial values, and the initial value is appropriately corrected based on the deviation at this time. After repeated changes in the speed feedforward gain, etc., the speed feedforward gain, etc. that minimizes the deviation is determined.
[0004] Prior art literature
[0005] Patent Literature
[0006] Patent Document 1: Japanese Patent Application Publication No. 2006-18431 Summary of the invention
[0007] Problems to be solved by the invention
[0008] In the existing servo control device, the speed feedforward gain is adjusted based on the position deviation. Therefore, depending on the result of the position deviation, it is sometimes impossible to fully increase the speed feedforward gain, and as a result, it is difficult to fully improve the tracking performance of the target instruction. In addition, in the existing servo control device, although the speed feedforward gain is adjusted, there is no mention of adjusting the gain (feedback gain) of the feedback system in the servo control. Therefore, when considering the servo control as a whole, it may not be possible to adjust the output of the motor as expected. That is, if the balance between the feedback gain and the speed feedforward gain is not considered, it may not be possible to properly servo control the motor output in the end.
[0009] The present invention has been made in view of the above problems, and an object of the present invention is to provide a technology for appropriately adjusting a feedback gain and a speed feedforward gain in a control device that performs servo control including feedforward control.
[0010] Means for solving problems
[0011] In the present invention, in order to solve the above-mentioned problem, the following structure is adopted: first, under the condition that the specified index associated with the servo control in the control device meets the specified target value, the upper limit value of the feedback gain is calculated, and then the speed feedforward gain is reset to a larger value, and the feedback gain is adjusted within the range not exceeding the upper limit value. With such a structure, it is easy to adjust the feedback gain and the speed feedforward gain of the servo control with a small track following error through the control device.
[0012] Specifically, the present invention is a parameter adjustment method, which adjusts the control parameters of a control device, the control device including a feedback system having one or more controllers to which a feedback signal associated with a servo control of a control object is fed back, and having a prescribed control structure configured to be able to perform speed feedforward control in the feedback system. Moreover, the method includes: a first step of calculating an upper limit value of the feedback gain in a range where a prescribed index associated with the feedback gain of the feedback signal satisfies a prescribed target value, while a speed feedforward gain associated with the speed feedforward control is set to a prescribed reference value; a second step of setting the feedback gain to an adjustment initial value lower than the upper limit value, and at least setting the speed feedforward gain to a prescribed increase value greater than the prescribed reference value; and a third step of adjusting the feedback gain in a manner of increasing the feedback gain from the adjustment initial value in a range where the feedback gain does not exceed the upper limit value, while the speed feedforward gain is set to the prescribed increase value.
[0013] The control device for adjusting the control parameters by the parameter adjustment method has a prescribed control structure including a feedback system based on one or more controllers, and the prescribed control structure is configured to be able to perform speed feedforward control. In one or more controllers, feedback gains such as position proportional gain, speed proportional gain, speed integral gain, etc. are set, and the characteristics of the servo control characteristics based on the prescribed control structure are given by these set values. As servo control characteristics, the setting time of the control object, the vibration characteristics during control, etc., which are the above-mentioned prescribed indicators, can be exemplified. In addition, the speed feedforward gain associated with the speed feedforward control is greatly related to the trajectory tracking of the control object in the servo control. Therefore, in the servo control of the control object, the feedback gain and the speed feedforward gain are control parameters that can have a greater impact on its control results.
[0014] Therefore, in the above-mentioned parameter adjustment method, first, in the first step, the upper limit value of the feedback gain is calculated in such a way that the servo control characteristics based on the prescribed control structure reach the desired characteristics, that is, within the range where the prescribed index satisfies the prescribed target value, while the velocity feedforward gain is set to the prescribed reference value. The velocity feedforward gain is set to the prescribed reference value because if the trajectory tracking performance of the control object is high from the beginning, it will affect the transition of the prescribed index, and it is difficult to accurately calculate the upper limit value of the feedback gain based on the prescribed index. Generally speaking, the larger the value of the feedback gain, the higher the responsiveness of the servo control, but on the contrary, there is a tendency for the stability of the servo control to decrease. The upper limit value of the feedback gain calculated by such a first step has a technical significance as a threshold value that can achieve the best possible servo control characteristics.
[0015] Then, in the second step, the speed feedforward gain is set to a prescribed increase value on the basis of setting the feedback gain to an adjustment initial value lower than the upper limit value calculated in the first step. The prescribed increase value is greater than the prescribed reference value and is a value that can improve the trajectory following property in the servo control of the controlled object. As an example, as the prescribed increase value, 100% or a value close thereto can be used. In this way, in the second step, the speed feedforward gain is set to a prescribed increase value in order to improve the trajectory following property of the controlled object, but in order to avoid unexpectedly generating an undesirable condition in the servo control of the controlled object due to the interaction between the speed feedforward gain and the feedback gain, the feedback gain is set to a relatively low adjustment initial value. On this basis, in the next third step, the speed feedforward gain is set to a prescribed increase value in a state in which the feedback gain is adjusted to be higher toward the upper limit value calculated in the first step. At this time, the adjustment is performed within a range in which the feedback gain does not exceed the upper limit value.
[0016] According to such parameter adjustment, the speed feedforward gain that is highly correlated with trajectory tracking can be set to a specified increase value, and the feedback gain can be determined to make a specified indicator associated with servo control an upper limit value of a specified target value, or the feedback gain can be made as close to the upper limit value as possible, thereby facilitating appropriate adjustment of the two control parameters.
[0017] Here, in the above parameter adjustment method, the prescribed index may be an index associated with the settling time of the control object when the servo control based on the prescribed control structure is performed. In this case, the upper limit value may be the value of the feedback gain when the prescribed index is within the target settling time as the prescribed target value. In addition, as another method of the prescribed index, the prescribed index may be an index associated with the vibration of the control object when the servo control based on the prescribed control structure is performed. In this case, the upper limit value may be the value of the feedback gain that makes the prescribed index the vibration level as the prescribed target value or below. Furthermore, as another method of the prescribed index, the prescribed index may be an index related to the closed loop gain in the frequency response of the speed closed loop in the prescribed control structure when the servo control based on the prescribed control structure is performed, or the gain or phase obtained from the speed open loop. In this case, the upper limit value may be the value of the feedback gain when the prescribed index is below the prescribed peak gain, or above the prescribed gain margin value or the prescribed phase margin value. The predetermined index may be an index other than these indexes as long as it is an index capable of determining whether or not the servo control characteristics based on the predetermined control structure have reached the desired characteristics.
[0018] Here, in the above parameter adjustment method, in the third step, when the feedback gain is increased from the adjustment initial value, if the vibration level of the controlled object exceeds the allowable level, the value of the feedback gain is determined within a range where the vibration level converges to the allowable level. According to such a method, the feedback gain can be set to the maximum value possible within a range where the vibration level of the controlled object can converge to the allowable range.
[0019] In addition, in the above parameter adjustment method, in the first step, the upper limit value of the feedback gain may be calculated while filtering the position proportional gain or the speed proportional gain in the servo control. By performing the first step using such filtering, even if the position command to the controlled object contains a frequency component causing resonance, the upper limit value of the feedback gain can be accurately calculated, and good adjustment of the feedback gain and the speed feedforward gain finally obtained can be achieved.
[0020] In addition, in the above-mentioned parameter adjustment method, it is also possible that, in the third step, the feedback gain is adjusted without performing filtering processing based on the position proportional gain or the speed proportional gain in the servo control. When the filtering processing is performed, there is a possibility that the trajectory tracking performance of the control object is reduced. Here, in the third step, the feedback gain is adjusted on the basis of setting the speed feedforward gain to the specified increase value in the second step, but this is to adjust the feedback gain while seeking to optimize the trajectory tracking performance. In view of this, when executing the third step, the feedback gain is adjusted with the filtering processing set to OFF, so that it can be adjusted to a more preferred value.
[0021] Effects of the Invention
[0022] In a control device that performs servo control including feedforward control, it is possible to appropriately adjust a feedback gain and a speed feedforward gain. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a diagram showing a schematic configuration of a control system including a PLC and a servo driver, and a schematic configuration of a computer connected to the control system.
[0024] Figure 2 This is a diagram showing a control structure of a servo driver and a functional unit for adjusting control parameters set for the servo driver formed in a computer.
[0025] Figure 3 This is a flow chart of an adjustment process for adjusting control parameters in a servo driver.
[0026] Figure 4 yes Figure 3 Flowchart of the first process included in the adjustment process shown.
[0027] Figure 5 yes Figure 3 Flowchart of the second process included in the adjustment process shown.
[0028] Figure 6 yes Figure 3 Flowchart of the third process included in the adjustment process shown.
[0029] Figure 7 It indicates that the setting has Figure 3 A graph showing the trajectory following performance of the servo driver with respect to the control parameters obtained as a result of the adjustment process is shown.
[0030] Figure 8 yes Figure 3 A flowchart of another embodiment of the first process included in the adjustment process shown.
[0031] Fig. 9 yes Figure 3 A flowchart of another embodiment of the first process included in the adjustment process shown. DETAILED DESCRIPTION
[0032] <Application Examples>
[0033] First, based on Figure 1 The configuration of a control system for servo-controlling the motor will be described. Figure 1 This is a schematic diagram of the control system. The control system includes a field network 1, a servo driver 4, and a PLC (Programmable Logic Controller) 5. The servo driver 4 is a control device for servo-controlling the output shaft of the motor 2 in a device 6 having a motor 2. As an example of the device 6, a conveying device that conveys a workpiece on a predetermined plane can be exemplified. In addition, a control axis based on a motor other than the motor 2 can also be provided in the device 6. In this case, it can also be configured to be able to drive two control axes (motors) by one servo driver 4. As another method, a structure in which one servo driver is configured for each control axis, and each servo driver is connected via a field network 1 can also be adopted. Instructions for driving and controlling the device 6 are supplied from the PLC 5 to the servo driver 4 via the field network 1. In addition, as the field network 1, for example, EtherCAT (registered trademark) can be used.
[0034] In the control system, the servo driver 4 performs servo control of the motor 2 using the control command sent from the PLC 5. This servo control is used, for example, for control based on motor positioning. In addition, the servo driver 4 supplied with the control command from the PLC 5 receives a feedback signal output from the encoder 2a connected to the motor 2 via the signal line L2, thereby supplying a drive current to the motor 2 via the power supply line L1 so that the output of the motor 2 follows the control command. The supply current uses the AC power sent from the AC power supply to the servo driver 4. In the present embodiment, the servo driver 4 is a type that accepts three-phase AC, but it may also be a type that accepts single-phase AC.
[0035] Furthermore, a computer 9 is electrically connected to the servo driver 4. The electrical connection may also be a wired connection, for example, the computer 9 is connected to the servo driver 4 via a communication cable 8 which is a USB (Universal Serial Bus) cable. Furthermore, the computer 9 may also be configured to be wirelessly connected to the servo driver 4. The computer 9 is a device for setting and adjusting control parameters for the servo control of the motor 2 by the servo driver 4, and includes a program for adjustment. Specifically, the computer 9 has a computing device, a memory, a display (display device), etc., and has an adjustment program that can be executed thereon. The adjustment program adjusts the required control parameters according to the purpose of the servo control performed by the servo driver 4. The specific adjustment method of the control parameters of the computer 9 will be described later.
[0036] Here, based on Figure 2 The control structure for servo control formed in the servo driver 4 of the present embodiment is described. The servo driver 4 is configured to have a feedback system, and the feedback system includes a position controller 41, a speed controller 42, and a current controller 43, thereby performing servo control of the motor 2. The position controller 41 performs proportional control (P control), for example. Specifically, in the P control, the deviation between the position command from the PLC 5 and the detected position in the motor 2, that is, the position deviation, is multiplied by a predetermined position proportional gain. Furthermore, the position controller 41 is configured to add a signal obtained by performing a predetermined differential process on the position command from the PLC 5 and multiplying it by a predetermined gain to the output of the P control (the product of the position deviation and the predetermined position proportional gain) to calculate the speed command vcmd. That is, the position controller 41 is configured to be able to perform speed feedforward control, and the predetermined gain is a parameter for adjusting the contribution degree of the speed feedforward control, which is set as a speed feedforward gain. In the present embodiment, as the speed feedforward gain, any value in the range of 0% to 100% can be set.
[0037] In addition, the speed controller 42 performs proportional integral control (PI control), for example. In the PI control, the speed controller 42 multiplies the deviation between the speed command vcmd calculated by the position controller 41 and the detected speed in the motor 2 (the output of the encoder 2a is differentiated by the differentiator 44), that is, the integral amount of the speed deviation, by a predetermined speed integral gain, and multiplies the sum of the calculation result and the speed deviation by a predetermined speed proportional gain, thereby calculating the torque command τcmd. In addition, the speed controller 42 may also perform P control instead of PI control. Moreover, the current controller 43 outputs the current command Ccmd based on the torque command τcmd calculated by the speed controller 42, thereby driving and controlling the motor 2.
[0038] In addition, the position controller 41 may also include a filter for performing filtering processing related to the position command sent from the PLC 5. Regarding the filtering processing, based on the position proportional gain or speed proportional gain, the filtering performance such as the cutoff frequency is adjusted. Similarly, the current controller 43 may also be configured to include a filter (first-order low-pass filter) related to the torque command and one or more notch filters, and perform filtering processing based on these filters. As control parameters adjusted by the computer 9, parameters related to the performance of these filters may also be included.
[0039] In order to adjust the control parameters for servo control of the servo driver 4 (including the position proportional gain, velocity integral gain, feedback gain of the velocity proportional gain, and parameters associated with filtering), the adjustment program is executed by the computer 9. It should be noted that it is required to confirm whether the control parameters adjusted by the execution of the adjustment program are suitable for driving the motor 2 constituting the device 6. Therefore, as information related to the action of the motor 2 when adjusting the control parameters, the feedback signal from the encoder 2a or the signal of each controller of the servo driver 4 is transmitted to the computer 9, and based on these signals, the computer 9 performs analysis and display processing of the action of the motor 2, and displays the analysis results on the display.
[0040] Here, also based on Figure 2 The details of the adjustment program are described below. Figure 2 As shown, in the computer 9, a settling time measuring unit 91, a vibration detecting unit 92, an upper limit FB gain calculating unit 93, an FF gain setting unit 94, an FB gain adjusting unit 95, and a margin determining unit 96 are formed as functional units for adjusting the control parameters by executing the adjustment program. In addition, in the present embodiment, the notation of "FB gain" means "feedback gain", and the notation of "FF gain" means "feedforward gain".
[0041] The settling time measuring unit 91 is a functional unit that measures the settling time, which is one of the servo control characteristics, when the servo driver 4 performs servo control on the motor 2. The settling time is defined as the time elapsed from the timing of reaching the target position in theoretical calculation to the time when the position of the output shaft of the motor 2 actually converges within a specified range from the target position when servo control is performed so that the position of the output shaft of the motor 2 reaches the target position. Generally, if the value of the feedback gain is too high, the position of the output shaft exceeds the target position and then generates an oscillating motion in which the output shaft moves in a vibrating manner. On the other hand, if the value of the feedback gain is too low, it takes too much time for the position of the output shaft to reach the target position. Therefore, considering that the settling time of the motor 2 is greatly related to the feedback gain, the settling time measuring unit 91 measures the settling time as one of the servo control characteristics.
[0042] The vibration detection unit 92 is a functional unit that detects the generation of vibrations as one of the servo control characteristics when the servo driver 4 performs servo control on the motor 2. The vibrations detected by the vibration detection unit 92 may target one or more vibrations that have a large correlation with the feedback gain, such as electrical vibrations in the controllers for servo control in the servo driver 4 and vibrations in the feedback signal from the encoder 2a. For example, when the amplitude of the target vibration exceeds the permissible vibration level, the vibration detection unit 92 can determine that the vibration is detected by assuming that an undesirable vibration has occurred in the servo control.
[0043] Furthermore, the margin determination unit 96 is a functional unit that determines the peak gain of the speed closed loop, which is one of the servo control characteristics, or the gain margin or phase margin calculated from the speed open loop when the servo driver 4 performs servo control on the motor 2. That is, the margin determination unit is a functional unit that determines to what extent the frequency characteristic during servo control has a stability margin. In addition, the peak gain of the speed closed loop, the gain margin or phase margin of the speed open loop can be obtained by a known technique.
[0044] The upper limit FB gain calculation unit 93 performs the first process described later (see Figure 4 ) is a functional unit. The first process is a process for calculating the upper limit value of the feedback gain mainly based on a prescribed index related to the feedback gain. As prescribed indexes, the settling time and the vibration during servo control, which are servo control characteristics with a large correlation with the feedback gain, are used. As described above, the former is obtained by the settling time measuring unit 91, and the latter is obtained by the vibration detecting unit 92.
[0045] The FF gain setting unit 94 performs the second processing described later (see Figure 5 ) functional unit. The second processing is mainly a processing to reset the feedback gain to the initial value on the basis of setting the speed feedforward gain to a relatively high gain value (the specified increase value of the present application, such as 100%) for obtaining high trajectory tracking performance. In addition, the FF gain setting unit 94 may also set the torque feedforward gain included in the control structure to a relatively high value in addition to the speed feedforward gain. And the FB gain adjustment unit 95 is a function unit for executing the third processing described later (refer to Figure 6 ). The third process is mainly a process of gradually increasing the feedback gain to determine the final feedback gain when the speed feedforward gain is set to, for example, 100% in the second process. In the adjustment of the feedback gain in the third process, the final feedback gain value is determined within a range not exceeding the upper limit value determined in the first process.
[0046] By forming such a functional unit in the computer 9 and performing the adjustment process of the control parameters, the feedback gain and the speed feedforward gain can be appropriately adjusted in the servo driver 4 that performs servo control including feedforward control. As a result, the servo control characteristics of the motor 2 can be made to be the desired characteristics, or can be as close to the desired characteristics as possible, and by making the speed feedforward gain 100%, the trajectory tracking performance of the motor 2 can be improved.
[0047] <Control Parameter Adjustment Processing>
[0048] Next, based on Figure 3 to Figure 6 The specific control parameter adjustment process implemented by these functional units will be described. Figure 3 is a flowchart showing the overall flow of the adjustment process. Figure 4 is a flowchart showing the flow of the first process included in the adjustment process, Figure 5 is a flowchart showing the flow of the second process included in the adjustment process, Figure 6 : is a flowchart showing the flow of the third process included in the adjustment process. Figure 3 It can be understood that the adjustment process is performed in the order of the first process ( S101 ), the second process ( S102 ), and the third process ( S103 ).
[0049] First, based on Figure 4 The first process in the adjustment process is described. The first process is performed by the upper limit FB gain calculation unit 93. Figure 4 In the first process shown, the predetermined index used to calculate the upper limit value of the feedback gain is the settling time measured by the settling time measuring unit 91. First, in S201, a target value of the settling time (target settling time) is set. In a general device 6, a short settling time means that the target position can be reached quickly, so the servo control characteristics of the motor 2 in the device 6 with a short target settling time are good. On the other hand, in order to shorten the settling time, it is necessary to effectively suppress the transition of the vibration near the target position, which is greatly affected by the feedback gain. When the process of S201 is completed, it enters S202.
[0050] In S202, the speed feedforward gain is set to a prescribed reference value. The prescribed reference value is a provisional value, and is set to 30% in the present embodiment. As described above, the purpose of the first process is to calculate the upper limit value of the feedback gain for making the servo control characteristics of the motor 2 the desired characteristics. Therefore, in order to more accurately grasp the servo control characteristics through the prescribed index, the speed feedforward gain is reduced to a state in which the influence of the speed feedforward control is relatively suppressed. In addition, the prescribed reference value of the speed feedforward gain is not limited to 30%, and can be appropriately selected in consideration of the mechanical characteristics of the device 6, etc. If the process of S202 is completed, enter S203.
[0051] In S203, the feedback gain is set to an initial adjustment value. As the initial adjustment value, a relatively low value is used so that the movement of the motor 2 does not suddenly become unstable when the processing after S204 starts. Thereafter, in S204, the motor 2 is driven according to the feedback gain each time in a state where the speed feedforward gain is set to a specified reference value. For example, for this drive, a position instruction for a servo control for positioning a specified distance is provided to the motor 2. During the motor drive, signals from the controllers of the servo driver 4, feedback signals from the encoder 2a, etc. are transmitted to the computer 9, thereby analyzing the movement of the motor 2. As a part of this, the setting time measurement unit 91 measures the setting time.
[0052] Then, in S205, it is determined whether the measured settling time satisfies the target value set in S201. If a positive determination is made in S205, it means that the feedback gain set at the current moment is a value that realizes the desired servo control characteristics, that is, the desired settling time. Therefore, in this case, the processing enters S206, and the feedback gain that realizes the desired settling time is calculated as the upper limit feedback gain, and is stored in the memory of the computer 9. On the other hand, if a negative determination is made in S205, it means that the feedback gain set at the current moment is not a value that realizes the desired servo control characteristics. Therefore, in this case, the processing enters S207, and the feedback gain set at the current moment is increased. In addition, the increase range of the feedback gain can be appropriately adopted. After that, S204 is entered again, and the motor is driven in the state where the increased feedback gain is applied.
[0053] Thus, in the first process, the upper limit value of the feedback gain that can make the servo control characteristics of the motor 2 the desired characteristics is calculated while the speed feedforward gain is set relatively low. Therefore, it should be noted that the feedback gain as the upper limit value is a value that may not be directly applicable to the case where the speed feedforward gain is increased at the current moment.
[0054] Following the first process, the second process is performed. The second process is performed by the FF gain setting unit 94. Figure 5As shown, in the second process, the feedback gain is first set to the adjustment initial value in S301. That is, in the second process following the first process in which the upper limit value of the feedback gain is calculated, the feedback gain is restored to the adjustment initial value which is a relatively low value. On this basis, in the following S302, the speed feedforward gain is set to a gain value (ideally 100%) that is greater than the prescribed reference value and improves the trajectory tracking performance. That is, the speed feedforward gain set to 30% in the first process is set to a higher value (for example, 100%) in the second process as an example. However, in the case of inertia and viscosity changes constituting the control object, the speed feedforward gain set in S302 can also be appropriately adjusted from 100%. In addition, at this time, in order to obtain higher trajectory tracking performance, in addition to the speed feedforward gain, a relatively high gain value can also be set for the torque feedforward gain.
[0055] Then, after the second process, the third process is performed. The third process is performed by the FB gain adjustment unit 95. Figure 6 As shown, in the third process, first in S401, the motor 2 is driven according to the feedback gain set at the current moment while the speed feedforward gain is set to 100%. The driving content of the motor 2 can be any content that can confirm whether there is vibration in the action of the motor 2 according to the set control parameters. During the motor driving, the signals of each controller of the servo driver 4, the feedback signal from the encoder 2a, etc. are transmitted to the computer 9, so as to analyze the action of the motor 2. As a part of it, the vibration detection unit 92 detects vibration. When the processing of S401 is completed, enter S402.
[0056] Then, in S402, it is determined whether vibration is detected by the vibration detection unit 92. If a positive determination is made in S402, it means that the feedback gain set at the current moment is a value higher than the appropriate value due to the detection of vibration. Therefore, in this case, the processing enters S406, and a gain lower than the feedback gain that generates vibration, that is, a feedback gain that has just been set without vibration detected by the vibration detection unit 92, is determined as the final feedback gain. On the other hand, if a negative determination is made in S402, it means that the feedback gain set at the current moment still has room to increase before vibration is detected. Therefore, in this case, the processing enters step S403.
[0057] In S403, the value of the feedback gain at the current moment is compared with the upper limit value of the feedback gain stored in the memory of the computer 9 in the first process to determine whether the former is less than the latter. That is, in S403, it is determined whether the former is increased to reach the latter. If a positive determination is made in S403, the feedback gain is increased in S404, and then the process after S401 is repeated again. The increase range of the feedback gain can be appropriately adopted. In addition, if a negative determination is made in S403, the process enters S405. In S405, the feedback gain is set to the upper limit value.
[0058] Thus, according to the adjustment process so far, the upper limit value of the feedback gain that can realize the desired servo control characteristics is first determined, and on this basis, the speed feedforward gain is set to a value that improves the track following property (for example, 100%) and the feedback gain is increased from the adjustment initial value. Therefore, if vibration is not detected in the third process, the speed feedforward gain that is highly correlated with the track following property can be set to a value that improves the track following property (for example, 100%), and the feedback gain can be determined to a value that makes the settling time a predetermined target value. That is, the two control parameters that can take into account both the appropriate track following property and the desired settling time can be easily adjusted.
[0059] Here, in Figure 7 The result of comparing the change of the following error (the error between the position command and the actual position of the output shaft of the motor 2) of the motor 2 when the speed feedforward gain and feedback gain adjusted according to the adjustment process are set (the change represented by line L11) and the change of the following error when the gain adjustment is performed by the prior art (the change represented by line L12) is shown. In addition, the speed feedforward gain of the former is 100%, and the speed feedforward gain of the latter is 60%. In addition, the feedback gain of the former is smaller than the feedback gain of the latter. It can be seen from this that it is useful to set the speed feedforward gain higher for the following error representing the trajectory tracking performance. Therefore, the adjustment process of this embodiment, which can take into account both appropriate trajectory tracking performance and desired settling time, is an extremely useful method for adjusting control parameters.
[0060] <Modification 1>
[0061] In the position controller 41, the upper limit value of the feedback gain in the first process can also be calculated while filtering the position command based on the position proportional gain or the speed proportional gain in the servo control. If such filtering is performed on the position command, the upper limit value of the feedback gain can be accurately calculated even if the position command in S204 contains a frequency component that causes resonance. Moreover, if the upper limit value is accurate, the feedback gain obtained in the third process without detecting vibration can be said to be an appropriate feedback gain that can achieve the desired servo control characteristics required by the user, and can take into account both appropriate trajectory tracking and desired settling time.
[0062] <Modification 2>
[0063] The feedback gain in the third process may also be adjusted without performing filtering processing based on the position proportional gain or speed proportional gain in the servo control. When such filtering processing is performed, there is a possibility that the trajectory tracking performance is reduced. Here, in the third process, in order to achieve both high trajectory tracking performance and high feedback gain, the feedback gain is adjusted with the speed feedforward gain set to 100%. Therefore, it is not preferable to adjust the feedback gain in a state where the trajectory tracking performance is reduced. Therefore, as described above, it is preferable that the feedback gain is adjusted by the FB gain adjustment unit 95 in the third process with the filtering processing turned off.
[0064] <Variation 3>
[0065] based on Figure 8 A modification of the first process is described. Figure 4 The same processing in the first processing shown in the figure is marked with the same reference number and its detailed description is omitted. Figure 4 The first process shown includes the process of S201. This is because the predetermined index in the first process of this modification is the vibration level during servo control, and information related to the target vibration level is pre-stored in the computer 9. In addition, the vibration of the motor 2 during servo control is obtained by the vibration detection unit 92.
[0066] Then, when the processing of S204 is finished, the processing enters S501. Then, in S501, it is determined whether the vibration level during the servo control of the motor 2 in S204 is below the target level (allowable level). When a positive determination is made in S501, it means that there is still room for increasing the feedback gain because the vibration level is low. Therefore, in this case, the processing enters S207 to increase the feedback gain set at the current moment. In addition, the increase in the feedback gain can be appropriately adopted. After that, S204 is entered again, and the motor is driven in a state where the increased feedback gain is applied. On the other hand, if a negative determination is made in S501, it means that the feedback gain set at the current moment is a value higher than the appropriate value due to the detection of vibration. Therefore, in this case, the processing enters S502, and the gain that makes the vibration level below the target vibration level, that is, the feedback gain just before the positive determination is made in S501 and the FB gain is increased, is calculated as the final feedback gain, and it is kept in the memory of the computer 9.
[0067] By performing the third process through the first process, if no vibration is detected in the third process, the velocity feedforward gain that is highly correlated with the trajectory tracking performance can be set to a value that improves the trajectory tracking performance (for example, 100%), and the feedback gain can be determined to be as high as possible within the range that can suppress the vibration. That is, it is possible to easily adjust the two control parameters that can achieve both appropriate trajectory tracking performance and appropriate vibration suppression.
[0068] <Variation 4>
[0069] based on Fig. 9 Another variation of the first process is described. Figure 4 The same processing in the first processing shown in the figure is marked with the same reference number and its detailed description is omitted. Figure 4 The processing of S201 included in the first processing shown. This is because the prescribed indicator in the first processing of this variant is the peak gain in the frequency response characteristics of the speed closed loop in the servo control structure, the gain margin or phase margin calculated based on the speed open loop. When the peak gain is used as an indicator, the threshold value used as the judgment standard is, for example, set to less than 1 dB. When the gain margin is used as an indicator, the threshold value used as the judgment standard (prescribed gain margin value) is, for example, set to more than 10 dB. When the phase margin is used as an indicator, the threshold value used as the judgment standard (prescribed phase margin) is, for example, set to more than 45 degrees. Information related to each threshold value that serves as these benchmarks is pre-stored in the computer 9. In addition, the peak gain, gain margin or phase margin during the servo control of the motor 2 is obtained by the margin judgment unit 96.
[0070] Then, when the processing of S204 is completed, the processing enters S601. Then, in S601, it is determined whether the peak gain in the frequency response of the speed closed loop during the servo control of the motor 2 in S204, the gain margin or the phase margin calculated based on the speed open loop meet these determination criteria. When a positive determination is made in S601, the peak gain is relatively small, or the gain margin or the phase margin is relatively large, which means that there is still room for increasing the feedback gain. Therefore, in this case, the processing enters S207 to increase the feedback gain set at the current moment. In addition, the increase in the feedback gain can be appropriately adopted. After that, S204 is entered again, and the motor is driven in the state where the increased feedback gain is applied. On the other hand, if a negative determination is made in S601, it means that the feedback gain set at the current moment is a value higher than its appropriate value because the peak gain is relatively large or the gain margin or the phase margin is relatively small. Therefore, in this case, the processing enters S602, and the peak gain is a gain below the corresponding reference threshold, or the gain margin and the phase margin are a gain above the corresponding reference threshold, that is, the feedback gain just before the positive judgment is made in S601 and the FB gain is increased, that is, the feedback gain when the specified indicator satisfies its judgment criteria is calculated as the final feedback gain, and it is maintained in the memory of the computer 9.
[0071] By performing the third processing after the first processing, if the specified index satisfies the judgment criterion in the third processing, the speed feedforward gain which is highly correlated with the trajectory following property can be set to a higher value (e.g., 100%), and the feedback gain can be determined to be as high as possible within the range in which the vibration can be suppressed. That is, the two control parameters which can take into account both the appropriate trajectory following property and the appropriate vibration suppression can be easily adjusted.
[0072] <Additional Note 1>
[0073] A parameter adjustment method is provided for adjusting a control parameter of a control device, wherein the control device comprises a feedback system, wherein the feedback system comprises one or more controllers (41, 42, 43) for feeding back a feedback signal related to servo control of a control object, and the control device comprises a predetermined control structure configured to perform speed feedforward control in the feedback system, wherein the parameter adjustment method comprises:
[0074] The first step (S101) is to calculate an upper limit value of the feedback gain in a state where a speed feedforward gain associated with the speed feedforward control is set to a predetermined reference value and a predetermined index associated with the feedback gain of the feedback signal satisfies a predetermined target value;
[0075] In a second step (S102), the feedback gain is set to an adjustment initial value lower than the upper limit value, and at least the speed feedforward gain is set to a prescribed increase value greater than the prescribed reference value; and
[0076] In the third step (S103), the speed feedforward gain is set to the predetermined increase value, and the feedback gain is adjusted so as to be increased from the adjustment initial value within a range where the feedback gain does not exceed the upper limit value.
[0077] Description of symbols
[0078] 1: Network; 2: Motor; 4: Servo driver; 5: PLC; 9: Computer; 91: Setting time measuring unit; 92: Vibration detecting unit; 93: Upper limit FB gain calculating unit; 94: FF gain setting unit; 95: FB gain adjusting unit.
Claims
1. A parameter adjustment method for adjusting a control parameter of a control device, wherein the control device includes a feedback system, the feedback system includes one or more controllers to which a feedback signal associated with servo control of a controlled object is fed back, and the control device includes a predetermined control structure configured to perform velocity feedforward control in the feedback system, the parameter adjustment method comprising: The first step is to calculate an upper limit value of the feedback gain of the feedback signal within a range where a predetermined index associated with the feedback gain satisfies a predetermined target value, while the speed feedforward gain associated with the speed feedforward control is set to a predetermined reference value; The second step is to set the feedback gain to an adjustment initial value lower than the upper limit value, and at least set the speed feedforward gain to a prescribed increase value greater than the prescribed reference value; as well as In a third step, the feedback gain is adjusted so as to be increased from the adjustment initial value within a range where the feedback gain does not exceed the upper limit value while the speed feedforward gain is set to the predetermined increase value.
2. The parameter adjustment method according to claim 1, wherein: The prescribed increase value is 100%.
3. The parameter adjustment method according to claim 1, wherein: The predetermined index is an index associated with a settling time of the control object when the servo control based on the predetermined control structure is performed. The upper limit value is a value of the feedback gain when the predetermined index is within a target settling time serving as the predetermined target value.
4. The parameter adjustment method according to claim 1, wherein: The predetermined index is an index associated with the vibration of the control object when the servo control based on the predetermined control structure is performed. The upper limit value is a value of the feedback gain at which the predetermined index is at or below the vibration level serving as the predetermined target value.
5. The parameter adjustment method according to claim 1, wherein: The predetermined index is an index related to a closed-loop gain in a frequency response of a speed closed loop in the predetermined control structure, or a gain or a phase obtained from a speed open loop when servo control based on the predetermined control structure is performed. The upper limit value is a value of the feedback gain when the predetermined index is equal to or less than a predetermined peak gain, or a value of the feedback gain when the predetermined index is equal to or greater than a predetermined gain margin value or a predetermined phase margin value.
6. The parameter adjustment method according to claim 1, wherein: In the third step, when the vibration level of the controlled object exceeds an allowable level while the feedback gain is gradually increased from the adjustment initial value, the value of the feedback gain is determined within a range where the vibration level converges to the allowable level.
7. The parameter adjustment method according to any one of claims 1 to 6, wherein: In the first step, the upper limit value of the feedback gain is calculated while performing filtering processing based on a position proportional gain or a speed proportional gain in the servo control.
8. The parameter adjustment method according to any one of claims 1 to 6, wherein: In the third step, the feedback gain is adjusted without performing filtering processing based on the position proportional gain or the speed proportional gain in the servo control.
