Position controller, permanent magnet synchronous linear motor control method and system
By using an adaptive double-power terminal sliding mode control method, the sliding mode switching gain is adjusted in real time, which solves the problem of overestimation of switching gain in linear sliding mode control and ensures the high-precision tracking performance of the permanent magnet synchronous linear motor servo system.
Patent Information
- Application Number
- CN202310012756.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-09-02
- Filing Date
- 2023-01-05
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-01-05
AI Technical Summary
Traditional linear sliding mode control in permanent magnet synchronous linear motor servo systems requires setting an excessively large sliding mode switching gain to overcome disturbances. This leads to overestimation of the switching gain when the disturbance amplitude decreases, causing severe control chattering and reducing tracking accuracy.
An adaptive double-power terminal sliding mode control method is adopted. By defining error variables, a double-power terminal sliding mode surface is designed, the equivalent control law and switching control law of sliding mode are calculated, and the sliding mode switching gain is adjusted in real time to avoid overestimation, so as to ensure that the system tracking accuracy is within the preset zero neighborhood.
It enables real-time adjustment of sliding mode switching gain, avoids control chattering, and maintains the high-precision tracking performance of the PMSLM servo system.
Smart Images

Figure CN115940736B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of motor control technology and provides a position controller, a method and system for controlling a permanent magnet synchronous linear motor. Background Technology
[0002] In recent years, to meet the demands of high-speed, high-precision linear servo drives in industrial applications such as high-end CNC machine tools, 3D printing, semiconductor manufacturing, and glass substrate inspection, permanent magnet synchronous linear motors (PMSLMs) have become a key component of linear servos. Unlike traditional linear servo systems that combine rotary motors with ball screws or rack and pinion gears, linear motors eliminate these intermediate mechanical transmission links, eliminating unnecessary backlash and dead zones, and truly achieving efficient and fast direct drive.
[0003] However, the PMSLM is a highly nonlinear and strongly coupled complex system. Its mathematical model often contains uncertainties, and under complex reciprocating motion conditions, it is also susceptible to external disturbances such as parameter mismatch, nonlinear friction, thrust fluctuations, cable disturbances, and load disturbances. To overcome these problems and achieve ideal control performance, many advanced control strategies have been proposed in recent years. Among them, sliding mode control, due to its strong robustness to internal and external disturbances and its simple implementation, has been widely used in PMSLM servo systems. However, when traditional linear sliding mode control is applied to permanent magnet synchronous linear motor (PMSLM) servo systems, a sufficiently large sliding mode switching gain is often required to overcome time-varying disturbances in the PMSLM servo system. When the amplitude of the disturbance decreases, the sliding mode switching gain becomes overestimated, leading to severe control chattering and reducing the tracking accuracy of the PMSLM servo system.
[0004] Therefore, there is an urgent need to design a high-precision holding control method for PMSLM position tracking based on adaptive double power terminal sliding mode. Summary of the Invention
[0005] The purpose of this invention is to provide a control method for a permanent magnet synchronous linear motor (PMSMLM). This method addresses the problem that in the prior art, when linear sliding mode control is applied to a PMSLM servo system, it is often necessary to set a sufficiently large sliding mode switching gain to overcome time-varying disturbances in the servo system. However, when the amplitude of the disturbance decreases, the sliding mode switching gain is overestimated, which leads to severe control chattering and degrades the tracking accuracy of the PMSLM servo system.
[0006] The present invention is implemented as follows: a control method for a permanent magnet synchronous linear motor, the method comprising the following steps:
[0007] Establish the PMSLM electromagnetic thrust equations and the PMSLM second-order dynamic equations containing system disturbances in the ortho-orthogonal coordinate system;
[0008] Define an error variable and design a double-power terminal sliding surface using the error variable as input; then solve the first derivative of the sliding surface and calculate the equivalent control law of the sliding mode while ignoring disturbances;
[0009] Define the continuous terminal sliding mode approach rate and the adaptive switching gain based on the barrier function, and then design the sliding mode switching control law;
[0010] The equivalent sliding mode control law and the sliding mode switching control law are added together to obtain the output control law; this allows the drive pulse signal to be modulated by the output control law and loaded into the PMSLM.
[0011] Another objective of this invention is to provide a position controller, which includes: an equation construction module, a sliding mode equivalent control law calculation module, a sliding mode switching control law calculation module, and a control output module;
[0012] The equation construction module is used to establish the PMSLM electromagnetic thrust equation and the PMSLM second-order dynamic equation containing system disturbances in the ortho-orthogonal coordinate system.
[0013] The sliding mode equivalent control law calculation module is used to define error variables, design a double power terminal sliding surface with the error variables as input, then solve the first derivative of the sliding surface, and calculate the sliding mode equivalent control law while ignoring disturbances.
[0014] The sliding mode switching control law calculation module is used to define the continuous terminal sliding mode approach rate and the adaptive switching gain based on the barrier function, so as to further design the sliding mode switching control law.
[0015] The control output module is used to add the sliding mode equivalent control rate and the sliding mode switching control rate to obtain the output control rate; so that the drive pulse signal can be modulated by the output control rate and loaded into the PMSLM.
[0016] Another objective of this invention is to provide a permanent magnet synchronous linear motor control system, the permanent magnet synchronous linear motor control system comprising: a position controller as described above, and a drive unit;
[0017] The position controller is used to acquire relevant parameters and generate an output control rate for the drive unit;
[0018] The drive unit is used to modulate the drive pulse signal according to the received output control rate and load it onto the PMSLM to drive the motor mover.
[0019] In this embodiment, the drive unit includes a space pulse width modulator (SVPWM) and an inverter. The output control rate generated by the position controller is used as the quadrature axis current setpoint i. q *, Current setpoint i on the direct axis d * equals 0. The inverter applies three-phase current to the PMSLM to drive its operation. The three-phase current is measured by Hall current sensors and, after Clarke transformation, yields two current components i in the stationary coordinate system: the α-axis and β-axis current components. α i β i α i β The current component i under the perpendicular and perpendicular axes is obtained after Park transformation. q and i d Again q and i d and i q *、i d The difference input is fed into the current controller, and the output value of the current controller is used as the direct-axis voltage command u. q * and u d *. u q * and u d *After undergoing the inverse Park transformation, the α-axis and β-axis voltage components u in the stationary coordinate system are obtained. α * and u β *. u α * and u β *The SVPWM spatial pulse width modulation outputs six pulse waves (PWM). The PWM generates three-phase current through the inverter and loads it onto the PMSLM, generating electromagnetic thrust to drive the PMSLM to move linearly.
[0020] Another objective of this invention is to provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the permanent magnet synchronous linear motor control method.
[0021] Another objective of this invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the permanent magnet synchronous linear motor control method.
[0022] The permanent magnet synchronous linear motor control method provided in this invention can realize the sliding mode switching gain can be adjusted in real time according to the change of sliding mode variable (i.e., double power terminal sliding surface), thereby avoiding the overestimation of sliding mode switching gain and ensuring that the tracking accuracy of PMSLM servo system is kept within the preset zero neighborhood, thus avoiding the problem of overestimation of sliding mode switching gain. Attached Figure Description
[0023] Figure 1 A control flowchart of a permanent magnet synchronous linear motor control method provided in an embodiment of the present invention;
[0024] Figure 2 A schematic diagram of a permanent magnet synchronous linear motor control method provided in an embodiment of the present invention;
[0025] Figure 3 This is a graph showing the change of adaptive switching gain in the first stage in an embodiment of the present invention.
[0026] Figure 4 This is a graph showing the change of adaptive switching gain in the second stage in an embodiment of the present invention.
[0027] Figure 5 This is a system disturbance diagram for a traditional PMSLM servo system.
[0028] Figure 6 This is a graph showing the fluctuation of the tracking error of a traditional linear sliding mode under the influence of system disturbances with varying amplitudes.
[0029] Figure 7 This is a control effect diagram of PMSLM in an embodiment of the present invention;
[0030] Figure 8 A structural block diagram of a position controller provided in an embodiment of the present invention;
[0031] Figure 9 A structural block diagram of another position controller provided in an embodiment of the present invention;
[0032] Figure 10 This is a block diagram of the internal structure of a computer device in one embodiment. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0034] like Figure 1 As shown, in one embodiment, a permanent magnet synchronous linear motor control method is proposed, which may specifically include the following steps S101 to S107;
[0035] Step S101: Establish the PMSLM electromagnetic thrust equations and the PMSLM second-order dynamic equations containing system disturbances in the orthogonal coordinate system;
[0036] In this step, the PMSLM electromagnetic thrust equation satisfies:
[0037]
[0038] Among them, F e For PMSLM electromagnetic thrust, τ is the motor pole pitch, and φ is the electric field force. f For permanent magnet flux linkage; L q L d The parameters are the AC and DC axis inductances; these can be found in the motor's design manual or user manual. q i d For AC and DC axis currents; i q i d It can be measured by a Hall current sensor through three-phase current.
[0039] The second-order dynamic equation of the PMSLM satisfies:
[0040]
[0041] in, The first derivative of the location information, For the second derivative of location information, k f Let A be the electromagnetic thrust coefficient, m be the mass of the motor mover, b be the viscous friction coefficient, u be the control input of the second-order dynamic model, A = -b / m, and B = k. f / m, C=-1 / m are both system parameters of the second-order dynamic model, F ∑ This refers to the disturbance in the PMSLM servo system. Position information can be obtained from feedback from the grating encoder, where v is the current motor mover speed, which can be measured by a speed sensor and will not be detailed here.
[0042] Step S103: Define the error variable, design the double power terminal sliding surface with the error variable as input; then solve the first derivative of the sliding surface, and calculate the sliding equivalent control law while ignoring disturbances;
[0043] In this step, the error variable refers to the position tracking error variable, which satisfies:
[0044]
[0045] In the formula: e1 and e2 are the first derivatives of the position tracking error and the position tracking error, respectively.
[0046] Design a double-power terminal sliding surface s:
[0047]
[0048] In the formula: γ1, γ2, λ1, λ2 are sliding surface parameters, and satisfy γ1>0, γ2>0, λ1>λ2, 1<λ2<2;
[0049] When the system reaches the double-power terminal sliding surface, i.e., s = 0, equation (4) can be rewritten in the following form:
[0050]
[0051] Therefore, if equation (5) is to maintain the terminal sliding mode form, the following must be satisfied:
[0052]
[0053] Since s will eventually converge to [-φ, φ], we can further derive the interval of convergence of the systematic error:
[0054]
[0055] Substituting equations (2) and (3) into equation (4), and solving for the first-order differential of the double-power terminal sliding surface, we get the following:
[0056]
[0057] Assume system disturbance F ∑ Let it be 0. Find the sliding mode equivalent control law u eq as follows:
[0058]
[0059] In the formula: u eq Let sign be the sliding mode equivalent control law, and let sign be the sign function, satisfying:
[0060] δ is the dependent variable of the sign function.
[0061] Step S105: Define the continuous terminal sliding mode approach rate and the adaptive switching gain based on the barrier function, so as to further design the sliding mode switching control law;
[0062] Specifically, the continuous terminal sliding mode convergence rate is defined as follows:
[0063]
[0064] In the formula: α1, α2 and β are all sliding mode approach coefficients, and satisfy α1>0, α2>0, 0<β<1;
[0065] Define adaptive switching gain based on the barrier function:
[0066]
[0067] Where t0 is the adaptive rate switching time. For the adaptive rate parameter; t0 can refer to the time when the sliding surface s first enters the neighborhood of [-φ / 2, φ / 2]. K b (s) The design is as follows:
[0068]
[0069] Where φ is a preset positive value.
[0070] In one application scenario, the designed sliding mode switching control law satisfies:
[0071]
[0072] In one application scenario, adaptive switching gain is based on the barrier function:
[0073]
[0074] Where α1, α2, and β are all sliding mode approach rate coefficients, and satisfy α1 > 0, α2 > 0, 0 < β < 1; t0 is the adaptive rate switching time. For adaptive rate parameters;
[0075] In one application scenario, such as Figure 3 , Figure 4 As shown, the adaptive switching gain changes with the current double-power terminal sliding surface s, specifically including:
[0076] As s gradually decreases to zero, the adaptive switching gain will decrease until it is allowed to compensate for system disturbances;
[0077] When the system disturbance increases and the adaptive switching gain is less than the absolute value of the system disturbance, s will increase. At this time, the adaptive switching gain will also increase until it is sufficient to counteract the system disturbance.
[0078] Specifically, in the adaptive rate adjustment process based on the barrier function, the first stage is as follows: assuming the initial value of |s| is greater than φ / 2, the adaptive gain (also called adaptive switching gain or sliding mode switching gain) is initially selected as K. a (t), then K a (t) will keep increasing until... Always satisfy K a (t) is greater than the system disturbance. Correspondingly, the change in the double-power terminal sliding surface s begins to gradually decrease, and K a (t) continues to increase until s satisfies |s|<φ / 2 for the first time at time t0. Therefore, the adaptive gain has an upper limit in the time interval 0<t<t0, that is, there always exists a positive number κ* that satisfies κ*>K. a (t) and κ*>|D|, K aThe entire dynamic process of (t) is as follows Figure 3 As shown;
[0079] Second stage: When t > t0, the adaptive gain switches to K. b (s), its variation curve is as follows Figure 4 As shown, the adaptive gain changes with the current double-power terminal sliding surface s. On one hand, as s gradually decreases to zero, the adaptive gain decreases until it allows compensation for disturbances in the system. On the other hand, when the system disturbance increases and the adaptive gain is less than the absolute value of the system disturbance, s will increase. The adaptive gain will also increase until it is sufficient to offset the system disturbance. Therefore, throughout the adjustment process, the adaptive control gain will not be overestimated, and it can be ensured that s never leaves the predetermined zero neighborhood [-φ, φ]. This characteristic effectively avoids overestimation of the control gain and additional chattering when the system disturbance decreases. Assuming the initial value of |s| is less than φ / 2, the adaptive gain adjustment process directly transitions to the second stage, without the first stage.
[0080] Step S107: Add the sliding mode equivalent control law and the sliding mode switching control law to obtain the output control law; so that the drive pulse signal can be modulated by the output control law and loaded into the PMSLM;
[0081] The output control law u satisfies:
[0082]
[0083] This embodiment presents a permanent magnet synchronous linear motor control method that ensures that the sliding mode switching gain can be adjusted in real time according to the change of s, thereby avoiding overestimation of the control gain and ensuring that the tracking accuracy of the PMSLM servo system remains within the preset zero neighborhood.
[0084] In one application scenario, when the PMSLM servo system position reaches the double-power terminal sliding surface, i.e., s = 0, then:
[0085]
[0086] And it needs to meet the following requirements: This leads to the interval where the system error converges:
[0087]
[0088] In one embodiment, relevant parameters are obtained before establishing the PMSLM electromagnetic thrust equations and the PMSLM second-order dynamic equations containing system disturbances in the ortho-orthogonal coordinate system.
[0089] The relevant parameters include at least: PMSLM electromagnetic thrust F eMotor pole pitch τ, permanent magnet flux linkage φ f ; AC and DC axis inductance L q L d AC and DC axis currents i q i d The first derivative of location information Second derivative of location information Electromagnetic thrust coefficient k f Motor mover mass m, viscous friction coefficient b, second-order dynamic model control input u, PMSLM servo system disturbance F ∑ .
[0090] In this embodiment, the relevant parameters can be acquired or input through a computer device;
[0091] Figure 10 An internal structural diagram of a computer device in this embodiment is shown. This computer device can specifically be a terminal device, such as a mobile phone, a microcomputer (or a server). Figure 10 As shown, the computer device includes a processor, memory, network interface, input device, and display screen connected via a system bus. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores an operating system and may also store computer programs. When executed by the processor, these programs enable the processor to implement a fault detection method. The internal memory may also store computer programs, which, when executed by the processor, enable the processor to implement the fault detection method. The display screen can be an LCD screen or an e-ink screen. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse. Parameters can be input via an external keyboard, touchpad, or mouse; alternatively, the device can connect to a PMSLM servo system via the network interface to obtain information stored in the PMSLM servo system, thereby obtaining the aforementioned parameters, such as the AC and DC axis inductance L. q L d AC and DC axis currents i q i d wait.
[0092] Those skilled in the art will understand that Figure 10The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than shown in the diagram, or combine certain components, or have different component arrangements. The PMSLM servo system may be partially configured as an editable logic controller, so that the relevant parameters can also be obtained through editing input via the editable logic controller.
[0093] In another embodiment, such as Figures 5 to 7 As shown, on a surface-mount PMSLM servo system platform, comparing the method of this embodiment with the traditional linear sliding mode method, the PMSLM motor parameters used are as follows: mover winding phase resistance R = 6.5Ω, quadrature and direct axis inductance L... q =L d =0.008H, permanent magnet flux linkage φ f =0.0918Wb, viscous friction coefficient b = 8.4 N*s / m, motor pole pitch τ = 0.0237 m, motor mover mass m = 1.88 kg. Simultaneously set γ1 = γ2 = 13, λ1 = 1.2, φ = 5 × 10⁻⁶. -5 According to equation (7), the convergence boundary of the system error is calculated to be 30 μm. During the experiment, the motor operates in position loop mode, with the given position being 0, and an additional force is applied to the system. Figure 5 The system disturbance is shown. From Figure 6 It can be seen that the tracking error of traditional linear sliding mode fluctuates by more than 30 μm under the influence of system disturbances with varying amplitudes. In contrast, from Figure 7 As can be seen, the position tracking error in this embodiment fluctuates within 30μm, consistent with the theoretical analysis. This also demonstrates that the method in this embodiment has better accuracy retention.
[0094] Therefore, the permanent magnet synchronous linear motor control method provided in this embodiment of the invention can ensure that the sliding mode switching gain can be adjusted in real time according to the changes of the double power terminal sliding surface (i.e., sliding mode variable), thereby avoiding overestimation of the sliding mode switching gain and ensuring that the tracking accuracy of the PMSLM servo system remains within the preset zero neighborhood. It overcomes the problem that when traditional linear sliding mode control is applied to permanent magnet synchronous linear motor (PMSLM) servo systems, it is often necessary to set a sufficiently large sliding mode switching gain to overcome the time-varying disturbances of the servo system. When the amplitude of the disturbance decreases, the sliding mode switching gain will be overestimated, which will cause serious control chattering and degrade the tracking accuracy of the PMSLM servo system. It has high application value and wide application scenarios, and can meet the needs of high-speed and high-precision linear servo drives in industrial applications such as high-end CNC machine tools, 3D printing, semiconductor manufacturing, and glass substrate inspection.
[0095] In another embodiment, to better implement the above-described permanent magnet synchronous linear motor control method, a position controller 200 is provided, such as... Figure 8 As shown, the position controller 200 includes: an equation construction module 210, a sliding mode equivalent control rate calculation module 220, a sliding mode switching control rate calculation module 230, and a control output module 240;
[0096] The equation construction module 210 is used to establish the PMSLM electromagnetic thrust equation and the PMSLM second-order dynamic equation containing system disturbance in the ortho-orthogonal coordinate system.
[0097] The sliding mode equivalent control law calculation module 220 is used to define error variables, design a double power terminal sliding surface with the error variables as input, then solve the first derivative of the sliding surface, and calculate the sliding mode equivalent control law while ignoring disturbances.
[0098] The sliding mode switching control rate calculation module 230 is used to define the continuous terminal sliding mode approach rate and the adaptive switching gain based on the barrier function, so as to further design the sliding mode switching control rate.
[0099] The control output module 240 is used to add the sliding mode equivalent control rate and the sliding mode switching control rate to obtain the output control rate, so that the drive pulse signal can be modulated by the output control rate and loaded into the PMSLM.
[0100] In one embodiment, such as Figure 9 As shown, the position controller 200 further includes: a parameter acquisition module 201; the parameter acquisition module 201 is used to acquire relevant parameters before the steps of establishing the PMSLM electromagnetic thrust equation and the PMSLM second-order dynamic equation containing system disturbances in the ortho-orthogonal coordinate system; the relevant parameters include: PMSLM electromagnetic thrust F e Motor pole pitch τ, permanent magnet flux linkage φ f ; AC and DC axis inductance L q L d AC and DC axis currents i q i d The first derivative of location information Second derivative of location information Electromagnetic thrust coefficient k f Motor mover mass m, viscous friction coefficient b, second-order dynamic model control input u, PMSLM servo system disturbance F ∑ .
[0101] In another embodiment, a permanent magnet synchronous linear motor control system includes: a position controller as described above, and a drive unit;
[0102] The position controller is used to acquire relevant parameters and generate an output control rate for the drive unit;
[0103] The drive unit is used to modulate the drive pulse signal according to the received output control rate and load it onto the PMSLM to drive the motor mover.
[0104] In this embodiment, as Figure 2 The diagram shown is a block diagram of a permanent magnet synchronous linear motor control system. The position setpoint x* and the feedback value x from the grating encoder are subtracted and input to the position controller. The output of the position controller serves as the quadrature-axis current setpoint i. q *, Current setpoint i on the direct axis d *Equals 0. The three-phase current is measured by a Hall current sensor, and after Clarke transformation, two current components i in the stationary coordinate system are obtained: the α-axis and β-axis current components. α i β i α and i β The current component i under the perpendicular and perpendicular axes is obtained after Park transformation. q and i d i q i d and i q *、i d The difference input is fed into the current controller, and the output value of the current controller is used as the direct-axis voltage command u. q * and u d *. u q * and u d *After undergoing the inverse Park transformation, the α-axis and β-axis voltage components u in the stationary coordinate system are obtained. α * and u β *. u α * and u β *The space pulse width modulator (SVPWM) outputs six pulse waves (PWM). The PWM is then used by the inverter to generate three-phase electricity, which is applied to the PMSLM to generate electromagnetic thrust and drive the PMSLM to move linearly.
[0105] In one practical application of an embodiment, the position controller is an adaptive double-power terminal sliding mode PMSLM position controller.
[0106] In one embodiment, the position controller provided in the above embodiments can be implemented as a computer program, which can be implemented as follows: Figure 10 The fault detection device runs on the computer device shown. The computer device's memory can store the various program modules that make up the fault detection device, for example, Figure 8The equation construction module, sliding mode equivalent control rate calculation module, sliding mode switching control rate calculation module, and control output module shown are included. The computer program composed of these modules enables the processor to execute the steps in the permanent magnet synchronous linear motor control method of the various embodiments of the present invention described in this specification.
[0107] For example, Figure 10 The computer equipment shown can be used as follows Figure 9 The parameter acquisition module shown performs the steps of acquiring relevant parameters. The computer device can perform the steps of adding the sliding mode equivalent control law and the sliding mode switching control law through the control output module to obtain the output control law; enabling the driving pulse signal to be modulated by the output control law and loaded into the PMSLM.
[0108] In one embodiment, a computer device is provided, the computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, performs the following steps:
[0109] Establish the PMSLM electromagnetic thrust equations and the PMSLM second-order dynamic equations containing system disturbances in the ortho-orthogonal coordinate system;
[0110] Define an error variable and design a double-power terminal sliding surface using the error variable as input; then solve the first derivative of the sliding surface and calculate the equivalent control law of the sliding mode while ignoring disturbances;
[0111] Define the continuous terminal sliding mode approach rate and the adaptive switching gain based on the barrier function, and then design the sliding mode switching control law;
[0112] The equivalent sliding mode control law and the sliding mode switching control law are added together to obtain the output control law; this allows the drive pulse signal to be modulated by the output control law and loaded into the PMSLM.
[0113] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, causes the processor to perform the following steps:
[0114] Establish the PMSLM electromagnetic thrust equations and the PMSLM second-order dynamic equations containing system disturbances in the ortho-orthogonal coordinate system;
[0115] Define an error variable and design a double-power terminal sliding surface using the error variable as input; then solve the first derivative of the sliding surface and calculate the equivalent control law of the sliding mode while ignoring disturbances;
[0116] Define the continuous terminal sliding mode approach rate and the adaptive switching gain based on the barrier function, and then design the sliding mode switching control law;
[0117] The equivalent sliding mode control law and the sliding mode switching control law are added together to obtain the output control law; this allows the drive pulse signal to be modulated by the output control law and loaded into the PMSLM.
[0118] In this embodiment, the computer device can be an independent physical server or terminal, or a server cluster consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, cloud storage, and CDN.
[0119] The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and computer equipment can be connected via a network, which is not a limitation of this invention.
[0120] It should be understood that although the steps in the flowcharts of the various embodiments of the present invention are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the various embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.
[0121] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0122] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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 embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
[0124] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A control method for a permanent magnet synchronous linear motor, characterized in that, The method includes the following steps: Establish the PMSLM electromagnetic thrust equations and the PMSLM second-order dynamic equations containing system disturbances in the ortho-orthogonal coordinate system; Define an error variable and design a double-power terminal sliding surface using the error variable as input; then solve the first derivative of the sliding surface and calculate the equivalent control law of the sliding mode while ignoring disturbances; Define the continuous terminal sliding mode approach rate and the adaptive switching gain based on the barrier function, and then design the sliding mode switching control law; The equivalent sliding mode control law and the sliding mode switching control law are added together to obtain the output control law; this allows the drive pulse signal to be modulated by the output control law and applied to the PMSLM. The calculation of the sliding mode equivalent control rate specifically includes the following steps: Design a double-power terminal sliding surface s: , In the formula: Let be the parameters of the sliding surface, and satisfy . ; Substituting the second-order dynamic equation of PMSLM and the error variable into the above equation, and solving for the first-order differential of the double-power terminal sliding surface, we get the following: , Assuming system disturbance Let it be 0. Calculate the sliding mode equivalent control law as follows: , In the formula: The equivalent control law of sliding mode. It is a symbolic function that satisfies: δ is the sign function dependent variable; The designed sliding mode switching control rate satisfies: , Among them, the continuous terminal sliding mode approach rate , Adaptive switching gain based on barrier function: ; in, , and They are all sliding mode reaching coefficients, and satisfy... , , ; It is the adaptive rate switching time. For adaptive rate parameters; , in It is a preset positive value; The adaptive switching gain varies with the current double-power terminal sliding surface s, specifically including: As s gradually decreases to zero, the adaptive switching gain will decrease until it is allowed to compensate for system disturbances; When the system disturbance increases and the adaptive switching gain is less than the absolute value of the system disturbance, s will increase. At this time, the adaptive switching gain will also increase until it is sufficient to offset the system disturbance.
2. The permanent magnet synchronous linear motor control method according to claim 1, characterized in that, Before establishing the PMSLM electromagnetic thrust equations and the PMSLM second-order dynamic equations containing system disturbances in the ortho-orthogonal coordinate system, relevant parameters are obtained. The relevant parameters include at least: PMSLM electromagnetic thrust. Motor pole pitch Permanent magnet magnetic flux AC and DC axis inductors , AC and DC axis currents , The first derivative of location information The second derivative of location information Electromagnetic thrust coefficient Motor rotor mass viscous friction coefficient Second-order dynamic model control input PMSLM servo system disturbance .
3. The permanent magnet synchronous linear motor control method according to claim 1, characterized in that, When the PMSLM servo system position reaches the double-power end sliding surface, that is... Then we have: , And it needs to meet the following requirements: Thus, the interval where the systematic error converges is obtained: 。 4. The control method for a permanent magnet synchronous linear motor according to claim 1, characterized in that, The PMSLM electromagnetic thrust equations satisfy: , in, For PMSLM electromagnetic thrust, The pole pitch of the motor. For permanent magnet flux linkage; , For AC and DC axis inductors, , These are the AC and DC axis currents.
5. The permanent magnet synchronous linear motor control method according to claim 1, characterized in that, The second-order dynamic equation of the PMSLM satisfies: , in, The first derivative of the location information, The second derivative of the location information, This is the electromagnetic thrust coefficient. For the mass of the motor rotor, The coefficient of viscous friction, For the control input of the second-order dynamic model, , , These are all parameters of a second-order dynamic model system. This is a disturbance to the PMSLM servo system.
6. A position controller, characterized in that, The position controller includes: an equation construction module, a sliding mode equivalent control law calculation module, a sliding mode switching control law calculation module, and a control output module; The equation construction module is used to establish the PMSLM electromagnetic thrust equation and the PMSLM second-order dynamic equation containing system disturbances in the ortho-orthogonal coordinate system. The sliding mode equivalent control law calculation module is used to define error variables, design a double power terminal sliding surface with the error variables as input, then solve the first derivative of the sliding surface, and calculate the sliding mode equivalent control law while ignoring disturbances. The sliding mode switching control law calculation module is used to define the continuous terminal sliding mode approach rate and the adaptive switching gain based on the barrier function, so as to further design the sliding mode switching control law. The control output module is used to add the sliding mode equivalent control law and the sliding mode switching control law to obtain the output control law; so that the drive pulse signal can be modulated by the output control law and loaded into the PMSLM; The calculation of the sliding mode equivalent control rate specifically includes the following steps: Design a double-power terminal sliding surface s: , In the formula: Let be the parameters of the sliding surface, and satisfy . ; Substituting the second-order dynamic equation of PMSLM and the error variable into the above equation, and solving for the first-order differential of the double-power terminal sliding surface, we get the following: , Assuming system disturbance Let it be 0. Calculate the sliding mode equivalent control law as follows: , In the formula: The equivalent control law of sliding mode. It is a symbolic function that satisfies: δ is the sign function dependent variable; The designed sliding mode switching control rate satisfies: , Among them, the continuous terminal sliding mode approach rate , Adaptive switching gain based on barrier function: ; in, , and They are all sliding mode reaching coefficients, and satisfy... , , ; It is the adaptive rate switching time. For adaptive rate parameters; , in It is a preset positive value; The adaptive switching gain varies with the current double-power terminal sliding surface s, specifically including: As s gradually decreases to zero, the adaptive switching gain will decrease until it is allowed to compensate for system disturbances; When the system disturbance increases and the adaptive switching gain is less than the absolute value of the system disturbance, s will increase. At this time, the adaptive switching gain will also increase until it is sufficient to offset the system disturbance.
7. A permanent magnet synchronous linear motor control system, characterized in that, The permanent magnet synchronous linear motor control system includes: a position controller as described in claim 6, and a drive unit; The position controller is used to acquire relevant parameters and generate an output control rate for the drive unit; The drive unit is used to modulate the drive pulse signal according to the received output control rate and load it onto the PMSLM to drive the motor mover.
