Electric variable load loading device and control method based on fractional-order PID

By using fractional-order PID control algorithm and particle swarm optimization algorithm in the friction and wear testing machine, flexible waveform control of the load is achieved, which solves the problems of single loading form and insufficient accuracy in the existing technology, and improves the measurement accuracy of the friction and wear test. and control effects.

CN114911155BActive Publication Date: 2024-09-20YANSHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210621209.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2024-09-20
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

The loading modes of existing friction and wear testing machines are mostly constant values, which makes it difficult to simulate complex friction processes, and the control system is single, making it difficult to achieve high-precision loading control.

Method used

An electric variable load loading device and control method based on fractional-order PID is adopted, including a loading mechanism, an electric translation stage mechanism and a transmission mechanism. The control parameters are optimized through the fractional-order PID control algorithm and particle swarm optimization algorithm to achieve flexible waveform control of the load and Accurate loading.

Benefits of technology

It achieves stable and rapid control of the load, overcomes the limitation of traditional testing machines that can only perform constant loading, improves the measurement accuracy and control accuracy of the experiment, and can simulate complex friction environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114911155B
    Figure CN114911155B
Patent Text Reader

Abstract

The present invention relates to an electric variable load loading device and control method based on fractional-order PID, belonging to the field of design and control technology, the device comprises a loading mechanism controlled by an industrial computer, an electric translation stage mechanism and a transmission mechanism, the loading mechanism is fixedly arranged on the electric translation stage mechanism, the electric translation stage mechanism is arranged on a frame, a transmission mechanism is arranged in the frame, and a pulley is arranged under the frame; the control method comprises the conduction of a loading test, the adjustment of the radius of the running track of the loading mechanism, the control of the rotation of the sample stage, the use of a fractional-order PID to control the loading system, the use of different loading waveforms to carry out loading tests, the real-time display and control of test data, and the acquisition of friction force and friction coefficient during loading. The device of the present invention has a simple structure, adopts a fractional-order PID control algorithm, has a simple control structure, expands the adjustable range of parameters, has higher control accuracy, and realizes stable and rapid control of the loading pressure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an electric variable load loading device and a control method based on fractional-order PID, belonging to the technical field of design and control. Background Art

[0002] Friction and wear are common problems in life. During the operation of machines or equipment, friction and wear between parts in contact with each other are inevitable. It will cause mechanical energy loss, generate noise, deform parts, and affect their life. The friction and wear testing machine is a simulation testing machine that can explore the friction and wear performance of a characteristic material under given conditions and obtain the friction force and friction coefficient. The emergence of friction and wear testing machines plays a significant role in reducing energy loss and improving production efficiency in production. However, most of the current testing machines have a constant loading form and a relatively simple control system, which makes it difficult to simulate friction processes that require high loading accuracy and more complex movements. Summary of the invention

[0003] The purpose of the present invention is to provide an electric variable load loading device and a control method based on fractional-order PID to solve the above problems.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is:

[0005] An electric variable load loading device based on fractional-order PID comprises a loading mechanism controlled by an industrial computer, an electric translation platform mechanism and a transmission mechanism, wherein the loading mechanism is fixedly arranged on the electric translation platform mechanism, the electric translation platform mechanism is arranged on a frame, a transmission mechanism is arranged in the frame, and a pulley is arranged under the frame.

[0006] A further improvement of the technical solution of the present invention is that the loading mechanism includes a loading mechanism servo motor, a pressure sensor, an electric cylinder and a friction pressure head. The loading mechanism servo motor is connected to the electric cylinder through a connecting block. The other end of the electric cylinder is connected to the friction pressure head, and a pressure sensor is provided in the electric cylinder. The loading mechanism servo motor converts rotational motion into linear motion in the vertical direction through a synchronous belt inside the connecting block and a lead screw inside the electric cylinder.

[0007] A further improvement of the technical solution of the present invention is that the electric translation stage mechanism includes an electric translation stage mechanism stepper motor, a synchronous belt, a lead screw, a slider and a base; the electric translation stage mechanism stepper motor is fixedly arranged at one end of the frame, and the electric translation stage mechanism stepper motor is connected to a lead screw, and the lead screw passes through the base and the slider on the side of the electric translation stage mechanism stepper motor in turn, and the other end is connected to the base away from the electric translation stage mechanism stepper motor, the two bases are arranged in parallel, and another lead screw parallel to the lead screw is also arranged between the two bases, the two lead screws are provided with a synchronous belt to ensure the synchronous operation of the two lead screws, and the two lead screws are also provided with a slider that can move between the two bases, the slider is connected to the electric cylinder, and then the entire loading mechanism is fixed on the slider.

[0008] A further improvement of the technical solution of the present invention is that the transmission mechanism includes a transmission mechanism servo motor and a sample stage, the sample stage includes a rotating area and a fixed area arranged upper and lower, the rotating area corresponds to the friction pressure head and can load the sample, and a friction connecting rod is provided inside the fixed area to drive the rotating area to rotate, and the rotation of the friction connecting rod is driven by the transmission mechanism servo motor through an internal synchronous belt.

[0009] A control method for an electric variable load loading device based on fractional-order PID comprises the following steps:

[0010] Step 1: The industrial computer collects the pressure signal of the pressure sensor through the control box, processes the collected pressure signal, and then obtains the error signal by subtracting it from the given expected input signal; after the fractional-order PID control algorithm, the generated output signal is sent through the control box to send a torque command of -10V to +10V to the driver of the loading mechanism servo motor. After receiving the command, the driver drives the loading mechanism servo motor to operate. The loading mechanism servo motor converts the rotational motion into a linear motion in the vertical direction through the synchronous belt and the lead screw, thereby realizing the loading test of the friction head on the sample table;

[0011] Step 2: The industrial computer sends pulse signals and digital signals to the driver of the stepper motor of the electric translation stage mechanism respectively to control the speed and direction of the stepper motor of the electric translation stage mechanism. The synchronous belt ensures that the two lead screws run synchronously. The lead screw drives the slider to move between the two bases. The loading mechanism is fixed on the slider, so that the running track radius of the loading mechanism can be adjusted.

[0012] Step 3: The industrial computer uses the control box to send a -10V-+10V speed command to the driver of the transmission mechanism servo motor. The transmission mechanism servo motor drives the rotating area of ​​the sample stage through the synchronous belt and the friction connecting rod. When -10V~0V, the sample stage is controlled to rotate clockwise, and when 0~+10V, the sample stage is controlled to rotate counterclockwise;

[0013] Step 4: Use fractional-order PID to control the loading system. The controller transfer function is: C(s) = K p +K i s -λ +K d s μ ; K P , K i , K d is the adjustment parameter of the controller, λ and μ are the integral order and differential order of the controller respectively;

[0014] Step 5: Use different loading waveforms to carry out loading tests;

[0015] Step 6: The test data is transmitted from the control box to the industrial computer and displayed and controlled in real time through the interface;

[0016] Step 7: Obtaining the friction force and friction coefficient during loading.

[0017] A further improvement of the technical solution of the present invention is that: in step 4, the fractional-order PID control is used to control the loading system of the testing machine, and the fractional-order calculus operator is approximated by the Oustaloup approximation method. Assuming that the selected fitting frequency band is (ω b ,ω h ), its approximate rational transfer function model is

[0018]

[0019] in

[0020]

[0021] Where r is the fractional order, 2N+1 is the number of approximations, ω b and ω h are the selected upper and lower limits of the fitting frequency, respectively;

[0022] The particle swarm optimization algorithm is used in the fractional-order PID controller to optimize the controller parameters. The particle swarm optimization algorithm with improved inertia weight ω is used to optimize the controller parameters. The formula of improved inertia weight ω is:

[0023]

[0024] Among them, ω is the inertia weight coefficient, which is generally 0.4 to 0.9, t is the current iteration number, t max is the maximum number of iterations.

[0025] A further improvement of the technical solution of the present invention is that the loading waveform in step 5 is one of constant value loading, triangle wave loading, square wave loading and sine wave loading, and the amplitude and period of the loading waveform can be freely set.

[0026] A further improvement of the technical solution of the present invention is that the test data in step 6 includes the torque and loading load of the servo motor of the transmission mechanism, the collected data is subjected to de-extreme value average filtering to eliminate interference, and then the obtained experimental data is converted into a waveform diagram using QtCharts on an industrial computer.

[0027] The further improvement of the technical solution of the present invention is that the specific steps of step 7 are: firstly, the no-load torque T0 of the servo motor of the transmission mechanism in the transmission mechanism is obtained, and then the loading mechanism is loaded with a load F N Carry out loading test to obtain the load F of the servo motor of the transmission mechanism N The output torque T under loading, the distance R between the friction head and the center of the sample stage rotation area, the friction force f and the friction coefficient μ during loading can be expressed as

[0028]

[0029] Due to the adoption of the above technical solution, the technical effects achieved by the present invention are as follows:

[0030] The electric variable load friction and wear testing device of the present invention has a simple structure, is easy to obtain experimental parameters, and is easy to operate.

[0031] The loading system of the electric variable load friction and wear testing device of the present invention adopts a fractional-order PID control algorithm, which has a simple control structure and has two more adjustable parameters than conventional PID control, thereby expanding the adjustable range of parameters, achieving higher control accuracy, and realizing stable and rapid control of loading pressure.

[0032] The electric variable load friction and wear testing device of the present invention can perform variable load loading of different waveforms and the amplitude and period of the waveform can be freely set, which overcomes the difficulty that previous testing machines can only perform constant value loading and are difficult to simulate more complex friction environments.

[0033] The experimental data of the electric variable load friction and wear testing device of the present invention is monitored in real time, which eliminates the influence of fluctuations on the measurement results to a certain extent, making the measurement accuracy of the experiment more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a schematic diagram of the three-dimensional structure of the device of the present invention;

[0035] Figure 2 is a front view of the device of the present invention;

[0036] Figure 3 It is a left side view of the device of the present invention;

[0037] Figure 4 is a top view of the device of the present invention;

[0038] Figure 5 It is a structural block diagram of a fractional-order PID controller of a loading system of an electric variable load friction and wear testing device of the present invention;

[0039] Figure 6-9 It is a tracking curve diagram of the electric variable load friction and wear test device of the present invention under loading loads of different waveforms and amplitudes, and compares the adopted fractional order PID control with the traditional PID control;

[0040] Figure 10-13 The friction curve diagram of the electric variable load friction and wear test device of the present invention under loads of different waveforms and amplitudes, and the adopted fractional order PID control is compared with the traditional PID control;

[0041] Figure 14-17 The friction coefficient curve of the electric variable load friction and wear test device of the present invention under loads of different waveforms and amplitudes, and the adopted fractional order PID control is compared with the traditional PID control;

[0042] Among them, 1. servo motor of loading mechanism, 2. pressure sensor, 3. electric cylinder, 4. base, 5. synchronous belt, 6. friction pressure head, 7. sample table, 8. pulley, 9. servo motor of transmission mechanism, 10. frame, 11. lead screw, 12. stepper motor of electric translation stage mechanism, 13. slider. DETAILED DESCRIPTION

[0043] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0044] An electric variable load loading device based on fractional-order PID, such as Figure 1-4 As shown, it includes a loading mechanism, an electric translation platform mechanism and a transmission mechanism controlled by an industrial computer. The loading mechanism is fixedly arranged on the electric translation platform mechanism, and the electric translation platform mechanism is arranged on a frame 10. A transmission mechanism is arranged in the frame 10, and a pulley 8 is arranged at the bottom of the frame 10.

[0045] The loading mechanism includes a loading mechanism servo motor 1, a pressure sensor 2, an electric cylinder 3 and a friction pressure head 6. The loading mechanism servo motor 1 is connected to the electric cylinder 3 through a connecting block. The other end of the electric cylinder 3 is connected to the friction pressure head 6, and the pressure sensor 2 is provided in the electric cylinder 3. The loading mechanism servo motor 1 converts rotational motion into linear motion in the vertical direction through the synchronous belt inside the connecting block and the screw inside the electric cylinder 3.

[0046] The electric translation platform mechanism includes an electric translation platform mechanism stepper motor 12, a synchronous belt 5, a lead screw 11, a slider 13 and a base 4; the electric translation platform mechanism stepper motor 12 is fixedly arranged at one end of the frame 10, and the electric translation platform mechanism stepper motor 12 is connected to a lead screw 11, and the lead screw 11 passes through the base 4 and the slider 13 on the side of the electric translation platform mechanism stepper motor 12 in sequence, and the other end is connected to the base 4 away from the electric translation platform mechanism stepper motor 12, the two bases 4 are arranged in parallel, and another lead screw 11 parallel to the lead screw 11 is also provided between the two bases 4, the two lead screws 11 are provided with a synchronous belt 5 to ensure the synchronous operation of the two lead screws 11, and the two lead screws 11 are also provided with a slider 13 that can move between the two bases 4, the slider 13 is connected to the electric cylinder 3, and then the entire loading mechanism is fixed on the slider 13.

