# Electrical Automation Equipment Management System Based on PLC Frequency Conversion Technology

Authors: Ziyuan Zhao; Richang Xian
Journal: Mobile Information Systems
 (2022)

---

## Abstract

Electrical automation technology is a technology that uses computer technology, information technology, and control principles to control and optimize the production process, so as to improve production efficiency. However, there are still some deficiencies in the research on the energy-saving effect of electrical automation technology. Based on the PLC frequency conversion technology, we have carried out experimental research on the pumping unit frequency conversion electrical automation energy-saving system. This paper first analyzes the necessity of constructing a new electrical automation experimental platform and then briefly describes the variable frequency control technology based on PLC controller and the working principle of variable frequency speed regulation. It illustrates the feasibility of variable frequency speed regulation to save energy and conducts mathematical modeling analysis on the electrical automatic pumping unit. In this paper, the fuzzy PID algorithm is selected to control the motor by frequency conversion and speed regulation, and the motor model is optimized, so that the motor angular frequency parameter can achieve the best effect. At the end of this paper, the experimental analysis of the frequency conversion electrical automation energy-saving system of the pumping unit is carried out. The experimental results of this paper show that the established model meets the requirements, and the measurement results show that the frequency of the motor load changes. Coupled with fuzzy PID adjustment, it gradually stabilizes the frequency, and the measurement error is within 3%. It meets the preexperiment requirements. When fuzzy PID control is added in the experiment, the motor speed fluctuation is small, and the error value is small. The results show that the frequency conversion technology based on PLC is an effective technology for the energy saving of the frequency conversion electrical automation of the pumping unit.


---

## Body

## 1. Introduction

Electric power automation technology is a technology that uses computer technology, information technology, and control principles to control and optimize the production process, so as to improve production efficiency. At present, the most used are man–machine interface, motion controller, contact controller, inverter, sensor, circuit breaker, power supply, transformer, and so on. The work control computer can also be referred to as IPC, and the equipment used is different according to the purpose. The touch screen and the computer controlled by the industry are collectively referred to as the human–machine interface. As one of the most widely used devices in recent years, the touch screen, such as the mobile phone screen, has simple operation, intuitive information, and strong stability. It is widely used in the field of industrial control. The programmable logic controller is referred to as PLC (programmable logic controller). It is one of the pillars of modern industrial automation and can be understood as a small computer that can be programmed through software. However, there are not many literature on the energy-saving research of electrical automation. We have carried out an experimental study on the frequency conversion electrical automation energy-saving system of the pumping unit based on the PLC frequency conversion technology.The lifeblood of the oil extraction process is electric energy. With the continuous deepening of oil extraction, the dependence on electric energy is getting stronger and stronger. Variable frequency adaptation has a wide range of needs in industrial processes. With the energy saving and emission reduction in the metallurgical industry, the use of frequency conversion energy-saving technology has become an inevitable trend in the development of the metallurgical industry. With the rapid development of the electronic industry and the development of automatic adjustment technology, frequency conversion adaptive technology has been widely used. It can improve the performance of the automatic control device, reduce the production cost in production, and prolong the service life of the motor. In addition, there are many production industries that require variable frequency speed regulation adaptive technology, such as elevator lifting, ventilation facilities in the paper industry, speed regulation and energy saving of heating equipment, and energy saving of air conditioners. Facts show that the application of the motor variable frequency speed regulation adaptive system in the production industry is common. It not only reduces the failure rate of ancillary equipment such as motors, fans, pumps and valves but also prolongs its service life and improves utilization. The utilization rate of electric energy is improved, thereby realizing the efficient and economical operation of the motor-type unit. It improves the economic competitiveness of enterprises, responds to the national theme of energy conservation, and realizes the sustainable development of energy. Therefore, it is of great practical significance to carry out research on frequency conversion adaptive energy-saving technology.Due to the importance of frequency conversion and energy saving in the process of oil extraction, combined with the working principle and performance analysis of the pumping unit, the operation efficiency of the motor is improved, the oil recovery rate is increased, and the extraction cost is reduced. In this paper, a research plan of the frequency conversion electrical automation control system of the pumping unit based on PLC is proposed. The results show that the speed error of the fuzzy PID composite control is significantly reduced, the maximum error is less than 3%, and the measurement accuracy of the fuzzy control is high, which can reach the standard of zero speed measurement.The innovations of this paper are as follows: (1) this paper analyzes the necessity of constructing a new electrical automation experimental platform. (2) This paper introduces the frequency conversion control technology of PLC controller and the working principle of frequency conversion speed regulation. (3) In this paper, an experiment is carried out on the frequency conversion electrical automation energy-saving system of the pumping unit.


## 2. Related Work

According to the research progress abroad, different researchers have carried out corresponding cooperative research in electrical automation. Cheng proposed a model optimization method for agricultural electrical automation control based on fuzzy neural network PID control. He has conducted research on PID automatic control of agricultural power systems. Through simulation experiments, he proved that the proposed method has certain practical value for the automatic control of agricultural appliances [1]. Tagirova and Nugaev analyzed the practical problems of automation control of electric centrifugal pump (ESP) units in production wells and modern methods to solve them. They considered a solution to the problem of ensuring maximum oil production as a problem of stabilizing the critical pressure at the pump inlet. They proposed a variant of the continuation and localization algorithm to solve this problem [2]. Omorov and Takyrbashev considered the lower layer of the power system—the distribution network with a voltage of 0.4 kV, which produces suppliable electricity as a marketable product. It aims to identify common and abnormal power losses, which can also be used to locate the coordinates of unauthorized power selection and leakage currents in the network [3]. To speed up the assembly of the motor and reduce the wait time of the dispenser in the queue, Loganathan designed and built a semiautomatic telescopic scissor lift. With this semiautomatic unit, the yield is increased to 12%. The total time of the motor installation cycle is reduced by a third [4]. Hu et al. analyzed the requirements for improving the automation system engineering of intelligent substations. On the basis of summarizing the status quo of project implementation, they proposed ideas to improve the efficiency of project implementation [5]. However, these scholars’ research on electrical automation still lacks certain technical proof. After research, it is found that the research on electrical automation based on PLC frequency conversion technology has certain reliability. For this, we have consulted the relevant literature on PLC frequency conversion technology.At present, some scholars have conducted in-depth research on PLC frequency conversion technology. Shinde et al. presented a practical and cost-effective smart home system based on power line communication (PLC). PLCs had became a viable local area network (LAN) solution in home networks [6]. Eneh and Ene introduced the use of programmable neural logic controllers (PNLCs) and variable frequency drives (VFDs). They optimized variable torque control and automation of three-phase induction motors [7]. Most diesel generators (DGs) in independent power plants operate with a regulation characteristic with a constant rotational frequency over a wide range of load variations. Grigoriev et al. presented the results of an experimental study of a valve DG operating at a variable rotational frequency as part of an independent ship electrical installation [8]. Tian et al. purposed to design an oscillator with variable frequency protection and proposed a reduced frequency oscillator for use in DC-DC converters. When the converter is working normally, the operating frequency of the oscillator is 1.5 MHz [9]. Gardner described frequency converters, also known as variable speed drives and sometimes called inverters, which benefit from a number of technological developments. But in most cases, the basic design of the driving circuit is unchanged, and there is a great improvement in performance, size and cost [10]. However, these scholars did not research and discuss the electrical automation equipment management system based on the PLC frequency conversion technology but only discussed its significance unilaterally.


## 3. Method of Electrical Automation Equipment Management System

With the development of frequency conversion adaptive technology, the pumping performance of the electronically controlled pumping unit has been improved, thereby increasing the output, reducing the cost of oil production, and improving the economic benefit, which has become the future development trend. In this paper, based on the PLC frequency conversion technology, the experimental research on the frequency conversion electrical automation energy-saving system of the pumping unit is carried out.Necessity of Developing New Electrical Automation Experimental Platform: electrical automation technology is a kind of application of control theory, instrumentation, computer and other information technology. It realizes detection, control, optimization, scheduling, management, and decision-making of industrial production processes. It is a comprehensive technology for increasing production, improving quality, reducing consumption, and ensuring safety. The development of electrical engineering and automation technology requires a large number of compound, practical, and modern professional and technical personnel with professional theoretical knowledge and professional technical ability [11]. Figure 1 shows the application of automation technology in electrical engineering.Figure 1
Application of automation technology in electrical engineering.The original power automation laboratory is actually a PLC laboratory, only doing some simple logic control experiments. The external device of the PLC uses LED lights to replace the demonstration, which is far from the actual factory environment and is unintuitive. The emergence of PLC does not fully reflect the various functions of PLC, for example: analog output, high-speed counting, pulse output, Ethernet communication, PLC drive, servo motor, and so on, which are not available in the laboratory. It also gets cheaper over time. If PLC is used, only the programmable controller of conventional PLC can be realized, which will lead to deviations in students’ understanding of PLC [12]. PLC works in the way of “sequential scanning and continuous circulation.” That is to say, when the PLC is running, the CPU compiles the programs stored in the user memory according to the control requirements of the user and performs periodic cyclic scanning according to the instruction step number.At the same time, due to the aging of the original equipment, many new automatic control technologies cannot be used for testing. It seriously affects the quality of teaching. Through the connection between the configuration software and the PLC, the real-time control of the PLC can be observed intuitively. It can also flexibly construct stereoscopic images of almost all controlled targets, and perform real-time display and real-time monitoring on them. If something goes wrong with the system, it can also send an alert in the first place. It combines PLC and configuration software, which is a good thing for the company. And the original PLC equipment is old and old. At that time, the PLC did not have such a rich interface configuration as it is today, so it is impossible to combine the PLC with the configuration software. FMS is an emerging technology whose characteristic is to fix production equipment on a constantly changing product, thereby greatly reducing production costs. The reason why the touch screen is so widely used is that it follows the nature of flexible production, and its programmability makes it adaptable and low system cost. At present, the combination of PLC and touch screen has become the main equipment of PLC. As long as there is a PLC equipment, there will basically be a touch screen. Due to the limitation of the interface, the original PLC cannot be connected with the touch screen and cannot be upgraded [13]. PLC programming is widely used, powerful and easy to use. It has become one of the main devices of contemporary industrial automation and has been widely used in all fields of industrial production.Electrical automation control requires a lot of instruments, and it is not enough to rely on PLC to test. The motion controller can complete complex control such as multiaxis motion control, electronic cam, electronic gear, and virtual axis control. The multimotor servo control can be easily formed through the field bus technology, and its Ethernet communication network can establish a PLC group control network. The highly integrated starter of the intelligent motor can make the intelligent starting of the electric motor, and so on. Figure2 is an automatic control system.Figure 2
Automatic control system.Therefore, it is necessary to develop a new type of electrical automation test platform.


### 3.1. Frequency Conversion Control Technology Based on PLC Controller

PLC controller mainly refers to the programmable logic controller of digital operation operating electronic system, which is used to control the production process of machinery. Through the frequency conversion speed regulation, process control, and other technologies of the frequency converter to transform the existing electric automatic beam pumping unit, the motor load rate is significantly improved, the capacity is reduced, the speed ratio of the upper and lower strokes is changed, and the power factor of the frequency converter is close to 1. It greatly improves the electrical automatic pumping unit system, and it can automatically control the electrical automatic beam pumping unit. According to the different working conditions of each well, the PLC will adjust the speed of the motor according to the corresponding frequency of the inverter. It achieves the change from load to frequency and achieves the purpose of energy saving and efficiency enhancement of the pumping unit [14]. The system realizes self-adaptive control during oil production.


### 3.2. Working Principle of Variable Frequency Speed Regulation

The rotational speed of the rotating magnetic field can be derived from the motor formula, that is, the synchronous speed is as follows:(1)p0=60gi.It defines the rotational speed of the rotor asp. According to the motor drag theory, the slip rate of the asynchronous motor is deduced as r:(2)r=p0−pp0.In the formula,p represents the rotor speed; p0 represents the magnetic field speed; i represents the number of pole pairs of the motor; g represents the power frequency; r represents the slip;According to the working principle of the motor, the direction of work is also changed to the opposite direction, that is, the direction of the motor speed is changed. To use variable frequency speed regulation to control the asynchronous motor, it must ensure that the magnetic flux of each pole does not change. If the magnetic flux decreases, the iron core of the motor does not reach the maximum magnetic flux, and the maximum output power cannot be guaranteed. If the magnetic flux increases, the magnetic flux of the iron core will be saturated, resulting in excessive excitation current, and the excessive heating temperature may even damage the motor [15]. According to the above formula, it can be deduced that the speed p of the asynchronous motor is as follows:(3)p=p01−r=60g1−ri,In the above formula, the pole pair numberi of the asynchronous motor is a fixed value. The rotational speed p of the asynchronous motor is linearly proportional to the power frequency g, so as long as the power frequency gis changed, the speed p of the asynchronous motor can be changed.In recent years, with the development of semiconductor technology and the popularization of digital control, the application of vector control has expanded from high-performance fields to general-purpose drives and special-purpose drives, and even household appliances such as inverter air conditioners, refrigerators, and washing machines.


### 3.3. Feasibility of Frequency Conversion Speed Regulation and Energy Saving

The load of the pumping unit has its special characteristics in the aspects of unbalance and change. Generally, the pumping unit is in a light load state, but under the starting condition, the starting load is large. During the operation of the pumping unit, the suspension point load of the donkey head is large during the upstroke, and the suspension point load of the donkey head is small during the downstroke. Although it has been adjusted by the balance weight, it still cannot reach a fully balanced state. In addition, the phenomenon of reverse power generation will occur in some time periods, which will reduce the power factor of the grid and increase the reactive power. During the pumping process of the pumping unit, the liquid level of the oil well changes in real time, and the pumping unit cannot deal with the changing load in time. It is in an inefficient operation state for a long time, resulting in a lot of waste of energy and shortening the service life of the equipment.Through the above expression, the use of frequency conversion speed regulation technology to save energy has broad prospects, and energy saving can be achieved from the following aspects:(1)
When the pumping unit is in the downstroke, the inverter will control the motor speed to make the pumping unit run by inertia. It reduces the output power of the motor, improves the working efficiency of the motor, and achieves the purpose of energy saving.(2)
The frequency conversion speed regulation technology can adjust the speed of the motor according to the load change. When the liquid supply capacity is insufficient, it reduces the number of strokes, reduces the input power and reduces the active power. When the liquid supply capacity is sufficient, the stroke frequency is increased, the fuel consumption is reduced, the reactive power is reduced, and energy saving is realized.(3)
It adopts frequency conversion technology, which reduces the starting current and running current, and greatly reduces the loss (basic copper loss and stray loss) caused by the movement of the motor itself.


### 3.4. System Modeling

The mathematical modeling analysis of the electrical automatic pumping unit is carried out. In this paper, the fuzzy PID algorithm is selected to control the motor by frequency conversion and speed regulation, and the motor model is optimized. It makes the motor angular frequency parameter to achieve the best effect, which has an important influence on the model, and the best effect is obtained by comparison and observation.The modeling of the system plays a key role in the simulation operation of the system, and the transfer function provides a platform for the subsequent algorithm control, which can intuitively display the control of the algorithm on the model. The following will introduce the system modeling derivation and demonstration process. Compared with the speed closed-loop speed control system, the open-loop variable frequency speed regulation of the speed can meet the general smooth speed regulation requirements. However, there are deficiencies in improving the static and dynamic performance, and the closed-loop structure of the speed can solve the static and dynamic performance. The variable frequency speed regulation system controlled by the slip angular velocity can realize constant value control, and the system structure of the closed-loop speed will greatly improve the performance of the variable frequency speed regulation system of the asynchronous motor. The electrical and electromechanical principles of the electric drive system show that the torque control of the electric motor is the key. The mechanical formula of the asynchronous motor is established under the condition of ignoring the loss, and the mechanical torque of the asynchronous motor controlled by the constant value is as follows:(4)Dv=IqΩ=3IR12S2`/tζ1S1+S2`/t2+H1+H2`2.The value ofR1/ζ1 is fixed in constant value control, and the above formula can be rewritten as:(5)Dv=3IR1ζ12tζ1S2`tS1+S2`2+tH1+H2`2.When the motor is running stably,t is small, and the items containing t in the denominator can be ignored, and the approximate relation of torque is obtained:(6)Dv=3IR1ζ12tζ1S2`.Slipping angular velocity according to definition(7)ζt=tζ1.The above formula can be rewritten as follows:(8)Dv=3IR1ζ12ζtS2`.Since the motor drives the operation of the pumping unit and has the performance of driving the load, the formula of motion of the electric drive system with constant rotation load is established as follows:(9)Dv−D1=MI∂ζ∂d,∂ζ/∂d represents the slope, that is, the speed value of the angular velocity at any time can be written as ζt, according to the following formula:(10)ζt=tζ=ζ1−ζ.Deriving the formula:(11)Dv−D1=MItζ.The actual speed of the motor can be conducted according to the following formula:(12)p0=60g1i,p=60ζ2πi.From the definition of slip andζ1=2πg1, the formula can be known:(13)r=p0−pp0=ζ1−ζζ1.In this design, the Y132S1-2 three-phase asynchronous motor is selected. The parameters of the motor are shown in Table1 after consulting the data. The parameters of the motor are brought to the system of frequency conversion and speed regulation of the motor for simplification. Then, it uses simulink in MATLAB to simulate, and obtains the rotation relationship of the system.Table 1
Y132S1-2 three asynchronous motor values.
ParametersMeaningNumerical valueR1Motor rated voltage360 Vg1Motor rated frequency60 HziMotor pole pairs3MMoment of inertia of the motor unit0.03 kg·m2After calculating and analyzing3I/S2`R1/ζ12 and I/Mt, the simulated model is shown in Figure 3.Figure 3
Mathematical model simulink simulation program.In this paper, MATLAB is used to simulate with simulink. When the input signal is given, the maximum value of the step signal is 50, which is consistent with the frequency of the motor in the process of running, so that the result is the most intuitive performance. The simulation diagram is shown in Figure4.Figure 4
System simulink simulation diagram.Solving the transfer function of the system provides convenience for the subsequent algorithm simulation control. The transfer function of the system is obtained according to the transfer function block diagram of the digital signal processing closed-loop system combined with the motor model. The transfer function diagram of the closed-loop system is shown in Figure5.(14)Br=FrWr,Wr=Ar−LrBr.Figure 5
Closed-loop system transfer function diagram.EliminatingWr to get:(15)Br=Fr1+FrLrAr,Bbar=BrAr=Fr1+FrLr.It can be seen thatLr is 1 in the closed-loop feedback, and the motor transfer function is obtained according to the derivation of the above formula as(16)Bbar=Fr1+Fr.The parameter transfer function brought into the motor is0.4/t+0.4.The actual operation curve of the motor is shown in Figure6. By comparing the actual fluctuations at startup, it gradually approaches and stabilizes.Figure 6
Real-time simulation diagram of asynchronous motor.Through the comparative analysis of the dynamic performance, the rotational speed is about 1500 r/min when the steady state is reached, and the actual situation of the two is roughly the same. The error is within a reasonable range, thus verifying that the mathematical model and transfer function are realistic.The system is an asynchronous motor control mode with speed feedback. In order to reduce the number of motor oscillations and cause the response error of the speed under the action of the external load, it is necessary to adopt an appropriate control method in the closed-loop control to improve the response performance of the system. As one of the earliest control strategies in the world, PID controllers are widely used, and PID control is still used in industrial fields in the world. The wide application of PID has its inherent advantages, such as simple principle, easy parameter setting, strong adaptability, and so on.


## 3.1. Frequency Conversion Control Technology Based on PLC Controller

PLC controller mainly refers to the programmable logic controller of digital operation operating electronic system, which is used to control the production process of machinery. Through the frequency conversion speed regulation, process control, and other technologies of the frequency converter to transform the existing electric automatic beam pumping unit, the motor load rate is significantly improved, the capacity is reduced, the speed ratio of the upper and lower strokes is changed, and the power factor of the frequency converter is close to 1. It greatly improves the electrical automatic pumping unit system, and it can automatically control the electrical automatic beam pumping unit. According to the different working conditions of each well, the PLC will adjust the speed of the motor according to the corresponding frequency of the inverter. It achieves the change from load to frequency and achieves the purpose of energy saving and efficiency enhancement of the pumping unit [14]. The system realizes self-adaptive control during oil production.


## 3.2. Working Principle of Variable Frequency Speed Regulation

The rotational speed of the rotating magnetic field can be derived from the motor formula, that is, the synchronous speed is as follows:(1)p0=60gi.It defines the rotational speed of the rotor asp. According to the motor drag theory, the slip rate of the asynchronous motor is deduced as r:(2)r=p0−pp0.In the formula,p represents the rotor speed; p0 represents the magnetic field speed; i represents the number of pole pairs of the motor; g represents the power frequency; r represents the slip;According to the working principle of the motor, the direction of work is also changed to the opposite direction, that is, the direction of the motor speed is changed. To use variable frequency speed regulation to control the asynchronous motor, it must ensure that the magnetic flux of each pole does not change. If the magnetic flux decreases, the iron core of the motor does not reach the maximum magnetic flux, and the maximum output power cannot be guaranteed. If the magnetic flux increases, the magnetic flux of the iron core will be saturated, resulting in excessive excitation current, and the excessive heating temperature may even damage the motor [15]. According to the above formula, it can be deduced that the speed p of the asynchronous motor is as follows:(3)p=p01−r=60g1−ri,In the above formula, the pole pair numberi of the asynchronous motor is a fixed value. The rotational speed p of the asynchronous motor is linearly proportional to the power frequency g, so as long as the power frequency gis changed, the speed p of the asynchronous motor can be changed.In recent years, with the development of semiconductor technology and the popularization of digital control, the application of vector control has expanded from high-performance fields to general-purpose drives and special-purpose drives, and even household appliances such as inverter air conditioners, refrigerators, and washing machines.


## 3.3. Feasibility of Frequency Conversion Speed Regulation and Energy Saving

The load of the pumping unit has its special characteristics in the aspects of unbalance and change. Generally, the pumping unit is in a light load state, but under the starting condition, the starting load is large. During the operation of the pumping unit, the suspension point load of the donkey head is large during the upstroke, and the suspension point load of the donkey head is small during the downstroke. Although it has been adjusted by the balance weight, it still cannot reach a fully balanced state. In addition, the phenomenon of reverse power generation will occur in some time periods, which will reduce the power factor of the grid and increase the reactive power. During the pumping process of the pumping unit, the liquid level of the oil well changes in real time, and the pumping unit cannot deal with the changing load in time. It is in an inefficient operation state for a long time, resulting in a lot of waste of energy and shortening the service life of the equipment.Through the above expression, the use of frequency conversion speed regulation technology to save energy has broad prospects, and energy saving can be achieved from the following aspects:(1)
When the pumping unit is in the downstroke, the inverter will control the motor speed to make the pumping unit run by inertia. It reduces the output power of the motor, improves the working efficiency of the motor, and achieves the purpose of energy saving.(2)
The frequency conversion speed regulation technology can adjust the speed of the motor according to the load change. When the liquid supply capacity is insufficient, it reduces the number of strokes, reduces the input power and reduces the active power. When the liquid supply capacity is sufficient, the stroke frequency is increased, the fuel consumption is reduced, the reactive power is reduced, and energy saving is realized.(3)
It adopts frequency conversion technology, which reduces the starting current and running current, and greatly reduces the loss (basic copper loss and stray loss) caused by the movement of the motor itself.


## 3.4. System Modeling

The mathematical modeling analysis of the electrical automatic pumping unit is carried out. In this paper, the fuzzy PID algorithm is selected to control the motor by frequency conversion and speed regulation, and the motor model is optimized. It makes the motor angular frequency parameter to achieve the best effect, which has an important influence on the model, and the best effect is obtained by comparison and observation.The modeling of the system plays a key role in the simulation operation of the system, and the transfer function provides a platform for the subsequent algorithm control, which can intuitively display the control of the algorithm on the model. The following will introduce the system modeling derivation and demonstration process. Compared with the speed closed-loop speed control system, the open-loop variable frequency speed regulation of the speed can meet the general smooth speed regulation requirements. However, there are deficiencies in improving the static and dynamic performance, and the closed-loop structure of the speed can solve the static and dynamic performance. The variable frequency speed regulation system controlled by the slip angular velocity can realize constant value control, and the system structure of the closed-loop speed will greatly improve the performance of the variable frequency speed regulation system of the asynchronous motor. The electrical and electromechanical principles of the electric drive system show that the torque control of the electric motor is the key. The mechanical formula of the asynchronous motor is established under the condition of ignoring the loss, and the mechanical torque of the asynchronous motor controlled by the constant value is as follows:(4)Dv=IqΩ=3IR12S2`/tζ1S1+S2`/t2+H1+H2`2.The value ofR1/ζ1 is fixed in constant value control, and the above formula can be rewritten as:(5)Dv=3IR1ζ12tζ1S2`tS1+S2`2+tH1+H2`2.When the motor is running stably,t is small, and the items containing t in the denominator can be ignored, and the approximate relation of torque is obtained:(6)Dv=3IR1ζ12tζ1S2`.Slipping angular velocity according to definition(7)ζt=tζ1.The above formula can be rewritten as follows:(8)Dv=3IR1ζ12ζtS2`.Since the motor drives the operation of the pumping unit and has the performance of driving the load, the formula of motion of the electric drive system with constant rotation load is established as follows:(9)Dv−D1=MI∂ζ∂d,∂ζ/∂d represents the slope, that is, the speed value of the angular velocity at any time can be written as ζt, according to the following formula:(10)ζt=tζ=ζ1−ζ.Deriving the formula:(11)Dv−D1=MItζ.The actual speed of the motor can be conducted according to the following formula:(12)p0=60g1i,p=60ζ2πi.From the definition of slip andζ1=2πg1, the formula can be known:(13)r=p0−pp0=ζ1−ζζ1.In this design, the Y132S1-2 three-phase asynchronous motor is selected. The parameters of the motor are shown in Table1 after consulting the data. The parameters of the motor are brought to the system of frequency conversion and speed regulation of the motor for simplification. Then, it uses simulink in MATLAB to simulate, and obtains the rotation relationship of the system.Table 1
Y132S1-2 three asynchronous motor values.
ParametersMeaningNumerical valueR1Motor rated voltage360 Vg1Motor rated frequency60 HziMotor pole pairs3MMoment of inertia of the motor unit0.03 kg·m2After calculating and analyzing3I/S2`R1/ζ12 and I/Mt, the simulated model is shown in Figure 3.Figure 3
Mathematical model simulink simulation program.In this paper, MATLAB is used to simulate with simulink. When the input signal is given, the maximum value of the step signal is 50, which is consistent with the frequency of the motor in the process of running, so that the result is the most intuitive performance. The simulation diagram is shown in Figure4.Figure 4
System simulink simulation diagram.Solving the transfer function of the system provides convenience for the subsequent algorithm simulation control. The transfer function of the system is obtained according to the transfer function block diagram of the digital signal processing closed-loop system combined with the motor model. The transfer function diagram of the closed-loop system is shown in Figure5.(14)Br=FrWr,Wr=Ar−LrBr.Figure 5
Closed-loop system transfer function diagram.EliminatingWr to get:(15)Br=Fr1+FrLrAr,Bbar=BrAr=Fr1+FrLr.It can be seen thatLr is 1 in the closed-loop feedback, and the motor transfer function is obtained according to the derivation of the above formula as(16)Bbar=Fr1+Fr.The parameter transfer function brought into the motor is0.4/t+0.4.The actual operation curve of the motor is shown in Figure6. By comparing the actual fluctuations at startup, it gradually approaches and stabilizes.Figure 6
Real-time simulation diagram of asynchronous motor.Through the comparative analysis of the dynamic performance, the rotational speed is about 1500 r/min when the steady state is reached, and the actual situation of the two is roughly the same. The error is within a reasonable range, thus verifying that the mathematical model and transfer function are realistic.The system is an asynchronous motor control mode with speed feedback. In order to reduce the number of motor oscillations and cause the response error of the speed under the action of the external load, it is necessary to adopt an appropriate control method in the closed-loop control to improve the response performance of the system. As one of the earliest control strategies in the world, PID controllers are widely used, and PID control is still used in industrial fields in the world. The wide application of PID has its inherent advantages, such as simple principle, easy parameter setting, strong adaptability, and so on.


## 4. Experimental Results of Electrical Automation Equipment Management System

After the pumping unit, frequency converter, motor, and other equipment are completed, the software and hardware debugging of the operating system are carried out, and the experimental test and data analysis are carried out after the debugging is completed. First, this paper conducts routine no-load tests in the laboratory to check the performance of each part of the device. It is then subjected to a load test in the laboratory and comparative analysis of the measured data is carried out.The indoor experimental motor can effectively test the speed of the motor under the condition of no load. It is given a preset value, the detection device (photoelectric encoder) measures the actual speed, and the preset value is compared with the actual value.When the indoor experimental motor is under load, the experimenter uses a tension meter to simulate the load, and the number of the tension meter is used as the load size. It tests the running speed of the motor under different loads and analyzes and compares the test data.In order to make the experiment run smoothly and ensure accuracy during the experiment, it is necessary to explain the experimental conditions and equipment selection:(1)
Before testing the experimental platform system, the temperature of the test laboratory is 15 degrees Celsius, and the humidity is 37% to meet the experimental conditions, which has almost no effect on the experiment.(2)
PLC chooses Siemens S7-300, frequency converter is MM440, motor is Y132S1-2 three asynchronous motors, and the encoder sensor is E6C2-CWZ3E incremental rotary encoder. The load sensor is JHYT oilfield load sensor and the touch screen is Wei Luntong touch screen. The host computer software is C#, and the simulation software is MATLAB.Laboratory Unloaded Experimental.(1)
Experiment when the motor reaches a stable state in no-load operation: after the motor reaches a stable state, the actual speed relationship curve of the motor per unit time is shown in Figure7.It can be seen from the motor curve that there is a little fluctuation in the running curve of the motor due to the influence of itself and the outside world under no-load conditions.(2)
The comparison experiment between the preset value and the actual value of the motor in no-load operation: the speed is given from small to large (preset value: frequency and speed can be converted into each other), and the speed value and error fed back by the encoder of the device are detected.(1)
Experimental location: Laboratory A, Building E, 101(2)
The experiment time is March 1, 2022 at 10:00 amThe speed measurement error curve is shown in Figure8.(3)
Experimental location: Laboratory A, Building E, 101(4)
The experiment time is March 1, 2022 at 4:00 pmThe speed measurement error curve is shown in Figure9.In order to measure the reliability of the data, two sets of data were measured. It can be seen from the above experimental result curve that the maximum error of the rotational speed is 4%, and the error is smaller as the rotational speed gradually increases.(3)
The comparison experiment between the preset value and the actual value of the motor in no-load operation (adding fuzzy PID algorithm for control): the speed is given from small to large (preset value: frequency and rotational speed can be converted into each other), which detects the speed value and error fed back by the encoder of the device.(1)
Experimental location: Laboratory A, Building E, 101(2)
The experiment time is March 10, 2022 at 10:00 amThe speed measurement error curve is shown in Figure10.(3)
Experimental location: Laboratory A, Building E, 101(4)
The experiment time is March 10, 2022 at 4 pmFigure 7
Motor speed diagram per unit time.Figure 8
Speed measurement error 1.Figure 9
Speed measurement error 2.Figure 10
Speed measurement error curve 3.The speed error is shown in Tables2 and 3.Table 2
Speed error 1.
Preset valueActual valueError (%)1501471.33002970.745045006006010.177507520.279009000Table 3
Speed error 2.
Preset valueActual valueError (%)105010470.29120011980.17135013480.15150015010.07165016490.06180017980.01The speed error of fuzzy PID composite control is obviously reduced, the maximum error is 3%, the measurement accuracy of fuzzy control is high, and the measurement of zero speed can be realized.


## 5. Result Analysis

By analyzing the principle of PLC variable frequency adaptive system, we have completed the electrical automation research based on PLC pumping unit variable frequency energy saving. By using the characteristic that the motor’s running speed varies with the load, it realizes the frequency test, the load test, and the error test. The feasibility and practical production of variable frequency speed control and motor energy-saving control are verified by computer simulation experiments. By analyzing the current situation of the energy-saving system for pumping units at home and abroad, it summarizes and analyzes the advantages and disadvantages of the existing energy-saving methods for pumping units. It proposes the use of variable frequency speed regulation adaptive technology to control the energy saving of the pumping unit. And this paper analyzes the feasibility of energy-saving control of pumping unit by frequency control. Since the energy saving is in the form of the motor’s operating frequency responding to the load change, it lays a foundation for the feasibility of the variable frequency speed control of the pumping unit to save energy.According to the principle of frequency conversion energy-saving control, the model of laboratory pumping unit is established in this paper. It also completed the construction of the frequency conversion energy-saving control system for the pumping unit. It builds the pumping unit model as the controlled object, the speed of the pumping unit model motor as the controlled variable, the PLC300 as the core, and the inverter as the actuator. The value detected by the photoelectric encoder is fed back to the PLC. It thus achieves the purpose of closed-loop variable frequency speed regulation. On this basis, the software design of the water pump frequency conversion energy-saving control system is carried out. Through the network configuration software, it realizes the Ethernet communication between the controller and the PC. It communicates with the controller through the software and completes the programming of the variable frequency energy-saving control system for the pumping unit by using the ladder diagram. It is verified by experiments that the system control has a good effect. Based on the theoretical research of the pumping unit system and the design of system software and hardware, this paper will carry out modeling simulation experiments, laboratory calibration experiments and testing experiments for the designed energy-saving control system of the pumping unit. It summarizes the experimental data and presents it in the form of a graph. This paper draws the following conclusions: the established model meets the requirements, and the test shows that the frequency of the motor will change with the increase of the load. This paper adopts fuzzy PID control, which keeps the frequency within 3%. It meets the requirements before the experiment.Energy consumption is an important characterization parameter of the pumping unit operating system. However, the linear relationship between motor frequency and load in energy saving has always been a bottleneck that people cannot break through. It has attracted extensive attention in the petroleum industry, and pumping unit energy-saving methods have emerged in an endless stream, but most of the methods have hysteresis and high requirements on the measurement environment. This subject has accomplished the goal of real-time measurement of the frequency and load of the pumping unit motor, which can be seen from the laboratory test data. According to the change of the load, the frequency of the motor changes linearly, and it completes the measurement work well.


## 6. Conclusion

This paper mainly introduces the experimental research, experimental environment and equipment selection of the frequency conversion electrical automation energy-saving system of the pumping unit. In this paper, the process of the experimental operation is described in detail, and the experimental results are analyzed and compared. The laboratory test mainly analyzes the motion stability of the motor, the comparison experiment between the preset value and the actual value of the motor in no-load operation, and the addition of fuzzy control experiment. The preset value of the motor under constant load is compared with the actual value of the experiment and the fuzzy control experiment is added, and the power, speed, and error analysis experiment under the load change is carried out. In this paper, the results of the experimental process are introduced and analyzed. In the experiment of adding fuzzy PID control, the speed fluctuation of the motor is not large, and the error value is small. The power of the motor is constantly increasing as the load continues to increase. However, due to the limitations of time and technology, we still have some doubts about the specific application principle of PLC frequency conversion technology. We will further analyze and discuss this in the follow-up.



---

*Source: 1446783-2022-08-18.xml*