CN115558934A - A Network-Based Fuzzy Control Method for Potentiostat - Google Patents

A Network-Based Fuzzy Control Method for Potentiostat Download PDF

Info

Publication number
CN115558934A
CN115558934A CN202210820242.XA CN202210820242A CN115558934A CN 115558934 A CN115558934 A CN 115558934A CN 202210820242 A CN202210820242 A CN 202210820242A CN 115558934 A CN115558934 A CN 115558934A
Authority
CN
China
Prior art keywords
fuzzy
potential
potentiostat
pipeline
fuzzy controller
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.)
Granted
Application number
CN202210820242.XA
Other languages
Chinese (zh)
Other versions
CN115558934B (en
Inventor
何国军
袁传礼
徐挺
杨秦敏
杨楷翔
瞿良勇
张城
郑俊强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Energy Group Co ltd
Zhejiang Provincial Natural Gas Development Co ltd
Zhejiang University ZJU
Original Assignee
Zhejiang Energy Group Co ltd
Zhejiang Zheneng Natural Gas Operation Co ltd
Zhejiang University ZJU
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Energy Group Co ltd, Zhejiang Zheneng Natural Gas Operation Co ltd, Zhejiang University ZJU filed Critical Zhejiang Energy Group Co ltd
Priority to CN202210820242.XA priority Critical patent/CN115558934B/en
Publication of CN115558934A publication Critical patent/CN115558934A/en
Application granted granted Critical
Publication of CN115558934B publication Critical patent/CN115558934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • CCHEMISTRY; METALLURGY
    • C23COATING METALLIC MATERIAL; COATING MATERIAL WITH METALLIC MATERIAL; CHEMICAL SURFACE TREATMENT; DIFFUSION TREATMENT OF METALLIC MATERIAL; COATING BY VACUUM EVAPORATION, BY SPUTTERING, BY ION IMPLANTATION OR BY CHEMICAL VAPOUR DEPOSITION, IN GENERAL; INHIBITING CORROSION OF METALLIC MATERIAL OR INCRUSTATION IN GENERAL
    • C23FNON-MECHANICAL REMOVAL OF METALLIC MATERIAL FROM SURFACE; INHIBITING CORROSION OF METALLIC MATERIAL OR INCRUSTATION IN GENERAL; MULTI-STEP PROCESSES FOR SURFACE TREATMENT OF METALLIC MATERIAL INVOLVING AT LEAST ONE PROCESS PROVIDED FOR IN CLASS C23 AND AT LEAST ONE PROCESS COVERED BY SUBCLASS C21D OR C22F OR CLASS C25
    • C23F13/00Inhibiting corrosion of metals by anodic or cathodic protection
    • C23F13/02Inhibiting corrosion of metals by anodic or cathodic protection cathodic; Selection of conditions, parameters or procedures for cathodic protection, e.g. of electrical conditions
    • C23F13/04Controlling or regulating desired parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Chemical & Material Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Materials Engineering (AREA)
  • Mechanical Engineering (AREA)
  • Metallurgy (AREA)
  • Organic Chemistry (AREA)
  • Prevention Of Electric Corrosion (AREA)

Abstract

The invention provides a network-based potentiostat fuzzy control method, which comprises the steps of establishing a detection transmitter and actuator and fuzzy controller information connection network; electrically connecting the measuring transducer and the actuator with a pipeline to be protected; detecting the uploading potential of the transmitter and sampling the uploading potential in a fuzzy controller; the fuzzy controller determines the monitoring point with the highest potential of each detection transmitter, and the potential of the point is used as the input of the fuzzy controller; the fuzzy controller judges the protection level of the input sample of the selected monitoring point, and outputs an instruction to the actuator; the actuator outputs current according to the change stage instruction output by the fuzzy controller; the output current of the actuator acts on the pipeline to change the potential of the pipeline, the potential of the pipeline is detected by the detection transmitter to be fed back, and the fuzzy controller changes the control output, so that the network-based potentiostat fuzzy control pipeline protection method is formed. The invention realizes the technical effect of higher control precision of the cathode protection potential of the pipeline.

Description

一种基于网络的恒电位仪模糊控制方法A Network-Based Fuzzy Control Method for Potentiostat

技术领域technical field

本发明涉及油气管道的防腐蚀控制领域,尤其涉及一种基于网络的恒电位仪模糊控制方法。The invention relates to the field of anti-corrosion control of oil and gas pipelines, in particular to a network-based fuzzy control method for a potentiostat.

背景技术Background technique

针对油气管道的防腐蚀控制,面对复杂的地理环境及人工设备设施导致的杂散电流干扰,如何提供一种能有效应对高频非线性的杂散电流干扰的恒电位仪控制方法是技术人员亟需解决的问题。金属材料化学处理、涂加防腐层材料和阴极保护技术是用来防止腐蚀的一些常用技术。其中阴极保护技术是防止金属结构腐蚀(如地下管道、储油罐、储水罐、船舶等)最有效的方法之一。分为牺牲阳极阴极保护和外加电流阴极保护。牺牲阳极阴极保护即通过被保护金属结构物外接活性更强的金属,通过使外接金属腐蚀,牺牲可更换的外接金属来保护金属结构物;外加电流阴极保护即通过对金属施加阴极电流,使被保护金属阴极极化到达氧化还原平衡状态,停止腐蚀。行业标准规定的阴极保护有效金属极化电位为-0.85V— -1.20V范围内。传统恒电位仪控制方式由恒电位仪本身同时执行控制系统中的控制器、执行器和检测变送的功能,恒电位仪功能高度集成,由恒电位仪和管道便构成了一个完成的控制系统。而使用网络控制结构,恒电位仪本身只作为执行器使用,控制器功能放在服务器端,可以方便的根据需要对恒电位仪采用的算法进行编程修改,可以随时随地通过互联网进行恒电位控制算法的升级。For the anti-corrosion control of oil and gas pipelines, in the face of complex geographical environment and stray current interference caused by artificial equipment and facilities, how to provide a potentiostat control method that can effectively deal with high-frequency nonlinear stray current interference is a technical problem. Problems that need to be solved urgently. Chemical treatment of metallic materials, application of anti-corrosion coating materials, and cathodic protection techniques are some of the common techniques used to prevent corrosion. Among them, cathodic protection technology is one of the most effective methods to prevent corrosion of metal structures (such as underground pipelines, oil storage tanks, water storage tanks, ships, etc.). Divided into sacrificial anode cathodic protection and impressed current cathodic protection. Sacrificial anode cathodic protection is to protect the metal structure by connecting a more active metal to the protected metal structure, sacrificing the replaceable external metal by corroding the metal structure; impressed current cathodic protection is to apply cathodic current to the metal to make the metal structure protected Protect metal cathodic polarization to reach redox equilibrium state and stop corrosion. The effective metal polarization potential of cathodic protection stipulated in the industry standard is in the range of -0.85V--1.20V. In the traditional potentiostat control mode, the potentiostat itself performs the functions of controller, actuator and detection and transmission in the control system at the same time. The functions of the potentiostat are highly integrated, and a complete control system is formed by the potentiostat and pipelines. . With the network control structure, the potentiostat itself is only used as an actuator, and the controller function is placed on the server side. It is convenient to program and modify the algorithm used by the potentiostat according to needs, and the constant potential control algorithm can be carried out through the Internet anytime and anywhere. upgrade.

一种在中国专利文献上公开的“一种油气管道的阴极保护系统”,其公告号CN112941521A,此发明公开一种油气管道的阴极保护系统。该系统包括:采集模块,用于采集开关电源、输出模块在当前时刻上的运行参数,并发送至微处理器;微处理器,用于将所述运行参数发送至异常诊断模块;异常诊断模块,用于根据所述运行参数,诊断第一子系统是否存在运行异常,并将诊断结果发送至微处理器;第一通信控制模块,用于当第一子系统运行异常时,将第一子系统从工作状态切换为非工作状态,将第二子系统从非工作状态切换为工作状态,以使油气管道不被腐蚀。但此发明的管道阴极保护电位的控制精度不足。A "cathode protection system for oil and gas pipeline" disclosed in Chinese patent literature, its notification number is CN112941521A, this invention discloses a cathodic protection system for oil and gas pipeline. The system includes: an acquisition module, used to collect the operating parameters of the switching power supply and the output module at the current moment, and send them to the microprocessor; the microprocessor, used to send the operating parameters to the abnormal diagnosis module; the abnormal diagnosis module , for diagnosing whether the first subsystem operates abnormally according to the operating parameters, and sending the diagnosis result to the microprocessor; the first communication control module, for when the first subsystem is abnormally operating, sending the first subsystem The system is switched from the working state to the non-working state, and the second subsystem is switched from the non-working state to the working state, so that the oil and gas pipelines are not corroded. But the control accuracy of the pipeline cathodic protection potential of this invention is not enough.

发明内容Contents of the invention

本发明是为了克服管道阴极保护电位的控制精度不足,设备检修复杂,提供了一种基于网络的恒电位仪模糊控制方法,实现了管道阴极保护电位的控制精度更高,更好的管道防腐蚀的技术效果。The present invention is to overcome the lack of control precision of pipeline cathodic protection potential and complicated equipment maintenance, and provides a network-based fuzzy control method of potentiostat, which realizes higher control precision of pipeline cathodic protection potential and better pipeline anti-corrosion technical effect.

为了实现上述目的,本发明采用以下技术方案:一种基于网络的恒电位仪模糊控制方法,包括In order to achieve the above object, the present invention adopts the following technical solutions: a network-based potentiostat fuzzy control method, comprising

S1建立检测变送器和执行器与模糊控制器信息连接网络;S1 establishes the information connection network between the detection transmitter and the actuator and the fuzzy controller;

S2将检测变送器和执行器与待保护的管道电连接;S2 electrically connects the detection transmitter and actuator to the pipeline to be protected;

S3检测变送器上传电位采样于模糊控制器;The S3 detection transmitter uploads the potential sampling to the fuzzy controller;

S4模糊控制器确定各个检测变送器电位最高的监测点,将该点电位作为模糊控制器输入;The S4 fuzzy controller determines the monitoring point with the highest potential of each detection transmitter, and uses the potential of this point as the input of the fuzzy controller;

S5模糊控制器判定选定监测点的输入样本需保护等级,模糊控制器输出指令于执行器;The S5 fuzzy controller judges that the input sample of the selected monitoring point needs protection level, and the fuzzy controller outputs instructions to the actuator;

S6执行器根据模糊控制器输出的变化级数指令输出电流;The S6 actuator commands the output current according to the change series output by the fuzzy controller;

S7执行器输出电流作用于管道,改变管道电位,由检测变送器检测管道电位进行反馈,模糊控制器改变控制输出,由此形成保护-监测循环。The output current of the S7 actuator acts on the pipeline to change the potential of the pipeline, which is fed back by the detection transmitter to detect the potential of the pipeline, and the fuzzy controller changes the control output, thus forming a protection-monitoring cycle.

本发明通过使用网络控制结构将检测、控制、执行三部分功能分散,有利于提高阴保系统的安全性,控制算法放在服务器端,能方便的进行算法升级改进,检测变送器可根据需要选择为恒电位仪本地或者分布在管道上的阴保桩,能够针对性的对管道电位进行控制,使用模糊控制方法,能解决由于检测频率低和传输延时导致的控制精度低的问题。The invention disperses the functions of detection, control and execution by using the network control structure, which is beneficial to improve the safety of the cathodic protection system. The control algorithm is placed on the server side, and the algorithm can be upgraded and improved conveniently. The detection transmitter can be adjusted according to the needs. The local potentiostat or the cathodic protection pile distributed on the pipeline can be used to control the potential of the pipeline in a targeted manner. Using the fuzzy control method can solve the problem of low control accuracy caused by low detection frequency and transmission delay.

作为优选,S1中的信息连接网络为:所述执行器能根据通过以太网接收到的远程的模糊控制器控制指令,进行响应,相应改变输出到管道上的电流大小,所述检测变送器分为两种,其中之一的阴保桩通过4G网络无线通讯与模糊控制器信息互通,所述模糊控制器为载有模糊控制算法的服务器。Preferably, the information connection network in S1 is: the actuator can respond according to the remote fuzzy controller control instruction received through the Ethernet, and change the current output to the pipeline accordingly, and the detection transmitter There are two types. One of them, the Yinbao pile, communicates with the fuzzy controller through 4G network wireless communication. The fuzzy controller is a server carrying a fuzzy control algorithm.

本发明恒电位仪与服务器之间通讯采用以太网通讯方式;阴保桩与服务器之间通讯采用4G网络无线通讯。数据传输采用的协议为MQTT通讯协议,MQTT协议是IBM发布一种基于TCP、IP的轻量级发布订阅消息传递协议,特有订阅、推送的数据传输模式,满足低宽带、通信不可靠、低能耗和低内存消耗的需求。The communication between the potentiostat and the server of the present invention adopts the Ethernet communication mode; the communication between the cathodic protection pile and the server adopts 4G network wireless communication. The protocol used for data transmission is the MQTT communication protocol. The MQTT protocol is a lightweight publish-subscribe messaging protocol based on TCP and IP released by IBM. It has a unique subscription and push data transmission mode to meet low bandwidth, unreliable communication, and low energy consumption. and low memory consumption requirements.

作为优选,S1中的所述执行器为恒电位仪,所述检测变送器包括恒电位仪和阴保桩。Preferably, the actuator in S1 is a potentiostat, and the detection transmitter includes a potentiostat and a cathodic protection pile.

本发明恒电位仪本身具有检测功能,还有可以发出保护电流,在管道上分布的带自动电位检测和数据传输功能的阴保桩作为控制系统中的检测环节发挥着实时检测作用。The potentiostat of the present invention has a detection function, and can also send out a protection current. The cathodic protection piles with automatic potential detection and data transmission functions distributed on the pipeline play a real-time detection role as a detection link in the control system.

作为优选,模糊控制算法如下:As preferably, the fuzzy control algorithm is as follows:

S1O1将检测变送器传送的信息模糊化;S1O1 blurs the information transmitted by the detection transmitter;

S102在规则库中选取对应的模糊化等级;S102 Selecting a corresponding fuzzification level in the rule base;

S103模糊化推理:根据模糊化等级,推算出电位调控等级;S103 Fuzzy reasoning: according to the fuzzy level, calculate the potential regulation level;

S104解模糊化:将电位调控等级转化成控制量输出。S104 Defuzzification: converting the potential regulation level into a control quantity output.

本发明采用的模糊逻辑控制是以模糊集合论、模糊语言变量和模糊逻辑推理为基础的一种计算机数字控制技术,它能解决由于检测频率低和传输延时导致的控制精度低的问题,所述规则库为实地测量和专家针对管道腐蚀程度与电流关系建立的数据库。The fuzzy logic control adopted in the present invention is a kind of computer digital control technology based on fuzzy set theory, fuzzy language variables and fuzzy logic reasoning, which can solve the problem of low control precision caused by low detection frequency and transmission delay, so The above rule base is a database established by field measurements and experts for the relationship between pipeline corrosion degree and current.

作为优选,其中S101还包括:As preferably, wherein S101 also includes:

S1011对输入量进行满足模糊控制需求的处理;S1011 processing the input quantity to meet the requirements of fuzzy control;

S1012对输入量进行从数据到防护等级的模拟量变换;S1012 converts the input quantity from data to analog quantity of protection level;

S1013确定各输入量的防护等级的模拟量取值和相应的隶属度函数。S1013 Determine the analog value of the protection level of each input quantity and the corresponding membership degree function.

本发明在将检测变送器传送的信息模糊化时,将输入量进行从数据到防护等级的模拟量变换是为了使模糊逻辑控制能确定各输入量的防护等级的模拟量取值和相应的隶属度函数从而达到信息模糊化。When the present invention fuzzifies the information transmitted by the detection transmitter, the purpose of converting the input quantity from data to the analog quantity of the protection level is to enable the fuzzy logic control to determine the value of the analog quantity and the corresponding protection level of each input quantity. Membership function to achieve information fuzzification.

作为优选,S2中的检测变送器分布为若干组阴保桩与一组恒电位仪形成一个检测变送器单元,所述恒电位仪通过导线与管道连接,所述阴保桩通过导线与管道连接,每个所述检测变送器相互之间相距等长的距离。As a preference, the detection transmitters in S2 are distributed as several groups of cathodic protection piles and a group of potentiostats to form a detection transmitter unit. The pipelines are connected, and each of the detection transmitters is at an equal distance from each other.

本发明将各个检测变送器单元分布到待保护的管道,将带保护的管道实时数据通过检测变送器反馈到模糊控制器,使模糊控制器能利用数据做出相应的判断。The invention distributes each detection transmitter unit to the pipeline to be protected, and feeds back the real-time data of the protected pipeline to the fuzzy controller through the detection transmitter, so that the fuzzy controller can use the data to make corresponding judgments.

作为优选,S4中模糊控制器输入为选定监测点前十次采样的电位移动平均值和每60次采样中电位高于-0.85V的采样数,模糊控制器的输入为选定监测点前十次采样的电位移动平均值(MA)和每60次采样中电位高于-0.85V的未保护采样数(N)。As preferably, the input of the fuzzy controller in S4 is the potential moving average of the first ten samplings of the selected monitoring point and the sampling number of potential higher than -0.85V in every 60 samplings, and the input of the fuzzy controller is the sampling number before the selected monitoring point. Moving average (MA) of potential over ten samples and number of unprotected samples (N) with potential above -0.85V per 60 samples.

本发明采取最高电位点作为采样点有利于在高频非线性的杂散电流干扰点找出最需保护的管道,在每60次采样中电位高于-0.85V的未保护采样数(N),有利于找到管道的腐蚀中的次级需保护点。The present invention takes the highest potential point as the sampling point, which is beneficial to find out the pipeline most in need of protection at the high-frequency nonlinear stray current interference point, and the number of unprotected samples (N) with a potential higher than -0.85V in every 60 samples , which is beneficial to find the secondary protection point in the corrosion of the pipeline.

作为优选,S6中模糊控制器输出指令为恒电位仪输出变化级数,模糊控制器将电位移动平均值(MA)模糊化为高、中、低三段,将未保护采样数(N)模糊化为零、低、中、高四段,建立模糊字表,生成模糊量输出,然后通过清晰化将模糊控制器输出分为-2、-1、0、1、2,作为恒电位仪输出增量值,其中恒电位仪输出最低为0V,最高为-3V,由8位D/A转换电路分为256级。As preferably, the output command of the fuzzy controller in S6 is the output change series of the potentiostat, and the fuzzy controller fuzzifies the potential moving average (MA) into three sections of high, medium and low, and fuzzifies the number of unprotected samples (N) Convert it into four sections of zero, low, medium and high, establish a fuzzy word table, generate fuzzy output, and then divide the output of the fuzzy controller into -2, -1, 0, 1, 2 through clearing, as the output of the potentiostat Incremental value, the lowest output of the potentiostat is 0V, the highest is -3V, which is divided into 256 levels by the 8-bit D/A conversion circuit.

本发明中恒电位仪根据模糊控制器输出指令,找到D/A转换电路中256级的对应电流值输出,进行管道保护,其中模糊控制器的输出指令是根据实时数据模糊化得来的有利于全段定点精确的阴极保护电位控制。In the present invention, the potentiostat finds the corresponding current value output of 256 levels in the D/A conversion circuit according to the output instruction of the fuzzy controller, and performs pipeline protection, wherein the output instruction of the fuzzy controller is obtained according to the fuzzification of real-time data, which is beneficial Precise fixed-point cathodic protection potential control for the whole section.

本发明的有益效果:Beneficial effects of the present invention:

通过使用网络控制结构,恒电位仪本身只作为执行器使用,控制器功能放在服务器端,除了恒电位仪本身的检测功能外,在管道上分布的带自动电位检测和数据传输功能的阴保桩也作为控制系统中的检测环节发挥作用,这样,将检测、控制、执行三部分功能分散,有利于提高阴保系统的安全性,控制算法放在服务器端,能方便的进行算法升级改进,检测变送器可根据需要选择为恒电位仪本地或者分布在管道上的阴保桩,能够针对性的对管道电位进行控制,使用模糊控制方法,能解决由于检测频率低和传输延时导致的控制精度低的问题。By using the network control structure, the potentiostat itself is only used as an actuator, and the controller function is placed on the server side. In addition to the detection function of the potentiostat itself, the cathodic protection with automatic potential detection and data transmission functions distributed on the pipeline The pile also plays a role as the detection link in the control system. In this way, the three functions of detection, control and execution are dispersed, which is conducive to improving the security of the cathodic protection system. The control algorithm is placed on the server side, which can be easily upgraded and improved. The detection transmitter can be selected as the local potentiostat or the cathodic protection pile distributed on the pipeline according to the needs, which can control the potential of the pipeline in a targeted manner, and use the fuzzy control method to solve the problems caused by low detection frequency and transmission delay. The problem of low control precision.

附图说明Description of drawings

图1是本发明流程图;Fig. 1 is a flowchart of the present invention;

图2是本发明控制结构图;Fig. 2 is a control structure diagram of the present invention;

图3是本发明系统框架图;Fig. 3 is a system frame diagram of the present invention;

图4是本发明模糊字表图。Fig. 4 is the figure of fuzzy character table of the present invention.

具体实施方式detailed description

下面将结合优化配置实际案例与附图进一步解释说明本发明。In the following, the present invention will be further explained in combination with actual cases of optimized configuration and accompanying drawings.

一种基于网络的恒电位仪模糊控制方法,根据图1,包括A network-based fuzzy control method for potentiostat, according to Fig. 1, including

S1建立检测变送器和执行器与模糊控制器信息连接网络;S1 establishes the information connection network between the detection transmitter and the actuator and the fuzzy controller;

S1中的信息连接网络为:所述执行器能根据通过以太网接收到的远程的模糊控制器控制指令,进行响应,相应改变输出到管道上的电流大小,所述检测变送器分为两种,其中之一的阴保桩通过4G网络无线通讯与模糊控制器信息互通,所述模糊控制器为载有模糊控制算法的服务器;The information connection network in S1 is: the actuator can respond according to the remote fuzzy controller control instruction received through the Ethernet, and change the current output to the pipeline accordingly. The detection transmitter is divided into two One of them, the yin insurance pile communicates with the fuzzy controller through 4G network wireless communication, and the fuzzy controller is a server carrying a fuzzy control algorithm;

S1中的所述执行器为恒电位仪,所述检测变送器包括恒电位仪和阴保桩;The actuator in S1 is a potentiostat, and the detection transmitter includes a potentiostat and a cathodic protection pile;

模糊控制算法如下:The fuzzy control algorithm is as follows:

S1O1将检测变送器传送的信息模糊化;S1O1 blurs the information transmitted by the detection transmitter;

S1011对输入量进行满足模糊控制需求的处理;S1011 processing the input quantity to meet the requirements of fuzzy control;

S1012对输入量进行从数据到防护等级的模拟量变换;S1012 converts the input quantity from data to analog quantity of protection level;

S1013确定各输入量的防护等级的模拟量取值和相应的隶属度函数;S1013 Determine the analog value of the protection level of each input quantity and the corresponding membership function;

S102在规则库中选取对应的模糊化等级;S102 Selecting a corresponding fuzzification level in the rule base;

S103模糊化推理:根据模糊化等级,推算出电位调控等级;S103 Fuzzy reasoning: according to the fuzzy level, calculate the potential regulation level;

S104解模糊化:将电位调控等级转化成控制量输出;S104 Defuzzification: convert the potential regulation level into a control quantity output;

根据图3;According to Figure 3;

S2将测变送器和执行器与待保护的管道电连接;S2 electrically connects the measuring transmitter and the actuator to the pipeline to be protected;

S2中的检测变送器分布为若干组阴保桩与一组恒电位仪形成一个检测变送器单元,所述恒电位仪通过导线与管道连接,所述阴保桩通过导线与管道连接,每个所述检测变送器相互之间相距等长的距离;The detection transmitters in S2 are distributed as several groups of cathodic protection piles and a group of potentiostats to form a detection transmitter unit. The potentiostats are connected to the pipeline through wires, and the cathode protection piles are connected to the pipeline through wires. Each of the detection transmitters is equidistant from each other;

S3检测变送器上传电位采样于模糊控制器;The S3 detection transmitter uploads the potential sampling to the fuzzy controller;

S4模糊控制器确定各个检测变送器电位最高的监测点,将该点电位作为模糊控制器输入;The S4 fuzzy controller determines the monitoring point with the highest potential of each detection transmitter, and uses the potential of this point as the input of the fuzzy controller;

S4中模糊控制器输入为选定监测点前十次采样的电位移动平均值和每60次采样中电位高于-0.85V的采样数,模糊控制器的输入为选定监测点前十次采样的电位移动平均值(MA)和每60次采样中电位高于-0.85V的未保护采样数(N);The input of the fuzzy controller in S4 is the potential moving average of the first ten samples of the selected monitoring point and the number of samples whose potential is higher than -0.85V in every 60 samples, and the input of the fuzzy controller is the first ten samples of the selected monitoring point The moving average (MA) of the potential and the number of unprotected samples (N) with a potential higher than -0.85V in every 60 samples;

S5模糊控制器判定选定监测点的输入样本需保护等级,模糊控制器输出指令于执行器;The S5 fuzzy controller judges that the input sample of the selected monitoring point needs protection level, and the fuzzy controller outputs instructions to the actuator;

S6执行器根据模糊控制器输出的变化级数指令输出电流;The S6 actuator commands the output current according to the change series output by the fuzzy controller;

S6中模糊控制器输出指令为恒电位仪输出变化级数,模糊控制器将电位移动平均值(MA)模糊化为高、中、低三段,将未保护采样数(N)模糊化为零、低、中、高四段,建立模糊字表,根据图4,生成模糊量输出,然后通过清晰化将模糊控制器输出分为-2、-1、0、1、2,作为恒电位仪输出增量值,其中恒电位仪输出最低为0V,最高为-3V,由8位D/A转换电路分为256级;The output command of the fuzzy controller in S6 is the output change series of the potentiostat, and the fuzzy controller fuzzifies the potential moving average (MA) into high, medium and low segments, and fuzzifies the number of unprotected samples (N) to zero , low, medium and high four sections, establish a fuzzy word table, generate fuzzy output according to Figure 4, and then divide the output of the fuzzy controller into -2, -1, 0, 1, 2 through clarity, as a potentiostat Output incremental value, among which the potentiostat output is 0V at the lowest and -3V at the highest, which is divided into 256 levels by the 8-bit D/A conversion circuit;

根据图2;According to Figure 2;

S7执行器输出电流作用于管道,改变管道电位,由检测变送器检测管道电位进行反馈,模糊控制器改变控制输出,由此形成基于网络的恒电位仪模糊控制保护管道方法。The output current of the S7 actuator acts on the pipeline to change the pipeline potential, which is fed back by the detection transmitter to detect the pipeline potential, and the fuzzy controller changes the control output, thus forming a network-based potentiostat fuzzy control protection pipeline method.

本发明的实施例:Embodiments of the invention:

建立检测变送器和执行器与模糊控制器信息连接网络;将测变送器和执行器与待保护的管道电连接;检测变送器上传电位采样于模糊控制器;模糊控制器确定各个检测变送器电位最高的监测点,将该点电位作为模糊控制器输入;模糊控制器判定选定监测点的输入样本需保护等级,模糊控制器输出指令于执行器;执行器根据模糊控制器输出的变化级数指令输出电流;执行器输出电流作用于管道,改变管道电位,由检测变送器检测管道电位进行反馈,模糊控制器改变控制输出,由此形成基于网络的恒电位仪模糊控制保护管道方法。Establish the information connection network between the detection transmitter and the actuator and the fuzzy controller; electrically connect the detection transmitter and the actuator to the pipeline to be protected; the detection transmitter uploads the potential sampling to the fuzzy controller; the fuzzy controller determines each detection The monitoring point with the highest potential of the transmitter is used as the input of the fuzzy controller; the fuzzy controller determines that the input samples of the selected monitoring point need protection level, and the fuzzy controller outputs instructions to the actuator; the actuator outputs according to the fuzzy controller The change series command output current; the actuator output current acts on the pipeline, changes the pipeline potential, and the detection transmitter detects the pipeline potential for feedback, and the fuzzy controller changes the control output, thus forming a network-based potentiostat fuzzy control protection pipeline method.

本发明通过使用网络控制结构将检测、控制、执行三部分功能分散,有利于提高阴保系统的安全性,控制算法放在服务器端,能方便的进行算法升级改进,检测变送器可根据需要选择为恒电位仪本地或者分布在管道上的阴保桩,能够针对性的对管道电位进行控制,使用模糊控制方法,能解决由于检测频率低和传输延时导致的控制精度低的问题。The invention disperses the functions of detection, control and execution by using the network control structure, which is beneficial to improve the safety of the cathodic protection system. The control algorithm is placed on the server side, and the algorithm can be upgraded and improved conveniently. The detection transmitter can be adjusted according to the needs. The local potentiostat or the cathodic protection pile distributed on the pipeline can be used to control the potential of the pipeline in a targeted manner. Using the fuzzy control method can solve the problem of low control accuracy caused by low detection frequency and transmission delay.

本发明恒电位仪与服务器之间通讯采用以太网通讯方式;阴保桩与服务器之间通讯采用4G网络无线通讯。数据传输采用的协议为MQTT通讯协议,MQTT协议是IBM发布一种基于TCP、IP的轻量级发布订阅消息传递协议,特有订阅、推送的数据传输模式,满足低宽带、通信不可靠、低能耗和低内存消耗的需求。The communication between the potentiostat and the server of the present invention adopts the Ethernet communication mode; the communication between the cathodic protection pile and the server adopts 4G network wireless communication. The protocol used for data transmission is the MQTT communication protocol. The MQTT protocol is a lightweight publish-subscribe messaging protocol based on TCP and IP released by IBM. It has a unique subscription and push data transmission mode to meet low bandwidth, unreliable communication, and low energy consumption. and low memory consumption requirements.

本发明恒电位仪本身具有检测功能,还有可以发出保护电流,在管道上分布的带自动电位检测和数据传输功能的阴保桩作为控制系统中的检测环节发挥着实时检测作用。The potentiostat of the present invention has a detection function, and can also send out a protection current. The cathodic protection piles with automatic potential detection and data transmission functions distributed on the pipeline play a real-time detection role as a detection link in the control system.

本发明采用的模糊逻辑控制是以模糊集合论、模糊语言变量和模糊逻辑推理为基础的一种计算机数字控制技术,它能解决由于检测频率低和传输延时导致的控制精度低的问题。The fuzzy logic control used in the present invention is a computer digital control technology based on fuzzy set theory, fuzzy language variables and fuzzy logic reasoning, which can solve the problem of low control precision caused by low detection frequency and transmission delay.

本发明在将检测变送器传送的信息模糊化时,将输入量进行从数据到防护等级的模拟量变换是为了使模糊逻辑控制能确定各输入量的防护等级的模拟量取值和相应的隶属度函数从而达到信息模糊化。When the present invention fuzzifies the information transmitted by the detection transmitter, the purpose of converting the input quantity from data to the analog quantity of the protection level is to enable the fuzzy logic control to determine the value of the analog quantity and the corresponding protection level of each input quantity. Membership function to achieve information fuzzification.

本发明将各个检测变送器单元分布到待保护的管道,将带保护的管道实时数据通过检测变送器反馈到模糊控制器,使模糊控制器能利用数据做出相应的判断。The invention distributes each detection transmitter unit to the pipeline to be protected, and feeds back the real-time data of the protected pipeline to the fuzzy controller through the detection transmitter, so that the fuzzy controller can use the data to make corresponding judgments.

本发明采取最高电位点作为采样点有利于在高频非线性的杂散电流干扰点找出最需保护的管道,在每60次采样中电位高于-0.85V的未保护采样数(N),有利于找到管道的腐蚀中的次级需保护点。The present invention takes the highest potential point as the sampling point, which is beneficial to find out the pipeline most in need of protection at the high-frequency nonlinear stray current interference point, and the number of unprotected samples (N) with a potential higher than -0.85V in every 60 samples , which is beneficial to find the secondary protection point in the corrosion of the pipeline.

本发明中恒电位仪根据模糊控制器输出指令,找到D/A转换电路中256级的对应电流值输出,进行管道保护,其中模糊控制器的输出指令是根据实时数据模糊化得来的有利于全段定点精确的阴极保护电位控制。In the present invention, the potentiostat finds the corresponding current value output of 256 levels in the D/A conversion circuit according to the output instruction of the fuzzy controller, and performs pipeline protection, wherein the output instruction of the fuzzy controller is obtained according to the fuzzification of real-time data, which is beneficial Precise fixed-point cathodic protection potential control for the whole section.

Claims (8)

1.一种基于网络的恒电位仪模糊控制方法,其特征是:包括1. A network-based potentiostat fuzzy control method is characterized in that: comprising S1建立检测变送器和执行器与模糊控制器信息连接网络;S1 establishes the information connection network between the detection transmitter and the actuator and the fuzzy controller; S2将检测变送器和执行器与待保护的管道电连接;S2 electrically connects the detection transmitter and actuator to the pipeline to be protected; S3检测变送器上传电位采样于模糊控制器;The S3 detection transmitter uploads the potential sampling to the fuzzy controller; S4模糊控制器确定各个检测变送器电位最高的监测点,将该点电位作为模糊控制器输入;The S4 fuzzy controller determines the monitoring point with the highest potential of each detection transmitter, and uses the potential of this point as the input of the fuzzy controller; S5模糊控制器判定选定监测点的输入样本需保护等级,模糊控制器输出指令于执行器;The S5 fuzzy controller judges that the input sample of the selected monitoring point needs protection level, and the fuzzy controller outputs instructions to the actuator; S6执行器根据模糊控制器输出的变化级数指令输出电流;The S6 actuator commands the output current according to the change series output by the fuzzy controller; S7执行器输出电流作用于管道,改变管道电位,由检测变送器检测管道电位进行反馈,模糊控制器改变控制输出,由此形成基于网络的恒电位仪模糊控制保护管道方法。The output current of the S7 actuator acts on the pipeline to change the pipeline potential, which is fed back by the detection transmitter to detect the pipeline potential, and the fuzzy controller changes the control output, thus forming a network-based potentiostat fuzzy control protection pipeline method. 2.根据权利要求1所述的一种基于网络的恒电位仪模糊控制方法,其特征是:S1中的信息连接网络为:所述执行器能根据通过以太网接收到的远程的模糊控制器控制指令,进行响应,相应改变输出到管道上的电流大小,所述检测变送器分为两种,其中之一的阴保桩通过4G网络无线通讯与模糊控制器信息互通,所述模糊控制器为载有模糊控制算法的服务器。2. a kind of network-based potentiostat fuzzy control method according to claim 1 is characterized in that: the information connection network in S1 is: said actuator can receive according to the remote fuzzy controller by Ethernet Control instructions, respond, and change the current output to the pipeline accordingly. The detection transmitter is divided into two types, one of which is the cathodic security pile, which communicates with the fuzzy controller through 4G network wireless communication. The fuzzy control The server is a server loaded with fuzzy control algorithm. 3.根据权利要求2所述的一种基于网络的恒电位仪模糊控制方法,其特征是:S1中的所述执行器为恒电位仪,所述检测变送器包括恒电位仪和阴保桩。3. a kind of network-based potentiostat fuzzy control method according to claim 2 is characterized in that: the actuator in S1 is a potentiostat, and the detection transmitter includes a potentiostat and a cathodic protection pile. 4.根据权利要求2所述的一种基于网络的恒电位仪模糊控制方法,其特征是:模糊控制算法如下:4. a kind of network-based potentiostat fuzzy control method according to claim 2 is characterized in that: the fuzzy control algorithm is as follows: S1O1将检测变送器传送的信息模糊化;S1O1 blurs the information transmitted by the detection transmitter; S102在规则库中选取对应的模糊化等级;S102 Selecting a corresponding fuzzification level in the rule base; S103模糊化推理:根据模糊化等级,推算出电位调控等级;S103 Fuzzy reasoning: according to the fuzzy level, calculate the potential regulation level; S104解模糊化:将电位调控等级转化成控制量输出。S104 Defuzzification: converting the potential regulation level into a control quantity output. 5.根据权利要求4所述的一种基于网络的恒电位仪模糊控制方法,其特征是:其中S101还包括:5. a kind of network-based potentiostat fuzzy control method according to claim 4 is characterized in that: wherein S101 also includes: S1011对输入量进行满足模糊控制需求的处理;S1011 processing the input quantity to meet the requirements of fuzzy control; S1012对输入量进行从数据到防护等级的模拟量变换;S1012 converts the input quantity from data to analog quantity of protection level; S1013确定各输入量的防护等级的模拟量取值和相应的隶属度函数。S1013 Determine the analog value of the protection level of each input quantity and the corresponding membership degree function. 6.根据权利要求1所述的一种基于网络的恒电位仪模糊控制方法,其特征是:S2中的检测变送器分布为若干组阴保桩与一组恒电位仪形成一个检测变送器单元,所述恒电位仪通过导线与管道连接,所述阴保桩通过导线与管道连接,每个所述检测变送器相互之间相距等长的距离。6. A kind of network-based potentiostat fuzzy control method according to claim 1, characterized in that: the detection transmitters in S2 are distributed as several groups of cathodic protection piles and a group of potentiostats to form a detection transmitter The potentiostat is connected to the pipeline through wires, the cathodic protection pile is connected to the pipeline through wires, and each of the detection transmitters is equidistant from each other. 7.根据权利要求1所述的一种基于网络的恒电位仪模糊控制方法,其特征是:S4中模糊控制器输入为选定监测点前十次采样的电位移动平均值和每60次采样中电位高于-0.85V的采样数,模糊控制器的输入为选定监测点前十次采样的电位移动平均值(MA)和每60次采样中电位高于-0.85V的未保护采样数(N)。7. a kind of network-based potentiostat fuzzy control method according to claim 1 is characterized in that: among the S4, the fuzzy controller input is the potential moving average of the first ten samples of the selected monitoring point and every 60 samples The number of samples with a potential higher than -0.85V, the input of the fuzzy controller is the potential moving average (MA) of the first ten samples of the selected monitoring point and the number of unprotected samples with a potential higher than -0.85V in every 60 samples (N). 8.根据权利要求1所述的一种基于网络的恒电位仪模糊控制方法,其特征是:S6中模糊控制器输出指令为恒电位仪输出变化级数,模糊控制器将电位移动平均值(MA)模糊化为高、中、低三段,将未保护采样数(N)模糊化为零、低、中、高四段,建立模糊字表,生成模糊量输出,然后通过清晰化将模糊控制器输出分为-2、-1、0、1、2,作为恒电位仪输出增量值,其中恒电位仪输出最低为0V,最高为-3V,由8位D/A转换电路分为256级。8. a kind of network-based potentiostat fuzzy control method according to claim 1 is characterized in that: fuzzy controller output instruction is potentiostat output variation series among the S6, and fuzzy controller moves electric potential average value ( MA) is fuzzified into high, medium and low sections, and the unprotected sampling number (N) is fuzzified into four sections of zero, low, medium and high, and a fuzzy word table is established to generate fuzzy quantity output, and then fuzzy The output of the controller is divided into -2, -1, 0, 1, 2, which are used as the output incremental value of the potentiostat, among which the output of the potentiostat is 0V at the lowest and -3V at the highest, which is divided into 8-bit D/A conversion circuit 256 levels.
CN202210820242.XA 2022-07-12 2022-07-12 A Fuzzy Control Method of Constant Potentiostat Based on Network Active CN115558934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210820242.XA CN115558934B (en) 2022-07-12 2022-07-12 A Fuzzy Control Method of Constant Potentiostat Based on Network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210820242.XA CN115558934B (en) 2022-07-12 2022-07-12 A Fuzzy Control Method of Constant Potentiostat Based on Network

Publications (2)

Publication Number Publication Date
CN115558934A true CN115558934A (en) 2023-01-03
CN115558934B CN115558934B (en) 2024-04-19

Family

ID=84738236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210820242.XA Active CN115558934B (en) 2022-07-12 2022-07-12 A Fuzzy Control Method of Constant Potentiostat Based on Network

Country Status (1)

Country Link
CN (1) CN115558934B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GR3001389T3 (en) * 1987-03-11 1992-09-11 Westfael Elekt Werke Process and apparatus for sustaining the cathodic protection of metal surfaces
CN201386137Y (en) * 2009-05-04 2010-01-20 宁波中科腐蚀控制工程技术有限公司 Potentiostat of cathodic protection system
CN102199774A (en) * 2010-03-24 2011-09-28 上海飞奥燃气设备有限公司 Data collecting apparatus, monitoring management system and monitoring method for cathodic protection
CN102345131A (en) * 2010-08-03 2012-02-08 成都恒嘉管道防腐工程有限公司 Potentiostat for resisting metal corrosion and networked constant potential supply system composed of the potentiostat
US20120152733A1 (en) * 2010-12-15 2012-06-21 Abriox Limited Apparatus for use with metallic structures
CN106119857A (en) * 2016-08-01 2016-11-16 大连天禄防腐工程有限公司 The intelligent monitor system of impressed current cathodic protection
JP2020060487A (en) * 2018-10-11 2020-04-16 日本防蝕工業株式会社 Sacrificial anode generation current estimation method and device
US20200232102A1 (en) * 2019-01-21 2020-07-23 LineVision, Inc. Method and system for autonomous measurement of transmission line EMF for pipeline cathodic protection systems
CN111534823A (en) * 2020-07-08 2020-08-14 浙江浙能天然气运行有限公司 A kind of potentiostat intelligent control module, control system and control method
CN113741169A (en) * 2021-07-19 2021-12-03 国家石油天然气管网集团有限公司 Control method and system of potentiostat
CN114196960A (en) * 2021-12-15 2022-03-18 郑州大学 A Cathodic Protection Device for Buried Long-distance Transmission Pipelines Based on PID Fuzzy Algorithm

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GR3001389T3 (en) * 1987-03-11 1992-09-11 Westfael Elekt Werke Process and apparatus for sustaining the cathodic protection of metal surfaces
CN201386137Y (en) * 2009-05-04 2010-01-20 宁波中科腐蚀控制工程技术有限公司 Potentiostat of cathodic protection system
CN102199774A (en) * 2010-03-24 2011-09-28 上海飞奥燃气设备有限公司 Data collecting apparatus, monitoring management system and monitoring method for cathodic protection
CN102345131A (en) * 2010-08-03 2012-02-08 成都恒嘉管道防腐工程有限公司 Potentiostat for resisting metal corrosion and networked constant potential supply system composed of the potentiostat
US20120152733A1 (en) * 2010-12-15 2012-06-21 Abriox Limited Apparatus for use with metallic structures
CN106119857A (en) * 2016-08-01 2016-11-16 大连天禄防腐工程有限公司 The intelligent monitor system of impressed current cathodic protection
JP2020060487A (en) * 2018-10-11 2020-04-16 日本防蝕工業株式会社 Sacrificial anode generation current estimation method and device
US20200232102A1 (en) * 2019-01-21 2020-07-23 LineVision, Inc. Method and system for autonomous measurement of transmission line EMF for pipeline cathodic protection systems
CN111534823A (en) * 2020-07-08 2020-08-14 浙江浙能天然气运行有限公司 A kind of potentiostat intelligent control module, control system and control method
CN113741169A (en) * 2021-07-19 2021-12-03 国家石油天然气管网集团有限公司 Control method and system of potentiostat
CN114196960A (en) * 2021-12-15 2022-03-18 郑州大学 A Cathodic Protection Device for Buried Long-distance Transmission Pipelines Based on PID Fuzzy Algorithm

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ALEXANDER SHURAYTS等: "energy efficient station for cathodic protection of underground metalic pipelines using pulsed current modes", 《E3S WEB OF CONFERENES》, vol. 121, 31 December 2019 (2019-12-31), pages 02010 *
刘磊等: "基于模糊控制的恒电位仪在核电站应用", 《工业控制计算机》, vol. 28, no. 5, 31 December 2015 (2015-12-31), pages 47 - 50 *

Also Published As

Publication number Publication date
CN115558934B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
Qian et al. A novel wind turbine condition monitoring method based on cloud computing
CN109086804B (en) An early fault prediction method for hydraulic equipment based on the fusion of multi-source condition monitoring information and reliability features
CN117057670A (en) Property intelligent energy management system based on Internet of things
Wang et al. Fuzzy modeling of boiler efficiency in power plants
CN107512754B (en) A powder activated carbon dosing automatic control system for water treatment
CN112050742A (en) A landslide crack displacement adaptive monitoring system and method
CN116859839A (en) Industrial control method and device based on model training
CN111534823B (en) A kind of potentiostat intelligent control module, control system and control method
CN115558934A (en) A Network-Based Fuzzy Control Method for Potentiostat
CN115627479A (en) A multifunctional intelligent pipeline cathodic protection system and method
CN119835073A (en) Driving information safety management system and method based on memristive neural network
CN117762861B (en) Oil tanker corrosion prediction system and medium based on neural network
CN116488167B (en) Attack compensation data-driven voltage security control method, system, device and medium
Zhu et al. Automatic cruise system for water quality monitoring
CN118672312A (en) Pressure control method and system based on pressure transmitter
CN207699239U (en) A kind of Powdered Activated Carbon Automatic Dosage Control of Additives system for water process
CN110442016A (en) Intelligent anti-corrosion power supply device based on fuzzy neural network and control method thereof
CN115456168B (en) Training method of reinforcement learning model, energy consumption determining method and device
CN114672809B (en) An intelligent pipeline cathodic protection control system
CN114970821A (en) Method and system for boiler installation and calibration based on reliability prediction
CN116755965A (en) A low-power monitoring system and method for embedded systems based on reinforcement learning
CN115834406A (en) A Convolutional Neural Network Based Transient Stability Prediction Method for Power Grids
CN115112060A (en) Landslide Deformation Monitoring System and Method Based on Kalman Filter
CN110230062B (en) Corrosion automatic tracking monitoring system based on expert database deviation correction
CN117993132A (en) A positive complex network modeling and non-periodic control method for smart city water supply network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20231222

Address after: No. 1751 Binsheng Road, Binjiang District, Hangzhou City, Zhejiang Province, 310000

Applicant after: Zhejiang Provincial Natural Gas Development Co.,Ltd.

Applicant after: ZHEJIANG ENERGY GROUP CO.,LTD.

Applicant after: ZHEJIANG University

Address before: 310012 room 205, No. 20, Youdian new village, Xihu District, Hangzhou City, Zhejiang Province

Applicant before: ZHEJIANG ZHENENG NATURAL GAS OPERATION CO.,LTD.

Applicant before: ZHEJIANG ENERGY GROUP CO.,LTD.

Applicant before: ZHEJIANG University

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant