Iterative learning control method, system and equipment for permanent magnet linear motor and medium
By using the idea of weighted average in the iterative learning control algorithm to calculate the controller gain and iterative input signal, the problem of insufficient anti-interference ability of the traditional algorithm in the networked system is solved, and the accuracy of motor drive speed tracking is improved.
Patent Information
- Application Number
- CN202410638304.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-06
AI Technical Summary
The traditional iterative learning control algorithm has low resistance to external random interference and is not suitable for networked systems, which limits its application scope. In system scenarios with randomness, it is difficult to meet the accuracy requirements of industrial control.
By using the weighted average of historical control inputs and error signals, we gradually approach the ideal control trajectory and reduce the impact of network randomness on system performance. We use a high-order iterative learning control algorithm to calculate the controller gain and the control input signal of the next iteration until The error is less than the preset allowable range.
It effectively reduces the impact of network randomness, improves the accuracy of motor drive speed tracking, and enhances the anti-interference ability of networked control systems.
Smart Images

Figure CN118611526A
Abstract
Description
Technical Field
[0001] The present application relates to the field of motor control technology, and in particular to a method, system, device and medium for iterative learning control of a permanent magnet linear motor. Background Art
[0002] With the development of communication technology, the performance of networked information transmission has been improved. Wireless transmission has received increasing research attention due to its cheap and easy deployment characteristics. Nowadays, more and more control systems have adopted networked configurations. In other words, the controlled object and the controller are not in the same place, and their communication is carried out using wired or wireless networks. This allows workers to monitor and adjust control signals away from the factory, thus avoiding being in a dangerous environment. However, network control also introduces various types of uncertainties, the most direct of which are channel noise and channel fading. In addition, the system itself has measurement noise and process noise, which will make precise control very difficult. Therefore, an effective mechanism is needed to reduce or eliminate the additional random effects brought by network control. In order to solve these problems in networked control systems, researchers have proposed iterative learning control algorithms. However, traditional iterative learning control algorithms have low resistance to external random interference and are not suitable for networked systems, which greatly limits the scope of application of the algorithm. The above problems need to be solved. Summary of the invention
[0003] The main purpose of this application is to overcome the shortcomings and deficiencies of the prior art and to provide an iterative learning control method, system, device and medium for a permanent magnet linear motor. By utilizing historical control inputs and error signals for weighted averaging, the control signal for the next iteration is generated. In this way, the algorithm can gradually approach the ideal control trajectory and reduce the impact of network randomness on system performance.
[0004] In order to achieve the above objectives, this application adopts the following technical solutions:
[0005] In a first aspect, the present application provides an iterative learning control method for a permanent magnet linear motor, comprising the following steps:
[0006] Set the sampling period of the motor;
[0007] According to the sampling period, obtaining the expected trajectory output sequence of the motor sampling;
[0008] Setting an initial input signal of the motor, inputting the initial input signal into the actual motor, and sampling according to the sampling period to obtain an actual sampling output signal sequence of the motor;
[0009] Calculating an error sequence according to the sampled expected trajectory output sequence and the sampled output signal sequence;
[0010] According to the convergence condition, the iterative learning control gain is calculated;
[0011] An iterative learning control law is set according to the error sequence and the control gain, and the control input signal of the next iteration is updated according to the iterative learning control law until the error sequence is smaller than a preset allowable range, and then the iteration is stopped.
[0012] As a preferred technical solution, a model of the motor is also established, specifically:
[0013]
[0014] Among them, A is the system matrix; B is the input matrix; C is the output matrix; is the system process noise; Measure noise for the system; is the discretized expected trajectory; is the discretized system state; k represents the number of iterations; n represents the time series number.
[0015] As a preferred technical solution, the actual sampled output signal sequence of the motor after passing through the fading channel is the sampled output signal sequence z k (n) is:
[0016]
[0017] Among them, y k (n·T S ) is the sampled output signal sequence that has not passed through the fading channel; T S is the sampling period; They represent the inverse of the correction parameter of the output fading gain and the output fading gain respectively.
[0018] As a preferred technical solution, the error sequence:
[0019]
[0020] in, is the error sequence; Output sequence for the expected trajectory of the samples.
[0021] As a preferred technical solution, the convergence condition is:
[0022]
[0023] Where I represents the identity matrix; γ N-i+1 is the weighted gain; ρ N-i+1 is a constant less than 1; L(n) is the learning matrix; C(n+1) is the output matrix at the n+1 sequence moment; B(n) is the input matrix; is the inverse of the output fading gain correction parameter; N is the order.
[0024] As a preferred technical solution, the iterative learning control law is specifically:
[0025]
[0026] in, represents the input control signal of the motor system at the kth iteration, Represents the error sequence at the (n+1) sequence time.
[0027] As a preferred technical solution, the control input signal of the next iteration satisfies:
[0028]
[0029] Among them, T d The time for the motor to iterate.
[0030] In a second aspect, the present application provides an iterative learning control system for a permanent magnet linear motor, which is applied to the iterative learning control method for a permanent magnet linear motor, and includes a sampling module, a trajectory output module, a sampling output signal module, an error module, a control gain module, and an iterative update module;
[0031] The sampling module is used to set the sampling period of the motor;
[0032] The trajectory output module is used to obtain the expected trajectory output sequence of the motor sampling according to the sampling period;
[0033] The sampling output signal module is used to set the initial input signal of the motor, input the initial input signal into the actual motor, and perform sampling according to the sampling period to obtain the actual sampling output signal sequence of the motor;
[0034] The error module is used to calculate the error sequence according to the sampled expected trajectory output sequence and the sampled output signal sequence;
[0035] The control gain module is used to calculate the iterative learning control gain according to the convergence condition;
[0036] The iterative update module is used to set the iterative learning control law according to the error sequence and the control gain, and update the control input signal of the next iteration according to the iterative learning control law until the error sequence is smaller than the preset allowable range, and then stop the iteration.
[0037] In a third aspect, the present application provides an electronic device, the electronic device comprising:
[0038] at least one processor; and,
[0039] a memory communicatively connected to the at least one processor; wherein,
[0040] The memory stores computer program instructions that can be executed by the at least one processor, and the computer program instructions are executed by the at least one processor so that the at least one processor can execute the iterative learning control method for a permanent magnet linear motor.
[0041] In a fourth aspect, the present application provides a computer-readable storage medium storing a program, which, when executed by a processor, implements the iterative learning control method for a permanent magnet linear motor.
[0042] In summary, compared with the prior art, the effective effects brought about by the technical solution provided by this application include at least:
[0043] This application proposes an iterative learning control method for a permanent magnet linear motor and designs a high-order iterative learning control algorithm. By sampling the output and control input of the motor system and using the error sequence to calculate the controller gain and the control input signal of the next iteration, that is, the current and previous control inputs and the error sequence are weighted averaged to generate the control input signal of the next iteration, and the motor output signal is gradually optimized until the error signal is less than a preset allowable range. In this way, the algorithm can gradually approach the ideal control trajectory, effectively reducing the influence of network randomness, thereby improving the accuracy of motor drive speed tracking. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A flowchart of an iterative learning control method for a permanent magnet linear motor provided by one embodiment of the present application;
[0046] Figure 2 A comparison diagram of the output error of the fifth-order algorithm and the output error of the traditional iterative control under the permanent magnet linear motor model provided by one embodiment of the present application;
[0047] Figure 3 System output and expected output trajectory diagrams for the 5th and 30th iterations provided for one embodiment of the present application;
[0048] Figure 4A block diagram of an iterative learning control system of a permanent magnet linear motor provided in one embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0050] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0051] Example:
[0052] Permanent magnet linear motor converts DC electric energy into mechanical energy, and finally realizes the conversion from electric energy to mechanical energy by controlling the current to achieve control of the magnetic field. In response to the networked trajectory tracking control problem of DC motors, this application proposes a high-order iterative learning control algorithm for networked control of permanent magnet linear motors. Iterative learning control algorithms can effectively overcome the problems of DC motors and do not require precise motor models and parameters. However, most of the iterative learning control algorithms used in the industry today have low resistance to external random interference and are not suitable for networked systems, which greatly limits the scope of application of the algorithm. In addition, in the process of iterative learning control, most iterative learning control algorithms require a certain number of iterations before the system output reaches the "optimal" level. However, for system scenarios with randomness, even if the output reaches the "optimal" performance of the algorithm, it still cannot meet the requirements, greatly increasing the engineering difficulty.
[0053] Take the network control problem of permanent magnet linear motor drive speed tracking as an example. When the permanent magnet linear motor completes a certain action, each time iterative learning control is performed, there will be different random interferences due to the existence of the network, making it impossible to complete the action accurately. Therefore, the industrial goal is to achieve the industrial goal in the iterative learning control process, that is, to minimize the impact of randomness in the control process. The algorithm proposed in this application can greatly reduce the impact of randomness in network control and has a high practical application value. The specific idea of the high-order iterative learning control algorithm proposed in this application is to use the idea of weighted averaging, and use the weighted average of the control input and error signal of this and previous times to generate the next control signal, and finally reduce the impact of network randomness.
[0054] See also Figure 1 In one embodiment of the present application, a permanent magnet linear motor iterative learning control method is provided, comprising the following steps:
[0055] First, it is necessary to establish a model of the permanent magnet linear motor, which is as follows:
[0056]
[0057] Among them, x 1,k (t) and x 2,k (t) is the motor position and motor speed, y k (t) is the system output, the output is the motor speed; R represents the resistance, τ is the pole pitch, ψ f is the motor flux, m is the rotor mass, T d is the motor running time, and m represents the moving mass.
[0058] The model of the discrete permanent magnet linear motor is:
[0059]
[0060] in, A is the system matrix; B is the input matrix; C is the output matrix; is the system process noise; Measure noise for the system; is the discretized expected trajectory; is the discretized system state; k represents the number of iterations; n represents the time series number.
[0061] The steps implemented by the high-order iterative learning control algorithm are as follows:
[0062] S1. Set the sampling period T of the permanent magnet linear motor S , the sampled discrete sequence is:
[0063]
[0064] The corresponding discrete time series is
[0065] S2. According to the sampling period, obtain the sampled expected trajectory output sequence y of the permanent magnet linear motor. d (t).
[0066] Furthermore, according to the sampling period T S Sampling is performed to obtain the expected output sequence y of the sample d (n·T S ), Define the sequence as
[0067] S3. Setting an initial input signal of the permanent magnet linear motor, and inputting the initial input signal into the actual permanent magnet linear motor, and performing sampling according to the sampling period to obtain an actual sampling output signal sequence of the motor.
[0068] In this implementation, signal fading is taken into account. Since the signal may be interfered or attenuated during transmission, a fading channel model is introduced, which means that the actual input signal entering the controlled motor system and the output signal reaching the controller may be different from the original signal. Therefore, the actual input entering the permanent magnet linear motor system is
[0069]
[0070] The actual output reaching the controller is:
[0071]
[0072] in, represent the input and output channel additive noise respectively.
[0073] S31. Further, the initial input signal of the permanent magnet linear motor satisfies:
[0074]
[0075] S32, control input u k (t) is applied to the control motor system to obtain the output y of the actual controlled motor system k (t), according to the sampling period T S For k (t) is sampled to obtain the output sequence y k (n·T S ), Define the sequence as Specifically as follows:
[0076]
[0077] The sequence after passing through the fading channel For z k (n), whose specific form is as follows:
[0078]
[0079] in, They represent the inverse of the correction parameter of the output fading gain and the output fading gain respectively.
[0080] S4. Calculate an error sequence according to the expected trajectory output sequence and the output signal sequence.
[0081] Furthermore, the error sequence is:
[0082]
[0083] in, is the error sequence; Output sequence for the discretized desired trajectory.
[0084] S5. According to the convergence condition, the iterative learning control gain is calculated.
[0085] Furthermore, the convergence conditions required to be met are:
[0086]
[0087] Where I represents the identity matrix; γ N-i+1 is the weighted gain, ρN- i+1 is a constant less than 1; L(n) is the learning matrix; C(n+1) is the output matrix at the n+1 sequence moment; B(n) is the input matrix; is the inverse of the output fading gain correction parameter; N is the order.
[0088] S6. An iterative learning control law is set according to the error sequence and the control gain, and the control input signal of the next iteration is updated according to the iterative learning control law until the error sequence is smaller than a preset allowable range, and then the iteration is stopped.
[0089] Furthermore, the iterative learning control law is set as follows:
[0090]
[0091] in, represents the input control signal of the system at the kth iteration, Represents the error sequence at the (n+l) sequence time.
[0092] According to the iterative learning control law, update the control input signal u of the next iteration k+1 (t),u k+1 (t)Satisfy:
[0093]
[0094] Among them, T d The time for the motor to iterate.
[0095] Finally, steps 103 to 106 are repeated, and the iteration is stopped when the error sequence is smaller than the allowable range.
[0096] As another implementation of the present application, the present application will take the following permanent magnet linear motor model as an example to verify the effect of the iterative algorithm adopted in the present application:
[0097] Model of permanent magnet linear motor:
[0098]
[0099] in, C =
[01] ; its expected trajectory is:
[0100] y d (t)=-1.2sin(2πt)-0.2*cos(0.5t)t∈[0, 3].
[0101] in, and are the sampling values of the motor position and motor speed respectively. The resistance is set to R=8.6Ω, m represents the moving mass, which is 1.635kg, τ is the pole distance, which is 0.031m, and ψ f is the flux linkage of the motor, which is 0.35Wb, C=[0 1]. Sampling period T S is 0.01s, and the system iteration running time is T d is 3s. From the permanent magnet linear motor system model, we know that the relative degree of the system is 1, w k (n)~N(0,0.01 2 ), v k (n)~N(0,0.01 2 )and According to the convergence condition of the algorithm in step S5 above, the algorithm shown in step 106 is used: Let the iterative learning control gain L be 26.4283, and the order be 5, γ = {0.4, 0.3, 0.1, 0.1, 0.1}. Finally, refer to Figure 2 , Figure 2The horizontal axis iteration number is the number of iterations, and the vertical axis absolute tracking error is the average absolute tracking error. Figure 2 It can be seen that the error index converges within a finite number of times. As the number of iterations increases, the error index can converge to within the tolerance error at the 20th iteration, that is, the output trajectory of the motor almost matches the expected output trajectory. However, it is difficult for the traditional iterative learning control law to converge to within the tolerance error. Compared with the traditional P-type iterative learning control method, that is, the order N is 1, when the output error reaches an acceptable range, although the convergence speed is reduced, the error is indeed reduced, and the speed is not reduced too much, which proves that the present application can ensure that the tracking error is reduced and the control accuracy is improved under network transmission conditions.
[0102] See also Figure 3 The system output and expected output trajectory diagrams for the 5th and 30th iterations show that the system output trajectory gradually tracks the expected output trajectory as the number of iterations increases.
[0103] In summary, the present application samples the output and control input of the system, and uses the error sequence to calculate the controller gain and the control input signal of the next iteration, that is, the weighted average of the control input and error signal of this and previous times is used to generate the control input signal of the next iteration, and gradually optimizes the motor output signal until the error signal is less than the preset allowable range. In this way, the algorithm can gradually approach the ideal control trajectory, and ultimately effectively reduce the impact of network randomness and improve the accuracy of motor drive speed tracking.
[0104] It should be noted that, for the sake of convenience of description, the aforementioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously.
[0105] Based on the same idea as the iterative learning control method for a permanent magnet linear motor in the above-mentioned embodiment, the present application also provides an iterative learning control system for a permanent magnet linear motor, which can be used to execute the above-mentioned iterative learning control method for a permanent magnet linear motor. For ease of explanation, the structural schematic diagram of an embodiment of an iterative learning control system for a permanent magnet linear motor only shows the parts related to the embodiment of the present application. Those skilled in the art can understand that the illustrated structure does not constitute a limitation on the system, and may include more or fewer components than shown in the diagram, or combine certain components, or arrange the components differently.
[0106] See also Figure 4In another embodiment of the present application, a permanent magnet linear motor iterative learning control system 100 is provided, the system comprising a sampling module 101, a trajectory output module 102, a sampling output signal module 103, an error module 104, a control gain module 105, and an iterative update module 106;
[0107] The sampling module 101 is used to set the sampling period of the motor;
[0108] The trajectory output module 102 is used to obtain the desired trajectory output sequence of the motor sampling according to the sampling period;
[0109] The sampling output signal module 103 is used to set the initial input signal of the motor, input the initial input signal into the actual motor, and perform sampling according to the sampling period to obtain the actual sampling output signal sequence of the motor;
[0110] The error module 104 is used to calculate an error sequence according to the sampled expected trajectory output sequence and the sampled output signal sequence;
[0111] The control gain module 105 is used to calculate the iterative learning control gain according to the convergence condition;
[0112] The iterative updating module 106 is used to set an iterative learning control law according to the error sequence and the control gain, and update the control input signal of the next iteration according to the iterative learning control law until the error sequence is smaller than a preset allowable range, and then the iteration is stopped.
[0113] It should be noted that an iterative learning control system of a permanent magnet linear motor in the present application corresponds one-to-one to an iterative learning control method of a permanent magnet linear motor in the present application. The technical features and beneficial effects described in the embodiment of the above-mentioned iterative learning control method of a permanent magnet linear motor are applicable to the embodiment of an iterative learning control system of a permanent magnet linear motor. For specific contents, please refer to the description in the embodiment of the method of the present application. It will not be repeated here. This is hereby declared.
[0114] In addition, in the implementation of a permanent magnet linear motor iterative learning control system in the above-mentioned embodiment, the logical division of each program module is only an example. In actual applications, the above-mentioned functions can be assigned to different program modules as needed, for example, for the configuration requirements of the corresponding hardware or the convenience of software implementation. That is, the internal structure of the permanent magnet linear motor iterative learning control system is divided into different program modules to complete all or part of the functions described above.
[0115] In another embodiment, an electronic device for implementing an iterative learning control method for a permanent magnet linear motor is provided, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor; when the processor executes the computer program, an iterative learning control method for a permanent magnet linear motor of any embodiment of the present application is implemented.
[0116] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to complete the present application. The one or more module elements may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the device;
[0117] The device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The device may include, but is not limited to, a processor, a memory;
[0118] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the device, and uses various interfaces and lines to connect various parts of the entire device;
[0119] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; in addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0120] Accordingly, the present application also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a permanent magnet linear motor iterative learning control method as described in any one of the above embodiments.
[0121] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0122] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0123] The above embodiments are preferred implementation modes of the present application, but the implementation modes of the present application are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present application should be equivalent replacement methods and are included in the protection scope of the present application.
Claims
1. An iterative learning control method for a permanent magnet linear motor. It is characterized in that The steps include: Set the sampling period of the motor; According to the sampling period, obtaining the expected trajectory output sequence of the motor sampling; Setting an initial input signal of the motor, inputting the initial input signal into the actual motor, and sampling according to the sampling period to obtain an actual sampling output signal sequence of the motor; Calculating an error sequence according to the sampled expected trajectory output sequence and the sampled output signal sequence; According to the convergence condition, the iterative learning control gain is calculated; An iterative learning control law is set according to the error sequence and the control gain, and the control input signal of the next iteration is updated according to the iterative learning control law until the error sequence is smaller than a preset allowable range, and then the iteration is stopped.
2. According to the iterative learning control method of a permanent magnet linear motor as described in claim 1, It is characterized in that It also includes the establishment of a motor model, specifically: Among them, A is the system matrix; B is the input matrix; C is the output matrix; is the system process noise; Measure noise for the system; is the discretized expected trajectory; is the discretized system state; k represents the number of iterations; n represents the time series number.
3. According to the iterative learning control method of a permanent magnet linear motor as described in claim 1, It is characterized in that The actual sampled output signal sequence of the motor after passing through the fading channel is the sampled output signal sequence z k (n) is: Among them, y k (n·T S ) is the sampled output signal sequence that has not passed through the fading channel; T S is the sampling period; They represent the inverse of the correction parameter of the output fading gain and the output fading gain respectively.
4. According to claim 1, a permanent magnet linear motor iterative learning control method, It is characterized in that The error sequence: in, is the error sequence; Output sequence for the expected trajectory of the samples.
5. According to claim 1, a permanent magnet linear motor iterative learning control method, It is characterized in that The convergence condition is: Where I represents the identity matrix; γ N-i+1 is the weighted gain, ρ N-i+1 is a constant less than 1; L(n) is the learning matrix; C(n+1) is the output matrix at the n+1 sequence moment; B(n) is the input matrix; is the inverse of the output fading gain correction parameter; N is the order.
6. According to claim 1, a permanent magnet linear motor iterative learning control method, It is characterized in that The iterative learning control law is specifically: in, represents the input control signal of the motor system at the kth iteration, Represents the error sequence at the (n+1) sequence time.
7. According to claim 1, a permanent magnet linear motor iterative learning control method, It is characterized in that The control input signal of the next iteration satisfies: Among them, T d The time for the motor to iterate.
8. A permanent magnet linear motor iterative learning control system, It is characterized in that A permanent magnet linear motor iterative learning control method applied to any one of claims 1-7, comprising a sampling module, a trajectory output module, a sampling output signal module, an error module, a control gain module, and an iterative update module; The sampling module is used to set the sampling period of the motor; The trajectory output module is used to obtain the expected trajectory output sequence of the motor sampling according to the sampling period; The sampling output signal module is used to set the initial input signal of the motor, input the initial input signal into the actual motor, and perform sampling according to the sampling period to obtain the actual sampling output signal sequence of the motor; The error module is used to calculate the error sequence according to the sampled expected trajectory output sequence and the sampled output signal sequence; The control gain module is used to calculate the iterative learning control gain according to the convergence condition; The iterative update module is used to set the iterative learning control law according to the error sequence and the control gain, and update the control input signal of the next iteration according to the iterative learning control law until the error sequence is smaller than the preset allowable range, and then stop the iteration.
9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores computer program instructions that can be executed by the at least one processor, and the computer program instructions are executed by the at least one processor so that the at least one processor can execute an iterative learning control method for a permanent magnet linear motor as described in any one of claims 1-7.
10. A computer-readable storage medium storing a program, It is characterized in that When the program is executed by a processor, an iterative learning control method for a permanent magnet linear motor as described in any one of claims 1 to 7 is implemented.
