Academic Journal of Science and Technology ISSN: 2771-3032 | Vol. 14, No. 1, 2025 236 Synchronous Control of Two Motors Based on Improved Sliding Mode Control Shenghu Pan, Haitao Liu School of Mechatronics Engineering, Southwest Petroleum University, Chengdu Sichuan 610500, China Abstract: With the technological development of the society, permanent magnet synchronous motors are used more and more widely, especially in the two-motor synchronous system. Aiming at the problems of response performance and anti-interference ability of the dual motor synchronous system, this paper proposes an improved sliding mode speed control controller. First, its mathematical model is established by analyzing the mechanical principle and working principle of the permanent magnet synchronous motor. On the basis of the traditional sliding mode controller, the sliding mode surface and convergence rate are improved to obtain the improved sliding mode controller, and the simulation model of the improved sliding mode controller is built. MATLAB/Simulink is used to build a dual motor synchronous system model for verification, and the experimental results show that the improved sliding mode speed controller has no overshooting, fast response speed, and strong anti-jamming ability, and its response performance and anti-jamming ability are better than that of the traditional sliding mode speed controller. Keywords: Dual motor; improved sliding mold; speed control. 1. Introduction AC speed control systems play a crucial role in modern industry and transportation, especially in the context of the rapid development of motor drive technology. As the global concern for energy efficiency and environmental protection intensifies, AC motors, with their advantages of high efficiency, low noise, and simple maintenance, have gradually replaced the traditional DC motors as the mainstream drive solution[1,2]. Permanent magnet synchronous motors are widely used in AC speed control systems due to their simple structure, fast response speed and high power density. Proportional-integral control technology is widely used in dual-motor synchronous systems because of its simple structure and easy digital implementation. However, traditional sliding mode controllers are often difficult to meet the requirements of high-precision control in the face of system uncertainties and external disturbances. In recent years, in order to solve the shortcomings of the traditional sliding mode control in the field of high- performance control of permanent magnet synchronous motor, many scholars have combined various control strategies, such as fuzzy control, self-resistant control, sliding mode control, and model predictive control, in order to enhance the anti- interference ability and dynamic performance of the PMSM speed control system[3–5]. In particular, the successful application of sliding mode control in the motor speed control system significantly enhances the robustness of the system and improves the response speed[6,7]. In order to achieve overshoot-free, fast response and enhanced robustness, researchers have proposed a novel convergence-rate sliding- mode control method, which outperforms the traditional convergence-rate control[8]. In the literature [9], the researcher designed the sliding mode control with optimal integral performance and optimal switching function using dynamic error as the performance index, thus improving the speed response and robustness of the system. Literature [10] , on the other hand, combines a fast twisting algorithm with a perturbation observer for composite control, which effectively suppresses the jitter vibration phenomenon in the sliding mode control. Literature [11] designed a speed controller with an integral sliding mode variable structure and combined it with a load torque observer, which significantly improves the speed control performance of the system. Literature [12] compensated the reference voltage variations caused by motor parameter perturbations by improving the sliding mode exponential convergence law in combination with a disturbance observer, thus enhancing the parameter robustness of the system. Literature [13] introduced an enhanced adaptive sliding mode controller in the speed loop of the speed control system, and although the speed control performance was comprehensively improved, there were some difficulties in implementation. Literature [14] used a self-imposed control structure combined with sliding mode control to optimize the designed extended state observer and nonlinear error feedback control law. Literature [15] designed a full-order sliding mode observer, omitted the low-pass filter, and selected the sigmoid function as the switching function to suppress the system's jitter, and introduced the fuzzy control to improve the robustness of the system. In order to solve the problems such as parameter variation, literature [16] improved the observer for stator resistance, which improves the system accuracy and attenuates the jitter. To address the problems of low accuracy of speed estimation and large jitter, literature [17] adopts a sliding mode observer and designs a new switching function, which effectively eliminates the high-frequency harmonics. Based on the above research, improving the dynamic response of the speed control system and suppressing jitter has become an important research direction in the field of permanent magnet synchronous motors. This paper focuses on the sliding mode control speed governing system for a two- motor synchronous system. In order to verify the characteristics and advantages of sliding mode control. In this paper, simulation verification is carried out through the dual motor synchronous system. Firstly, its mathematical model is established through the permanent magnet synchronous motor, and the relationship between the electromagnetic torque and speed of the motor is established according to its 237 mathematical model, on the basis of the traditional sliding mode controller, the sliding mode surface and convergence rate are improved to obtain the improved sliding mode controller, and the simulation analysis is carried out by constructing the simulation model of the improved sliding mode controller. 2. Mathematical Model of Permanent Magnet Synchronous Motor The mathematical model of permanent magnet synchronous motor is established under the condition of neglecting the change of motor parameters and external disturbances, and the voltage equation can be obtained as follows: d d d d m q q q q q q m d d m f d p d d p p d i u Ri L L i t i u Ri L L i t               (1) Where: ud, id, Ld are the voltage, current, and inductance on the d-axis; uq, iq, Lq are the voltage, current, and inductance on the q-axis; R is the stator winding resistance;ωm is the electrical angular velocity; f is the magnetic chain; p is the number of pole pairs. Also since the surface type permanent magnet synchronous motor has Ld=Lq and Te is the target torque, the torque equation is as follows: e 3 2 qfp iT  (2) which is under the PMSM equation of motion: L q 3d d 2 fm p T i t J J    (3) Where: J is the moment of inertia; TL is the load torque. 3. Improved Design of Sliding Mode Controller 3.1. Design of sliding mold surface Define the state variables of the PMSM system: 1 2 1 ref mx x x       (4) Where, ref is the reference speed of the motor, m is the actual speed value. According to equation equation (3), (4) can be obtained: 1 2 q q 31 ( ) 2 3 2 f m L f m p T ix x J p i J                   (5) Define u , D. 3 2 q f u i p D J         (6) Then Eq. (5) is transformed into: 1 1 2 2 0 1 0 0 0 u D x x x x                        (7) Design the system with a sliding mold surface of: 1 2( )s t xc x (8) Assuming that the system is initially on the sliding mold surface, it can be obtained: 0s  (9) The following integral performance index J for c(t) is minimized by design. 0 2 2 1 2 t t 0 ( ( ) )= ( ) f T x t x tJ dt    (10) T is the terminal time to reach the slip mold surface, solving equation (10) yields. 0 1 0 2 2 ( )2 2 2 ( )2 2 2 ( ) ( ) ( ) t t c t dt c t dt x t e x t c t e           (11)  is the initial condition parameter of the system. Let cm,cp be the initial and final values of c(t) change curve. Combining equations (11)(12) gives: 0 0 0 0 0 t 2 ( ) 2 ( )2 2 2 t 0 t 2 ( )2 t 0 = ( ( ) ) (1 ( )) t t f t f T c t dt c t dt T c t dt J e c t e dt c t e dt               (12) To simplify this integral, redefine c(t) and v(t): 0 ( ) ( ) ( ( ) ) td c t v t c d c dt     (13) Rewrite the objective function J: 0 t 2 2( ( ) t 0 = (1 ( )) f T v t cJ v t e dt       ) (14) Introduce the function g: 2 2( ( ) )(1 ( )) v t cg v t e    (15) According to the Lagrange equation we get. 238 ( ) 0 g d g v dt v        (16) Calculate the derivatives and get: 2 2( ( ) ) 2 2( ( ) ) 2 ( ) ( ) (2 ( ) ) v t c v t c g v t e v d g d v t e dt v dt               (17) Solving the differential equation yields. 2( ) ( ) 1v t v t   (18) obtained by separating the variables and integrals: 2 2 ( ) t t f e c t f e    (19) Substitute the initial value cm and solve for the coefficient f. 1 1 m m c f c    (20) Substitute the final value cp to find the moment T of arrival at the final value. ( 1)1 ln 2 ( 1) m m c T f c    (21) 3.2. Design of sliding mode convergence rate Derivation for the sliding mold surface yields. 1 2 2( ) ( )x xs c t c t x Du     (22) In order to ensure the good dynamic quality of the PMSM motor, the sign function is chosen to replace the exponential convergence rate. The sign function is designed as. 1 0 sgn( ) 0 0 1 0 s s s s      (23) Find the expression for the controller: 2 sgn( 1 [ ( ) ) ]x s qsu c t D   (24) From this, the q-axis reference current is found to be. 2 * 0 sgn( 1 [ ( ) ) ] t q x s qsi t dc D     (25) The block diagram of the improved sliding mode controller structure is shown in Fig. 1. + + sgn (s ) s 2x x1 du/dt ( )c t ( )c t  q 1 / D + + + 1/s qi Figure 1. Block diagram of improved sliding mode controller structure 3.3. Cross-coupled controller design Motor cross-coupling controllers are mainly used to control multi-motor systems, especially when multi-motors work together to solve the mutual interference and coupling problems between motors. In this paper, the cross-coupled controller is selected for dual-motor synchronous control. Its structure is shown in Figure 2. 239 Figure 2. Block diagram of cross-coupled structure 4. Simulation and Verification 4.1. Analysis of single motor simulation results In order to verify the validity of the method in this paper, the vector control strategy adopted by the surface-mounted permanent magnet synchronous motor as the research object, the system adopts the double closed-loop control, the current loop is the inner loop with PI control, and the speed loop is the outer loop with improved sliding mode control, and the simulation system is built by using MATLAB/Simulink. The parameters of the surface-mounted three-phase PMSM used in the simulation are shown as follows: stator resistance Rs = 2.875 Ω, stator inductance Ld = Lq = 8.5 mH, magnetic chain Ψf = 0.175 Wb, pole-pair number P = 4, and rotational inertia J = 0.003 kg-m. The target rotational speed is set to be 1000r/min and a load of 10N-m is applied abruptly at 0.5s. The velocity response curves of the improved sliding mode and the conventional sliding mode are shown in Fig. 2. Where Table 1, Table 2 shows the dynamic performance and anti-interference ability of the control method. Figure 3. Variation curve of single motor speed Table 1. Dynamic performance comparison Overtone (r/min) Adjustment time (t/s) traditional sliding mode 182.5 0.09 improved sliding mode 0 0.02 Table 2. Comparison of anti-interference performance Reduced RPM (r/min) recovery time (t/s) traditional sliding mode 82.3 0.09 improved sliding mode 23.7 0.025 Controller PMSM - + - - ref 1 Controller PMSM - + 2 K1 K2 L1T L2T 0.0 0.2 0.4 0.6 0.8 1.0 0 500 1000 1500 Classical sliding mode Improved sliding mode S pe ed (r /m in ) Time(s) 0.5 0.6 900 950 1000 1050 240 From Fig. 3, Table 1 and Table 2, it can be seen that the overshoot of the improved sliding mode is 0 when the setting speed is 1000 r/min, and its regulation time decreases by 77.8% compared with the traditional sliding mode control. When facing a sudden load of 10N-m, the falling speed of the improved sliding mode decreases by 72.2% compared with the traditional sliding mode control, and the recovery time decreases by 71.2% compared with the traditional sliding mode control. The results show that the proposed improved sliding mode controller outperforms the conventional sliding mode in improving the dynamic performance and anti- interference performance of the speed control system. 4.2. Analysis of dual motor synchronization simulation results The target speed of dual motor synchronization is set to be 1000r/min, and a load of 10N-m is applied abruptly at 0.5s. The speed response curve of the traditional sliding mode dual- motor synchronization is shown in Fig. 4, the speed response curve of the improved sliding mode dual-motor synchronization is shown in Fig. 5, and the curve of the speed difference is shown in Fig. 6. Where Table 3 shows the anti- interference capability of dual motor synchronization. Figure 4. Variation curve of speed of dual motors of conventional sliding mode Figure 5. Improved sliding mode dual motor speed change curve 0.0 0.2 0.4 0.6 0.8 1.0 0 500 1000 1500 PMSM1 PMSM2 S pe ed (r /m in ) Time(s) 0.5 0.6 900 950 1000 1050 0.0 0.2 0.4 0.6 0.8 1.0 0 500 1000 1500 PMSM1 PMSM2 S pe ed (r /m in ) Time(s) 0.5 0.6 950 975 1000 1025 241 Figure 6. Dual motor speed difference change curve Table 3. Comparison of anti-interference performance of dual motors Dual motor speed difference (r/min) recovery time (t/s) traditional sliding mode 10.8 0.11 improved sliding mode 30.9 0.03 From Figures 4, 5 and 6 and Table 3, it can be seen that when setting the synchronous speed of the dual motors at 1000 r/min, the dual motor speed difference of the improved sliding mode decreases by 65% compared with that of the traditional sliding mode control and the recovery time decreases by 72.7% compared with that of the traditional sliding mode control in the face of a suddenly applied load of 10 N-m. The results show that the anti-interference performance of the improved sliding mode controller is better than that of the traditional sliding mode in the dual motor control system. 5. Conclusion In this paper, based on the traditional sliding mode controller, an improved sliding mode controller is designed by replacing the traditional constant sliding mode surface with a sliding mode surface with excellent integral performance, and the sign function is selected to replace the exponential convergence rate. Through simulink simulation, it can be concluded that, relative to the traditional sliding mode control, the improved sliding mode control can effectively reduce the overshooting amount and regulation time, so that the permanent magnet synchronous motor can react faster, so that the reaction time and the speed difference of the two-motor synchronous system are reduced significantly. References [1] LI Z, WANG K, WANG J, et al. Full-coefficient Intelligent Adaptive Position Control of Permanent Magnet Synchronous Linear Motor[J]. Journal of Electrical Engineering & Technology, 2023, 18(3): 1975-1984. [2] ZHENG Y, ZHAO H, ZHEN S, et al. Fuzzy-set theory based optimal robust constraint-following control for permanent magnet synchronous motor with uncertainties[J]. Control Engineering Practice, 2021, 115: 104911. [3] REN Z, ZHANG W. ESO-based PMSM Modelless Fast Supercoil Sliding Mode Prediction Control[J]. JOURNAL OF ELECTRICAL ENGINEERING, 2023: 1-10. [4] LI C,HUANG J,ZHANG Q, et al. Super-Torsion ESO Sliding Mode Active Disturbance Rejection Control[J]. Journal of Shanghai Jiaotong University, 2024: 1-24. [5] ZENG X. The PID control algorithm based on particle swarm optimization optimized BP neural network[J]. Electronic Design Engineering, 2022, 30(11): 69-73, 78. [6] TAN L, GAO J, LUO Y, et al. Super-twisting sliding mode control with defined boundary layer for chattering reduction of permanent magnet linear synchronous motor[J]. Journal of Mechanical Science and Technology, 2021, 35(5): 1829-1840. [7] ZHANG W, DU H,ZHU W, et al. Finite-time speed sensorless control of permanent magnet synchronousmotor based on generalized super-twisting algorithm[J]. Control Theory & Applications, 2021, 38(6): 833-841. [8] ZHOU Z, XIA C, YAN Y, et al. Torque ripple minimization of predictive torque control for PMSM with extended control set[J]. IEEE Transactions on Industrial Electronics, 2017, 64(9): 6930-6939. [9] TONG K, ZHANG X, ZHANG Y, et al. Sliding Mode Variable Structure Control of Permanent Magnet Synchronous Machine Based on a Novel Reaching Law[J]. Proceedings of the CSEE, 2008(21): 102-106. [10] Anonymous. Sliding mode control of PMSG wind turbine based on enhanced exponential reaching law[J]. IEEE Transactions on Industrial Electronics., 2016, 63(10): 6148- 6159. 0.0 0.2 0.4 0.6 0.8 1.0 -30 -20 -10 0 10 20 Classical sliding mode speed difference Improved sliding mode speed difference S pe ed (r /m in ) Time(s) 242 [11] Wang Y, Zhu Y, Feng Y, et al. Novel Convergence Law Sliding Mode Control Strategy for Permanent Magnet Synchronous Motors[J]. Electric Power Automation Equipment, 2021, 41(1): 192-198. [12] DUAN F, TAN G, FENG C, et al. Optimal Sliding Mode Control for Permanent Magnet Synchronous Motor[J]. Electric Machines & Control Application, 2019, 46(2): 6-9, 19. [13] DAN N,YUAN Y,FENG J. Sliding Mode Control of PMSM Based on Fast STA and Disturbance Observer[J]. Computer Simulation, 2020, 37(10): 173-178. [14] LI Z, HU G, CUI J, et al. Sliding-mode Variable Structure Control With Integral Action for Permanent Magnet Synchronous Motor[J]. Proceedings of the CSEE, 2014, 34(3): 431-437. [15] ZHANG X, HOU B, MEI Y. Deadbeat predictive current control of permanent-magnet synchronous motors with stator current and disturbance observer[J]. IEEE Transactions on Power Electronics, 2017, 32(5): 3818-3834. [16] QUAN Z, LIN‐FANG Q, JIAN‐SHOU K. Adaptive enhanced sliding mode control for permanent magnet synchronous motor drives[J]. International Journal of Adaptive Control and Signal Processing, 2015, 29(12): 1484-1496. [17] HOU L, REN Y, WANG H, et al. Sliding Mode Based on Active Disturbance Rejection Control of Speed Governing System for PMSM[J]. Control Engineering of China, 2019, 26(8): 1460-1465.