[0047] The transmission mechanism includes a transmission mechanism servo motor 9 and a sample stage 7. The sample stage 7 includes a rotating area and a fixed area arranged upper and lower. The rotating area corresponds to the friction pressure head 6 and can load samples. A friction connecting rod is provided inside the fixed area to drive the rotating area to rotate. The rotation of the friction connecting rod is driven by the transmission mechanism servo motor 9 through a synchronous belt inside a connecting block connected to the fixed area.

[0048] A control method for an electric variable load loading device based on fractional-order PID comprises the following steps:

[0049] Step 1: The industrial computer collects the pressure signal of the pressure sensor 2 through the control box, processes the collected pressure signal, and then obtains the error signal by subtracting it from the given expected input signal; after the fractional-order PID control algorithm, the generated output signal is sent through the control box with a torque instruction of -10V to +10V to act on the driver of the loading mechanism servo motor 1. After receiving the instruction, the driver drives the loading mechanism servo motor 1 to operate. The loading mechanism servo motor 1 converts the rotational motion into a linear motion in the vertical direction through the synchronous belt and the lead screw, thereby realizing the loading test of the friction head 6 on the sample table 7;

[0050] Step 2: The industrial computer sends pulse signals and digital signals to the driver of the stepper motor 12 of the electric translation stage mechanism, respectively, to control the speed and direction of the stepper motor 12 of the electric translation stage mechanism. The synchronous belt 5 ensures that the two lead screws 11 run synchronously. The lead screw 11 drives the slider 13 to move between the two bases 4. The loading mechanism is fixed on the slider 13, so as to adjust the running track radius of the loading mechanism.

[0051] Step 3: The industrial computer uses the control box to send a -10V-+10V speed command to the driver of the transmission mechanism servo motor 9. The transmission mechanism servo motor 9 drives the rotating area of ​​the sample stage 7 to rotate through the synchronous belt and the friction connecting rod. When -10V~0V, the sample stage 7 is controlled to rotate clockwise, and when 0~+10V, the sample stage 7 is controlled to rotate counterclockwise;

[0052] Step 4: Use fractional-order PID to control the loading system. The controller transfer function is: C(s) = K p +K i s -λ +K d s μ , the control block diagram is as follows Figure 5 As shown, K P , K i , K d is the adjustment parameter of the controller, λ and μ are the integral order and differential order of the controller respectively.

[0053] 1) Implementation

[0054] Since the fractional calculus operator is an irrational function, it cannot be directly used in numerical simulation and practical applications. Therefore, using a finite differential equation to approximate it is the key to the mathematical realization of the fractional calculus operator. The present invention uses Oustaloup to approximate it. Assuming that the selected fitting frequency band is (ω b ,ω h ), its approximate rational transfer function model is

[0055]

[0056] in

[0057]

[0058] Where r is the fractional order, 2N+1 is the number of approximations, ω b and ω h are the selected upper and lower limits of the fitting frequency respectively.

[0059] 2) Controller parameter tuning

[0060] Since the fractional-order PID controller has two more adjustable parameters, the control of the controller is more flexible, but it also poses difficulties in the parameter setting of the fractional-order PID controller. Only by reasonably selecting the parameters can a more ideal control effect be achieved. The present invention uses the particle swarm optimization algorithm in the fractional-order PID controller to optimize and set the controller parameters.

[0061] Particle Swarm Optimization (PSO) is a swarm intelligence optimization algorithm proposed by Eberhart and Kenney in 1995 by simulating bird predation behavior. In a D-dimensional target search space, there are N particles forming a particle group, and the position and velocity of the i-th particle are x i =(x i1 ,x i2 ,···,x iD ) and v i =(v i1 ,v i2 ,···,v iD ), the optimal position searched by the particle is called the individual extreme value p best =(p i1 ,p i2 ,···,p iD ), the optimal position currently searched by the particle group is called the global extreme value g best =(p g1 ,p g2 ,···,p gD ), in the iterative process, the particle updates its speed and position through its own individual extreme value and the global extreme value of the group, until the set iteration termination condition is met to obtain the optimal solution and reference the fitness function as the evaluation factor. The specific update formula is as follows:

[0062]

[0063] Where: i = 1, 2 ... N is the number of particles, d = 1, 2 ... D is the vector dimension, k is the current number of iterations, c1, c2 are non-negative weight coefficients, r1, r2 are random numbers distributed in the interval [0, 1], and ω is the inertia weight factor, which is used to adjust the global and local search capabilities of the algorithm. The present invention adopts an improved ω inertia weight formula

