CN105759607B - The design method of PAC controllers based on intelligent control algorithm - Google Patents
The design method of PAC controllers based on intelligent control algorithm Download PDFInfo
- Publication number
- CN105759607B CN105759607B CN201610103921.XA CN201610103921A CN105759607B CN 105759607 B CN105759607 B CN 105759607B CN 201610103921 A CN201610103921 A CN 201610103921A CN 105759607 B CN105759607 B CN 105759607B
- Authority
- CN
- China
- Prior art keywords
- pid
- control
- fuzzy
- algorithm
- neural network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000013461 design Methods 0.000 title claims abstract description 5
- 238000013528 artificial neural network Methods 0.000 claims abstract description 23
- 230000000694 effects Effects 0.000 claims abstract description 16
- 238000004891 communication Methods 0.000 claims abstract description 14
- 230000004044 response Effects 0.000 claims abstract description 6
- 230000006870 function Effects 0.000 claims description 13
- 210000002569 neuron Anatomy 0.000 claims description 12
- 230000010355 oscillation Effects 0.000 claims description 10
- 238000005070 sampling Methods 0.000 claims description 8
- 230000008901 benefit Effects 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 7
- 230000003750 conditioning effect Effects 0.000 claims description 6
- 230000004048 modification Effects 0.000 claims description 3
- 238000012986 modification Methods 0.000 claims description 3
- 230000003044 adaptive effect Effects 0.000 claims description 2
- 101150118463 argG gene Proteins 0.000 claims description 2
- 239000002245 particle Substances 0.000 claims description 2
- 230000001276 controlling effect Effects 0.000 claims 2
- 235000013399 edible fruits Nutrition 0.000 claims 2
- 238000013459 approach Methods 0.000 claims 1
- 230000006872 improvement Effects 0.000 claims 1
- 230000003534 oscillatory effect Effects 0.000 claims 1
- 230000001105 regulatory effect Effects 0.000 claims 1
- 229920006395 saturated elastomer Polymers 0.000 claims 1
- 238000002945 steepest descent method Methods 0.000 claims 1
- 230000026676 system process Effects 0.000 claims 1
- 230000008859 change Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 229920000742 Cotton Polymers 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005485 electric heating Methods 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 239000004753 textile Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B13/00—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
- G05B13/02—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
- G05B13/04—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Feedback Control In General (AREA)
Abstract
本发明公开了基于智能控制算法的PAC控制器的设计方法,本发明在传统PAC控制器的基础上,采用了改进PID控制算法、变论域模糊PID控制算法、基于神经网络的PID控制算法等智能控制算法,能够提高控制精度,提高控制响应,满足更高的控制要求。在网络通讯方面,在传统的串口232、485的基础上增加了以太网、CAN总线等通讯方式,使用Modbus‑RTU、Modbus‑TCP、CANopen,自定义协议等,来实现网络的互联互通。在常规PID的基础上增加了防止积分饱和算法、对控制变量进行微分、微分先行等算法,能够显著提高PID的效果,提高了响应时间,减小控制超调量。
The invention discloses a design method of a PAC controller based on an intelligent control algorithm. On the basis of a traditional PAC controller, the invention adopts an improved PID control algorithm, a variable universe fuzzy PID control algorithm, a neural network-based PID control algorithm, etc. Intelligent control algorithm can improve control precision, improve control response, and meet higher control requirements. In terms of network communication, on the basis of traditional serial ports 232 and 485, communication methods such as Ethernet and CAN bus are added, and Modbus‑RTU, Modbus‑TCP, CANopen, custom protocols, etc. are used to realize network interconnection. On the basis of conventional PID, the algorithm of preventing integral saturation, differentiating the control variable, and differential first are added, which can significantly improve the effect of PID, improve the response time, and reduce the control overshoot.
Description
技术领域technical field
本发明属于工业自动控制领域,涉及嵌入式PAC控制器的设计,高精度温度控制,智能控制算法等。The invention belongs to the field of industrial automatic control, and relates to the design of an embedded PAC controller, high-precision temperature control, intelligent control algorithm and the like.
背景技术Background technique
在工业制造业生产过程中,对控制的需求越来越高。PAC控制器在控制性能上、信息处理上以及网络通讯能力上具有一些比较显著的优点。PAC控制器结合了PLC固有的可靠性、坚固性和分布特性,同时与PC控制相比,PAC使用实时操作系统,在处理性能上具有实时性、确定性等PC机不可比拟的优点。然而传统的PAC控制器在控制算法上比较单一,在涉及一些复杂算法时,经常采用的方法是与PC机等方式进行结合控制,也暴露出一些缺陷,例如:控制的效果差,通讯的延迟性,成本的增加。In the production process of industrial manufacturing, the demand for control is getting higher and higher. PAC controllers have some notable advantages in control performance, information processing and network communication capabilities. PAC controller combines the inherent reliability, robustness and distribution characteristics of PLC. Compared with PC control, PAC uses a real-time operating system, which has incomparable advantages in processing performance such as real-time and deterministic PC. However, the traditional PAC controller is relatively simple in the control algorithm. When it comes to some complex algorithms, the method often used is combined control with a PC, which also exposes some defects, such as poor control effect and communication delay. sex, cost increases.
发明内容Contents of the invention
根据上述现有技术中提出的问题,本发明的目的是:提高控制系统的控制性能,采用了改进PID控制算法、变论域模糊PID控制算法、基于神经网络的PID控制算法,能够提高控制精度,提高控制响应。另外提高了采集信号的可扩展性,模拟量输入信号可以为电压信号或者是电流信号以及电阻等信号。在网络通讯方面,在传统的串口232、485的基础上增加了以太网、CAN总线等通讯方式,使用Modbus-RTU、Modbus-TCP、CANopen,自定义协议等,来实现网络的互联互通。According to the problems proposed in the above-mentioned prior art, the purpose of the present invention is to: improve the control performance of the control system, adopt the improved PID control algorithm, the variable domain fuzzy PID control algorithm, the PID control algorithm based on neural network, and can improve the control accuracy , to improve control response. In addition, the scalability of the acquisition signal is improved, and the analog input signal can be a voltage signal, a current signal, or a resistance signal. In terms of network communication, on the basis of traditional serial ports 232 and 485, communication methods such as Ethernet and CAN bus are added, and Modbus-RTU, Modbus-TCP, CANopen, custom protocols, etc. are used to realize network interconnection.
本发明是基于一种智能控制装置实现的,所述的智能控制装置主要包括以下几个部分:The present invention is realized based on an intelligent control device, and the intelligent control device mainly includes the following parts:
1、传感器采样电路,该电路包括电压、电流、电阻信号的采样信号调理电路,以期实现传感器的信号高精度采集,如压力变送器、PT100温度传感器、角度传感器、4~20mA的电流传感器等。1. Sensor sampling circuit, which includes a sampling signal conditioning circuit for voltage, current, and resistance signals, in order to achieve high-precision acquisition of sensor signals, such as pressure transmitters, PT100 temperature sensors, angle sensors, 4-20mA current sensors, etc. .
2、控制输出电路,含有隔离单元,使用固态继电器控制大电压大电流。使用PWM输出信号,控制输出精度高。2. Control output circuit, including isolation unit, using solid state relay to control high voltage and high current. Using PWM output signal, the control output has high precision.
3、用于参与运算的微控制器,以及以太网通讯电路,232、485、CAN总线通讯电路,复位电路,看门狗电路。3. Microcontrollers used to participate in calculations, as well as Ethernet communication circuits, 232, 485, CAN bus communication circuits, reset circuits, and watchdog circuits.
4、确保电源稳定的电源模块电路。4. A power module circuit that ensures a stable power supply.
传感器通过输入信号调理电路与微控制器相交互。The sensor interfaces with the microcontroller through an input signal conditioning circuit.
本发明是提出了一些智能控制算法及实现,主要包括以下几个部分:The present invention proposes some intelligent control algorithms and its realization, mainly including the following parts:
步骤一:设计了PID自整定算法,常见的工业控制对象具有非线性、时变性以及不确定性等因素,导致PID参数采用人工整定的方法比较耗费时间,整定的效果也比较差,在本发明中增加了PID自整定的算法,能够自动确定设备运行的PID参数,节省了时间,提高了控制效果。Step 1: PID self-tuning algorithm is designed. Common industrial control objects have factors such as nonlinearity, time-varying and uncertainty, which cause PID parameters to be time-consuming by manual tuning, and the tuning effect is relatively poor. In the present invention The algorithm of PID self-tuning is added in it, which can automatically determine the PID parameters of equipment operation, saves time and improves the control effect.
步骤二:另外在传统的PID控制基础上,增加了防止积分饱和算法、对控制变量进行微分、微分先行等算法,能够显著提高PID的效果,提高了响应时间,减小控制超调量。Step 2: In addition, on the basis of traditional PID control, algorithms such as integral saturation prevention, differentiation of control variables, and differential advance are added, which can significantly improve the effect of PID, improve response time, and reduce control overshoot.
步骤三:由于控制对象的非线性、时变性以及不确定性等因素,仅仅使用PID控制,控制效果比较差。该方法在改进了常规PID控制方法的基础上,增加了模糊控制算法,通过建立模仿人类知识语言的模糊规则表,以及隶属度函数来进行模糊控制运算,使用模糊控制与常规PID控制相结合的方式,能够提高控制器在控制对象具有非线性、时变性以及不确定性因素的控制效果。Step 3: Due to the nonlinear, time-varying and uncertain factors of the control object, the control effect is relatively poor if only PID control is used. On the basis of improving the conventional PID control method, this method adds a fuzzy control algorithm, and performs fuzzy control operations by establishing a fuzzy rule table imitating human knowledge language and a membership function, using a combination of fuzzy control and conventional PID control. The method can improve the control effect of the controller when the control object has nonlinear, time-varying and uncertain factors.
步骤四:在模糊控制中,模糊规则及隶属度函数的获得大多来自人的经验,控制效果的好坏也跟模糊规则及隶属度函数的选择息息相关。然而神经网络具有很强的非线性拟合能力,可学习和自适应能力等优势,将神经网络与PID控制相结合,能够利用神经网络的自学习能力,计算PID控制的最优参数,达到最优控制,效果显著。Step 4: In fuzzy control, most of the fuzzy rules and membership functions are obtained from human experience, and the control effect is also closely related to the selection of fuzzy rules and membership functions. However, the neural network has the advantages of strong nonlinear fitting ability, learnable and self-adaptive ability. Combining the neural network with PID control can use the self-learning ability of the neural network to calculate the optimal parameters of the PID control to achieve the optimal Excellent control, the effect is remarkable.
所述步骤一提到的PID自整定的实现具体分为以下步骤:The realization of the PID self-tuning mentioned in the step 1 is specifically divided into the following steps:
1.1,采用Z-N(齐格勒-尼克尔斯法则)继电反馈式整定方法来实现,相比Z-N方法有很好的优势,即使用继电方法来产生振荡环节,其中继电特性的描述方程:式中,M为继电特性幅值,X为测量输出峰值差计算求得。当满足argG(jω)=-π,式中A是通过测量输出的最大值和最小值求得,Ku为临界振荡比例增益,d为划分的对称继电特性的振幅。1.1, using the ZN (Ziegler-Nicels law) relay feedback setting method to achieve, compared with the ZN method has a good advantage, that is, using the relay method to generate the oscillation link, in which the description equation of the relay characteristic : In the formula, M is the amplitude of the relay characteristic, and X is calculated from the measured output peak difference. When argG(jω)=-π is satisfied, In the formula, A is obtained by measuring the maximum and minimum values of the output, K u is the critical oscillation proportional gain, and d is the amplitude of the divided symmetrical relay characteristic.
1.2,通过产生的振荡曲线,获得以上Ku及临界振荡周期Tu,由Ziegler-Nichols自整定方法的计算公式,如表1所示,根据需要的性能要求,计算出整定的PID参数,完成继电反馈的PID自整定过程。1.2. Obtain the above K u and the critical oscillation period T u through the generated oscillation curve. According to the calculation formula of Ziegler-Nichols self-tuning method, as shown in Table 1, calculate the tuned PID parameters according to the required performance requirements, and complete PID self-tuning process of relay feedback.
表1 Z-N自整定PID参数(快速性能)Table 1 Z-N self-tuning PID parameters (fast performance)
所述步骤二提到的改进常规PID的实现具体分为以下步骤:The implementation of the improved conventional PID mentioned in step 2 is specifically divided into the following steps:
2.1,常规PID算法如果不加修改使用的话,会暴露出容易超调、系统稳定周期时间长、在稳定时会有振荡现象的缺点。2.1. If the conventional PID algorithm is used without modification, it will expose the shortcomings of easy overshoot, long system stabilization period, and oscillation phenomenon when it is stable.
2.2,PID的常用形式是:2.2, the common form of PID is:
采用抗积分饱和算法来限制积分导致超调现象,又能快速提高上升时间。其中,Umin≤u(t)≤Umax,当时,令u1(t)=Umax,其中令限制了积分饱和现象。另外改进微分的变化量,由于其中e(t)=r(t)-y(t),其中r(t)为设置值,y(t)为传感器采样值,然而当r(t)调整的时候,必然导致微分项的瞬间变化,会增加系统的不稳定性,因此令 The anti-integral saturation algorithm is used to limit the overshoot phenomenon caused by the integral, and it can quickly improve the rise time. Among them, Umin≤u(t)≤Umax, when , let u 1 (t)=Umax, where let The phenomenon of integral windup is limited. In addition to improving the variation of the differential, due to Where e(t)=r(t)-y(t), where r(t) is the setting value and y(t) is the sensor sampling value, however, when r(t) is adjusted, it will inevitably lead to the instantaneous Changes will increase the instability of the system, so make
所述步骤三提到的变论域模糊控制PID的实现具体分为以下步骤:The realization of the variable universe fuzzy control PID mentioned in the step three is specifically divided into the following steps:
3.1,变论域自适应模糊控制是以误差e和误差变化率ec作为系统的输入,在不同时刻根据e和ec的不同对PID参数进行自动调整,模糊规则在线对PID参数的Kp、Ki、Kd进行修改。模糊自整定PID是在PID算法的基础上,通过计算当前系统误差e和误差变化率ec,利用模糊规则进行模糊推理,查询模糊规则表进行参数调整。3.1. The variable universe adaptive fuzzy control uses the error e and the error change rate ec as the input of the system, and automatically adjusts the PID parameters according to the difference between e and ec at different times. The fuzzy rules online adjust the Kp, Ki, and Kd for modification. Fuzzy self-tuning PID is based on the PID algorithm, by calculating the current system error e and error change rate ec, using fuzzy rules for fuzzy reasoning, querying the fuzzy rule table for parameter adjustment.
3.2,模糊控制表的建立不是唯一的,针对不同控制系统有所差异,但针对常见系统,使用以下模糊控制表均能满足控制要求:3.2. The establishment of the fuzzy control table is not unique, and it is different for different control systems, but for common systems, the following fuzzy control tables can meet the control requirements:
ΔKP模糊规则表:ΔKP fuzzy rule table:
ΔKi模糊规则表:ΔKi fuzzy rule table:
ΔKd模糊规则表:ΔKd fuzzy rule table:
3.3论域的选择以及隶属度函数的确定通过人工经验确定,确保尽量准确。另外通过监测e和ec的变化,不断优化和缩小论域的范围,达到变论域自整定的问题。所述步骤四提到的神经网络PID的实现具体分为以下步骤:3.3 The selection of the domain of discourse and the determination of the membership function are determined by manual experience to ensure as accurate as possible. In addition, by monitoring the changes of e and ec, the scope of the domain of discourse is continuously optimized and narrowed to achieve the problem of self-tuning of the domain of discourse. The realization of the neural network PID mentioned in the step 4 is specifically divided into the following steps:
4.1本方法采用单神经元神经网络PID控制算法,能够避免像使用BP神经网络、遗传算法、粒子群算法计算量大的问题,也能够保证实时控制,在线不断修正。4.1 This method adopts the single-neuron neural network PID control algorithm, which can avoid the problem of large amount of calculation like using BP neural network, genetic algorithm, and particle swarm algorithm, and can also ensure real-time control and continuous correction online.
4.2如图4所示,神经元PID结构模型为3个输入单输出的结构,其中3个输入为e(k),神经元的输出为u(k),其中神经元的权值为PID的比例、积分、微分三个系数即Kp、Ki、Kd。4.2 As shown in Figure 4, the neuron PID structure model is a structure with three inputs and one output, of which three inputs are e(k), The output of the neuron is u(k), and the weight of the neuron is the three coefficients of PID, namely, Kp, Ki, and Kd, which are proportional, integral, and differential.
同理可得,In the same way,
其中μ为学习率,0<μ<1;Where μ is the learning rate, 0<μ<1;
Kp(k+1)=Kp(k)+ΔKp(k+1),Kp(k+1)=Kp(k)+ΔKp(k+1),
Ki(k+1)=Ki(k)+ΔKi(k+1),Ki(k+1)=Ki(k)+ΔKi(k+1),
Kd(k+1)=Kd(k)+ΔKd(k+1)。Kd(k+1)=Kd(k)+ΔKd(k+1).
4.5神经网络权值的初始值使用步骤一涉及的PID自整定方法计算出的值作为初始值,能够加快神经网络PID自整定的速度。4.5 The initial value of the weight of the neural network uses the value calculated by the PID self-tuning method involved in step 1 as the initial value, which can speed up the speed of the PID self-tuning of the neural network.
本发明在常规PAC控制器设计上,硬件上提高了采集精度,提高了网络互连互通,使用CANopen以及Modbus-TCP、Modbus-RTU作为常用通讯协议,在软件上采用了改进常规PID控制方法、变论域模糊自适应方法、神经网络PID算法,更加精确的良好的实现工控现场设备的控制,能够较好的适用在如石油管道电伴热系统、棉纺织行业温湿度控制、锅炉温度控制等场合。In the design of the conventional PAC controller, the present invention improves the acquisition accuracy on the hardware, improves the network interconnection and intercommunication, uses CANopen, Modbus-TCP, and Modbus-RTU as common communication protocols, and adopts the improved conventional PID control method, Variable universe fuzzy self-adaptive method, neural network PID algorithm, more accurate and good control of industrial control field equipment, can be better applied in oil pipeline electric heating system, cotton textile industry temperature and humidity control, boiler temperature control, etc. occasion.
附图说明Description of drawings
图1系统硬件结构框图;Fig. 1 system hardware structure block diagram;
图2PID继电自整定框图;Figure 2 PID relay self-tuning block diagram;
图3变论域模糊控制PID结构框图;Fig. 3 block diagram of variable domain fuzzy control PID structure;
图4神经网络PID结构框图;Fig. 4 neural network PID structural block diagram;
具体实施方式Detailed ways
根据下文结合附图对本发明具体实施的详细描述,本领域技术人员将会更加明了本发明的上述优点和特征。According to the following detailed description of the specific implementation of the present invention in conjunction with the accompanying drawings, those skilled in the art will be more aware of the above advantages and features of the present invention.
首先是硬件结构,如图1所示。The first is the hardware structure, as shown in Figure 1.
微控制器,选用意法半导体公司的STM32F207VET6,具有大容量的存储空间和高性能的运算速率,可以保证运行一些控制算法。The microcontroller, STM32F207VET6 from STMicroelectronics, has a large storage space and high-performance computing speed, which can ensure the operation of some control algorithms.
看门狗和复位电路,选用SP706,为专门的看门狗复位芯片,可以提高系统的稳定性和抗干扰性。The watchdog and reset circuit, choose SP706, which is a special watchdog reset chip, which can improve the stability and anti-interference of the system.
电源模块,设备外采用开关电源220v转24v,系统设备内使用LM2576及SPX1117-3.3进行电压转换,以满足系统模块电压需求,另外ADC采样模块需要精准的参考电压,选用TL431作为参考电压源。The power supply module adopts switching power supply 220v to 24v outside the equipment, and LM2576 and SPX1117-3.3 are used for voltage conversion in the system equipment to meet the voltage requirements of the system module. In addition, the ADC sampling module needs an accurate reference voltage, and TL431 is selected as the reference voltage source.
传感器及输入信号调理电路,为保证4~20mA电流型、电压型、电阻值变化型传感器等接入系统内,设计了在同一端口可以根据选择传感器不同设置相应的跳冒选择开关。例如温度传感器使用PT100,信号调理电路选用电桥方式,把PT100变化的电阻值转化为对应的电压形式送控制器的ADC进行采样。经过换算得到实际温度值,将采集的温度送至微处理器进行处理。其它的传感器电路也类似处理。The sensor and input signal conditioning circuit, in order to ensure that the 4-20mA current type, voltage type, resistance value change type sensors, etc. are connected to the system, the corresponding jumping selection switch can be set on the same port according to the selection of sensors. For example, the temperature sensor uses PT100, and the signal conditioning circuit adopts the bridge method to convert the resistance value changed by PT100 into a corresponding voltage form and send it to the ADC of the controller for sampling. After conversion, the actual temperature value is obtained, and the collected temperature is sent to the microprocessor for processing. Other sensor circuits are also processed similarly.
输出信号调理电路和执行器,控制器运算得到的数字控制量,可以将输出方式根据需求转化为开关量、PWM输出等。内部含有电气隔离模块,防止受到外界的干扰,另外为了大功率的输出控制,内置固态继电器。The output signal conditioning circuit and actuator, the digital control quantity obtained by the controller operation, can convert the output mode into switching quantity, PWM output, etc. according to the demand. There is an electrical isolation module inside to prevent external interference, and a solid-state relay is built in for high-power output control.
数据存储模块,选用FM24CL04,可以存放少量的数据并且掉电保存不丢失的功能。可以用来存放一些关键参数信息。The data storage module is FM24CL04, which can store a small amount of data and save it when power off. Can be used to store some key parameter information.
通讯模块,采用MAX3485、MAX3232、PCA82C250、DP83848等分别作为RS485、RS232、CAN通讯、以太网通讯的数据处理芯片及物理层收发电路。多种通讯方式的选择可以与不同的设备之间进行更具有兼容性的信息交互。The communication module adopts MAX3485, MAX3232, PCA82C250, DP83848, etc. as data processing chips and physical layer transceiver circuits for RS485, RS232, CAN communication, and Ethernet communication respectively. The choice of multiple communication methods can carry out more compatible information exchange with different devices.
PID继电自整定法如图2所示。The PID relay self-tuning method is shown in Figure 2.
通过继电环节产生的振荡曲线,获得Ku及临界振荡周期Tu(见上文所述),由Ziegler-Nichols自整定方法的计算公式,如表2所示,可以根据需要的性能要求,计算出整定的PID参数,完成继电反馈的PID自整定过程。Through the oscillation curve generated by the relay link, K u and the critical oscillation period T u (see above) are obtained. The calculation formula of the Ziegler-Nichols self-tuning method is shown in Table 2. According to the required performance requirements, Calculate the adjusted PID parameters and complete the PID self-tuning process of relay feedback.
表2 继电反馈式Z-N自整定PID参数(快速性能)Table 2 Relay feedback type Z-N self-tuning PID parameters (fast performance)
经过计算可以获得PID参数,可以作为模糊控制及神经网络控制的初始值。After calculation, PID parameters can be obtained, which can be used as the initial value of fuzzy control and neural network control.
变论域模糊控制方法如图3所示。主要由模糊控制及PID控制器两部分组成。The variable domain fuzzy control method is shown in Figure 3. It is mainly composed of fuzzy control and PID controller.
数字PID控制器的输入为通过传感器采样获得的采集值r(t)及人工设定的目标值y(t),通过改进PID控制算法得到数字输出控制量u(t).控制量u(t)经过D/A变化或者是通过数字输出PWM波进行输出控制。进而控制设备的运行。达到使输出控制在目标值的功能。The input of the digital PID controller is the acquisition value r(t) obtained through sensor sampling and the target value y(t) set manually, and the digital output control quantity u(t) is obtained by improving the PID control algorithm. The control quantity u(t ) through D/A change or output control through digital output PWM wave. And then control the operation of the equipment. To achieve the function of controlling the output at the target value.
变论域模糊控制PID算法如图3所示。The variable universe fuzzy control PID algorithm is shown in Fig.3.
1.确定论域及隶属度函数。根据输入信号的偏差e和偏差变化率ec输入范围确定论域,论域的确定一般根据人工经验,论域的模糊集合分为{负大,负中,负小,零,正小,正中,正大}。具体的论域范围需要结合使用场景来确定。隶属度函数即确定输入的信号值所在区间范围的比重,在嵌入式设备中一般选用直线组成的曲线作为隶属度函数模型,为了方便嵌入式处理器计算,为以下模糊规则及解模糊做准备。1. Determine the domain of discourse and the membership function. Determine the domain of discourse according to the deviation e of the input signal and the deviation change rate ec input range. The determination of the domain of discourse is generally based on artificial experience. The fuzzy set of the domain of discourse is divided into {negative large, negative medium, negative small, zero, positive small, positive, Zhengda}. The specific scope of discourse needs to be determined in combination with the usage scenarios. The membership function is to determine the proportion of the range of the input signal value. In embedded devices, the curve composed of straight lines is generally used as the membership function model. In order to facilitate the calculation of the embedded processor, it is prepared for the following fuzzy rules and defuzzification.
2.确定模糊规则表。模糊规则表的确立应尽量确保准确,因为控制算法的好坏与模糊规则的准确性息息相关。一般将e和ec的范围划分为七段,即:{负大,负中,负小,零,正小,正中,正大}。因此可以建立49条完整的模糊规则集合。以温升曲线为例,当温度上升期间时,应该尽量让Kp取比较大的值以确保能够快速响应,减少上升时间,Ki取相对较小的值,防止积分饱和,积分超调现象的发生,Kd取相对较大的值,为了防止超调,减小系统的输出,控制上升速率。2. Determine the fuzzy rule table. The establishment of the fuzzy rule table should be as accurate as possible, because the quality of the control algorithm is closely related to the accuracy of the fuzzy rules. Generally, the range of e and ec is divided into seven segments, namely: {negative large, negative medium, negative small, zero, positive small, positive medium, positive large}. Therefore, a complete set of 49 fuzzy rules can be established. Taking the temperature rise curve as an example, when the temperature is rising, Kp should be set to a relatively large value to ensure quick response and reduce the rise time, and Ki should be relatively small to prevent integral saturation and integral overshoot. , Kd takes a relatively large value, in order to prevent overshoot, reduce the output of the system, and control the rate of rise.
因此规则1:当e为“PB”且ec为“Z0”时,ΔKp为“PM”,ΔKi为“PS”,ΔKd为“PM”。So Rule 1: When e is "PB" and ec is "Z0", ΔKp is "PM", ΔKi is "PS", and ΔKd is "PM".
规则2:当e为“PB”且ec为“NS”时,ΔKp为“PM”,ΔKi为“PS”,ΔKd为“PM”。Rule 2: When e is "PB" and ec is "NS", ΔKp is "PM", ΔKi is "PS", and ΔKd is "PM".
规则3:当e为“PB”且ec为“NM”时,ΔKp为“PS”,ΔKi为“Z0”,ΔKd为“PM”。Rule 3: When e is "PB" and ec is "NM", ΔKp is "PS", ΔKi is "Z0", and ΔKd is "PM".
以此而推,具体规则列表为:Based on this, the specific rule list is as follows:
ΔKP模糊规则表:ΔKP fuzzy rule table:
ΔKi模糊规则表:ΔKi fuzzy rule table:
ΔKd模糊规则表:ΔKd fuzzy rule table:
3.为了得到真实的PID控制器参数Kp和Ki及Kd,进行如下变化:3. In order to obtain the real PID controller parameters Kp, Ki and Kd, make the following changes:
Kp=Kp0+ΔKp;Ki=Ki0+ΔKi;Kd=Kd0+ΔKd(其中Kp0、Ki0、Kd0分别表示PID系数的初始值);Kp=Kp0+ΔKp; Ki=Ki0+ΔKi; Kd=Kd0+ΔKd (Kp0, Ki0, Kd0 represent the initial value of the PID coefficient respectively);
神经元PID结构模型如图4所示,The neuron PID structure model is shown in Figure 4,
1.结构为三输入单输出的结构,其中三个输入为e(k),神经元的输出为u(k),其中神经元的权值为PID的比例、积分、微分三个系数(Kp、Ki、Kd)。1. The structure is a structure with three inputs and one output, where three inputs are e(k), The output of the neuron is u(k), and the weight of the neuron is the three coefficients (Kp, Ki, Kd) of the PID ratio, integral, and differential.
(其中μ为学习率,0<μ<1)(where μ is the learning rate, 0<μ<1)
同理可得,In the same way,
4、神经网络权值的初始值可以使用本方法步骤一提到的PID自整定方法计算出的值作为初始值,能够加快神经网络PID自整定的速度。4. The initial value of the neural network weight can use the value calculated by the PID self-tuning method mentioned in step 1 of this method as the initial value, which can speed up the speed of the neural network PID self-tuning.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610103921.XA CN105759607B (en) | 2016-02-26 | 2016-02-26 | The design method of PAC controllers based on intelligent control algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610103921.XA CN105759607B (en) | 2016-02-26 | 2016-02-26 | The design method of PAC controllers based on intelligent control algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105759607A CN105759607A (en) | 2016-07-13 |
CN105759607B true CN105759607B (en) | 2018-08-14 |
Family
ID=56331315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610103921.XA Expired - Fee Related CN105759607B (en) | 2016-02-26 | 2016-02-26 | The design method of PAC controllers based on intelligent control algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105759607B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106774037A (en) * | 2017-03-19 | 2017-05-31 | 北京工业大学 | A kind of intelligent electric tracing control system based on Internet of Things cloud platform |
CN107422640B (en) * | 2017-08-01 | 2020-08-11 | 东华大学 | A Combined Integral System Identification Method Based on Relay Feedback |
CN107885075B (en) * | 2017-11-15 | 2020-08-28 | 机械工业仪器仪表综合技术经济研究所 | Method and system for detecting intelligent setting of process control |
CN107894716A (en) * | 2017-11-28 | 2018-04-10 | 昆山艾派科技有限公司 | Temprature control method |
CN108181802A (en) * | 2017-12-05 | 2018-06-19 | 东南大学 | A kind of controllable PID controller parameter optimization setting method of performance |
CN109995580B (en) * | 2019-03-13 | 2022-08-16 | 北京工业大学 | VN mapping method based on GA _ PSO hybrid algorithm in 5G network slice |
CN110109346A (en) * | 2019-05-29 | 2019-08-09 | 中国计量大学 | The pid control algorithm of aluminium-air cell power converter |
CN110374789B (en) * | 2019-07-04 | 2020-12-04 | 南方电网科学研究院有限责任公司 | PID parameter switching method and device for speed regulator of hydraulic turbine set |
CN111399369A (en) * | 2020-02-20 | 2020-07-10 | 西北工业大学 | A digital closed-loop control method of photoelectric accelerometer sensor |
CN113741174A (en) * | 2021-09-03 | 2021-12-03 | 中石化石油机械股份有限公司三机分公司 | Self-adaptive pressure control algorithm of reciprocating natural gas compressor |
CN114510092B (en) * | 2022-02-17 | 2023-02-10 | 太原理工大学 | Transition packet internal temperature control system and method based on fuzzy PID (proportion integration differentiation) of prediction variable universe |
-
2016
- 2016-02-26 CN CN201610103921.XA patent/CN105759607B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN105759607A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105759607B (en) | The design method of PAC controllers based on intelligent control algorithm | |
CN104019526B (en) | Improve PSO algorithm Fuzzy Adaptive PID temperature and humidity control system and method | |
CN111812968B (en) | Valve Position Cascade Control Method Based on Fuzzy Neural Network PID Controller | |
CN111176115B (en) | Valve position control method based on fuzzy neural network and human-like intelligent control | |
CN107894716A (en) | Temprature control method | |
CN108536005A (en) | One kind being based on Fuzzy Neural PID ship course keeping control device and its control method | |
CN105630033A (en) | Water temperature control method and control system thereof based on adaptable fuzzy PID | |
CN104833154B (en) | Chilled water loop control method based on fuzzy PID and neural internal model | |
CN117093033A (en) | Resistance heating furnace temperature control system for optimizing PID parameters based on particle swarm optimization | |
CN103618486A (en) | Fuzzy-control direct-current motor speed control method | |
CN103561497B (en) | A kind of distributed micro-wave drying control device and method | |
CN102323750B (en) | Embedded nonlinear impulse cooperative controller | |
CN117472099A (en) | Filling machine liquid level control method based on fuzzy PID composite regulation | |
CN202663351U (en) | Servo motor rotational speed control system based on fuzzy self-adaptive proportional-integral-derivative (PID) controllers | |
CN106054616B (en) | The titanium strip coil continuous acid-washing looper height control method of fuzzy logic PID controller parameter | |
CN105911865A (en) | Control method of PID controller | |
CN108227476A (en) | A control method for an AGV trolley | |
Liu et al. | Fuzzy controllers with neural network predictor for second-order linear systems with time delay | |
CN105911864A (en) | Uncertain limited system robustness control method based on virtual equilibrium point invariant set | |
CN111538232B (en) | Unmanned driving anti-rolling positioning method and system based on self-adaptive neural fuzzy control | |
Yu et al. | A novel modified PID controller applied to temperature control with self-tuning ability | |
CN206563911U (en) | A kind of double volume tank level control system based on PID neutral nets | |
CN108363292B (en) | Thermal power generating unit AGC control method and device based on fuzzy control strategy | |
Arafat et al. | The Development of a Matlab-Based Fuzzy PID Controller and The Simulation | |
CN107272526A (en) | A kind of fuzzy controller for industrial boiler |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180814 Termination date: 20210226 |
|
CF01 | Termination of patent right due to non-payment of annual fee |