[0064]

[0065] Take the weight coefficient ω max =0.9,ω min =0.4, t max is the maximum number of iterations, and t is the current number of iterations. After the improvement, the rate of change of the inertia weight is no longer fixed. The introduction of the rand function reflects the randomness of the particle swarm search process. In the early stage of the particle swarm search, ω changes slowly and takes a larger value, which increases the global search ability of the particles. In the later stage, ω changes quickly and takes a smaller value, which improves the local search ability, thereby achieving a good solution effect. The fitness function uses the ITAE integral evaluation function.

[0066]

[0067] Where e(t) is the error.

[0068] The fractional-order PID control is used to control the loading system of the test machine and compared with the conventional PID control. When the differential order and integral order of the fractional-order PID are 1, it is the conventional PID control, and its controller transfer function is: from Figure 6-9 It can be seen that the fractional-order PID control has a faster response speed and a smaller overshoot. Therefore, the fractional-order PID control has a higher load tracking accuracy, better control effect, and stronger anti-interference ability.

[0069] Step 5: Perform loading tests using different loading waveforms

[0070] The loading waveform can be selected from constant value loading, triangle wave loading, square wave loading, and sine wave loading, and the amplitude and period of the loading waveform can be freely set.

[0071] Step 6: The test data is transmitted from the control box to the industrial computer for real-time display and control

[0072] The collected data mainly include the torque and loading load of the servo motor 9 of the transmission mechanism. The collected data are subjected to extreme value average filtering to eliminate interference and then the obtained experimental data are converted into a waveform chart using QtCharts.

[0073] Step 7: Obtaining the friction force and friction coefficient during loading

[0074] The friction force is obtained by an indirect measurement method. First, the transmission mechanism servo motor 9 in the transmission mechanism drives the sample stage 7 to run unloaded at a speed of 60r / min to obtain the unloaded torque T0 of the transmission mechanism servo motor 9. Then, the loading mechanism performs a loading test to obtain the output torque T of the transmission mechanism servo motor 9 under force loading. The distance R between the friction head 6 and the center of the rotating area of ​​the sample stage 7 is measured by a vernier caliper. The friction force f and friction coefficient μ during the loading process can be expressed as:

[0075]

[0076] where F N is the loading pressure.

[0077] Figure 10-13 14-17 are respectively the friction force and friction coefficient curves of the electric variable load friction and wear test device of the present invention under loads of different waveforms and amplitudes.

[0078] The embodiments described above are merely descriptions of preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. An electric variable load loading device based on fractional-order PID, characterized in that: It comprises a loading mechanism, an electric translation platform mechanism and a transmission mechanism controlled by an industrial computer, wherein the loading mechanism is fixedly arranged on the electric translation platform mechanism, the electric translation platform mechanism is arranged on a frame (10), a transmission mechanism is arranged in the frame (10), and a pulley (8) is arranged below the frame (10); The loading mechanism comprises a loading mechanism servo motor (1), a pressure sensor (2), an electric cylinder (3) and a friction pressure head (6); the loading mechanism servo motor (1) is connected to the electric cylinder (3) via a connecting block; the other end of the electric cylinder (3) is connected to the friction pressure head (6); and the electric cylinder (3) is provided with a pressure sensor (2); the loading mechanism servo motor (1) converts rotational motion into vertical linear motion via a synchronous belt inside the connecting block and a lead screw inside the electric cylinder (3); The electric translation platform mechanism comprises an electric translation platform mechanism stepper motor (12), a synchronous belt (5), a lead screw (11), a slider (13) and a base (4); the electric translation platform mechanism stepper motor (12) is fixedly arranged at one end of the frame (10), and the electric translation platform mechanism stepper motor (12) is connected to a lead screw (11), and the lead screw (11) passes through the base (4) and the slider (13) on the side of the electric translation platform mechanism stepper motor (12) in sequence, and then the other end is connected to the base (4) and the slider (13) away from the electric translation platform mechanism stepper motor (12). The two bases (4) are connected to a base (4) of a machine (12), the two bases (4) are arranged in parallel, and another lead screw (11) parallel to the lead screw (11) is provided between the two bases (4), the two lead screws (11) are provided with a synchronous belt (5) for ensuring the synchronous operation of the two lead screws (11), the two lead screws (11) are also provided with a slider (13) capable of moving between the two bases (4), the slider (13) is connected to the electric cylinder (3), and the entire loading mechanism is fixed on the slider (13); The transmission mechanism comprises a transmission mechanism servo motor (9) and a sample stage (7), wherein the sample stage (7) comprises a rotating area and a fixed area arranged above and below, wherein the rotating area corresponds to the friction pressure head (6) and can load the sample, and wherein a friction connecting rod is arranged inside the fixed area to drive the rotating area to rotate, and the rotation of the friction connecting rod is driven by the transmission mechanism servo motor (9) through an internal synchronous belt; The control method of the electric variable load loading device based on fractional-order PID comprises the following steps: Step 1: The industrial computer collects the pressure signal of the pressure sensor (2) through the control box, processes the collected pressure signal, and then obtains the error signal by subtracting it from the given expected input signal; after the fractional-order PID control algorithm, the generated output signal is sent through the control box to send a torque instruction of -10V to +10V to act on the driver of the loading mechanism servo motor (1); after receiving the instruction, the driver drives the loading mechanism servo motor (1) to operate, and the loading mechanism servo motor (1) converts the rotational motion into a linear motion in the vertical direction through the synchronous belt and the lead screw, thereby realizing the loading test of the friction head (6) on the sample table (7); Step 2: The industrial computer sends a pulse signal and a digital signal to the driver of the stepper motor (12) of the electric translation platform mechanism, respectively, to control the speed and direction of the stepper motor (12) of the electric translation platform mechanism, and the synchronous belt (5) ensures that the two lead screws (11) run synchronously, and the lead screw (11) drives the slider (13) to move between the two bases (4). The loading mechanism is fixed on the slider (13), so that the running track radius of the loading mechanism can be adjusted; Step 3: The industrial computer uses the control box to send a -10V-+10V speed command to the driver of the transmission mechanism servo motor (9), and the transmission mechanism servo motor (9) drives the rotating area of ​​the sample stage (7) to rotate through the synchronous belt and the friction connecting rod, wherein -10V to 0V controls the sample stage (7) to rotate clockwise, and 0 to +10V controls the sample stage (7) to rotate counterclockwise; Step 4: Use fractional-order PID to control the loading system. The controller transfer function is: C(s) = K p +K i s -λ +K d s μ ; K P , K i , K d is the adjustment parameter of the controller, λ and μ are the integral order and differential order of the controller respectively; the fractional-order PID control is used to control the loading system of the test machine, and the Oustaloup approximation method is used to approximate the fractional-order calculus operator. Assuming that the selected fitting frequency band is (ω b ,ω h ), its approximate rational transfer function model is in Where r is the fractional order, 2N+1 is the number of approximations, ω b and ω h are the selected upper and lower limits of the fitting frequency, respectively; The particle swarm optimization algorithm is used in the fractional-order PID controller to optimize the controller parameters. The particle swarm optimization algorithm with improved inertia weight ω is used to optimize the controller parameters. The formula of improved inertia weight ω is: Among them, ω is the inertia weight coefficient, which is generally 0.4 to 0.9, t is the current iteration number, t max is the maximum number of iterations; Step 5: Use different loading waveforms to carry out loading tests; Step 6: The test data is transmitted from the control box to the industrial computer and displayed and controlled in real time through the interface; Step 7: Obtaining the friction force and friction coefficient during loading.

2. The electric variable load loading device based on fractional-order PID according to claim 1 is characterized in that: The loading waveform in step 5 is one of constant value loading, triangle wave loading, square wave loading and sine wave loading, and the amplitude and period of the loading waveform can be freely set.

3. The electric variable load loading device based on fractional-order PID according to claim 1 is characterized in that: The test data in step 6 include the torque and loading load of the transmission mechanism servo motor (9). The collected data are subjected to extreme value average filtering to eliminate interference, and then the obtained experimental data are converted into a waveform diagram using QtCharts on an industrial computer.

4. The electric variable load loading device based on fractional-order PID according to claim 1 is characterized in that: The specific steps of step 7 are: firstly, obtaining the no-load torque T0 of the transmission mechanism servo motor (9) in the transmission mechanism when it is running no-load, and then loading the mechanism with a load F N Carry out a loading test to obtain the load F of the transmission mechanism servo motor (9) N The output torque T under loading, the distance R between the friction head (6) and the center of the rotating area of ​​the sample stage (7), the friction force f and the friction coefficient μ during loading can be expressed as: