Movatterモバイル変換


[0]ホーム

URL:


CN116991098A - A multifunctional human-machine interactive valve control operation method and device - Google Patents

A multifunctional human-machine interactive valve control operation method and device
Download PDF

Info

Publication number
CN116991098A
CN116991098ACN202310817023.0ACN202310817023ACN116991098ACN 116991098 ACN116991098 ACN 116991098ACN 202310817023 ACN202310817023 ACN 202310817023ACN 116991098 ACN116991098 ACN 116991098A
Authority
CN
China
Prior art keywords
signal
error
controller
value
input signal
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.)
Pending
Application number
CN202310817023.0A
Other languages
Chinese (zh)
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 SUPCON RESEARCH CO LTD
Original Assignee
ZHEJIANG SUPCON RESEARCH CO LTD
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 SUPCON RESEARCH CO LTDfiledCriticalZHEJIANG SUPCON RESEARCH CO LTD
Priority to CN202310817023.0ApriorityCriticalpatent/CN116991098A/en
Publication of CN116991098ApublicationCriticalpatent/CN116991098A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明涉及工业控制领域,尤其涉及一种多功能人机交互式阀控运行方法及装置,包括FPGA算法控制器接收输入信号电路调理器的模拟输入信号和上位机中控制软件设置的PWM信号相关参数处理生成PWM信号;脉宽调制驱动器接收PWM信号并转化为输出电流;FPGA算法控制器根据模拟输入信号设定一个初始值,对回检电流采样器采集转化后的输出电压信号生成回检值计算误差值,同时设定一个误差阈值,调整PWM信号相关参数和闭环控制运算使误差值低于误差阈值,以精确实现控制脉宽调制驱动器对比例阀受控器输入电流的调节。本发明解决了工业控制领域电液比例阀控制器输入信号单一,输出信号精度差,故障失效率高等问题,拓展了产品的功能,提高了产品的精度。

The invention relates to the field of industrial control, and in particular to a multifunctional human-machine interactive valve control operation method and device, which includes an FPGA algorithm controller receiving an input signal circuit conditioner and an analog input signal related to a PWM signal set by a control software in a host computer. Parameter processing generates a PWM signal; the pulse width modulation driver receives the PWM signal and converts it into an output current; the FPGA algorithm controller sets an initial value based on the analog input signal, and collects the converted output voltage signal of the backcheck current sampler to generate a checkback value. Calculate the error value, set an error threshold at the same time, adjust the PWM signal related parameters and the closed-loop control operation to make the error value lower than the error threshold, so as to accurately control the pulse width modulation driver to adjust the input current of the proportional valve controller. The invention solves the problems of a single input signal of an electro-hydraulic proportional valve controller in the field of industrial control, poor output signal accuracy, and high failure rate, expands the functions of the product, and improves the accuracy of the product.

Description

Translated fromChinese
一种多功能人机交互式阀控运行方法及装置A multifunctional human-machine interactive valve control operation method and device

技术领域Technical field

本发明涉及工业控制领域,尤其涉及一种多功能人机交互式阀控运行方法及装置。The invention relates to the field of industrial control, and in particular to a multifunctional human-machine interactive valve control operation method and device.

背景技术Background technique

比例阀控制器是电液比例阀的控制和驱动装置,是比例阀的基本电控单元,能够根据比例阀和比例泵的控制需要对控制电信号进行处理、运算和功率放大。随着微电子技术和数学理论的发展,由电液伺服阀、电液比例阀,以及配用的专用电子控制器和相应的液压元件,组成集成电液伺服比例控制装置的相互支撑和发展,已综合形成液压工程技术,它的应用和发展是液压工业又一个新的技术热点和新增点。The proportional valve controller is a control and driving device for electro-hydraulic proportional valves. It is the basic electronic control unit of the proportional valve. It can process, operate and power amplify the control electrical signals according to the control needs of the proportional valve and proportional pump. With the development of microelectronics technology and mathematical theory, the mutual support and development of integrated electro-hydraulic servo proportional control devices are formed by electro-hydraulic servo valves, electro-hydraulic proportional valves, and accompanying special electronic controllers and corresponding hydraulic components. Hydraulic engineering technology has been comprehensively formed, and its application and development are another new technological hotspot and new point in the hydraulic industry.

现有技术对电液比例阀控制器进行了较多尝试。例如:专利文献CN102900880B提供的一种多通道比例阀控制器,扩展了比例阀控制器的通道数目,提高了产品的集成度、通用性、和互换性,然而该电路采用开环控制,无法保证控制器的输出精度。CN112255933B文献提供了一种比例阀控制电路,采用信号产生电路、反馈控制电路、PWM信号产生电路、驱动电路等纯硬件设计实现对比例阀的精准控制,然而该电路没有故障保护机制,可靠性较低,故障失控风险极高。CN104390044B文献提供的基于可编程控制器的电液比例阀控制电路与本方案有一定的共通性,均采用可编程控制器实现对输出的PWM信号的可靠控制,然而使用的控制指令复杂繁琐,指令参数操作不便,且需要使用者具有一定的专业基础。The existing technology has made many attempts on electro-hydraulic proportional valve controllers. For example: Patent document CN102900880B provides a multi-channel proportional valve controller, which expands the number of channels of the proportional valve controller and improves the integration, versatility, and interchangeability of the product. However, this circuit uses open-loop control and cannot Ensure the output accuracy of the controller. The CN112255933B document provides a proportional valve control circuit that uses pure hardware designs such as a signal generation circuit, a feedback control circuit, a PWM signal generation circuit, and a drive circuit to achieve precise control of the proportional valve. However, this circuit has no fault protection mechanism and is less reliable. Low, the risk of failure and loss of control is extremely high. The electro-hydraulic proportional valve control circuit based on a programmable controller provided in the CN104390044B document has certain similarities with this solution. They both use programmable controllers to achieve reliable control of the output PWM signal. However, the control instructions used are complex and cumbersome. Parameter operation is inconvenient and requires users to have a certain professional foundation.

发明内容Contents of the invention

本发明的目的是针对上述技术问题,提出一种多功能人机交互式阀控运行方法及装置,本发明的目的可通过下列技术方案来实现:The purpose of the present invention is to propose a multifunctional human-machine interactive valve control operation method and device in view of the above technical problems. The purpose of the present invention can be achieved through the following technical solutions:

一种多功能人机交互式阀控运行方法,用于FPGA算法控制器通过脉宽调制驱动器产生输出电流调节比例阀受控器的开度信息,并通过回检电流采样器反馈实现闭环控制运算,其进一步包括:A multifunctional human-computer interactive valve control operation method, which is used by the FPGA algorithm controller to generate the opening information of the output current adjustment proportional valve controlled device through the pulse width modulation driver, and realize the closed-loop control operation through the feedback of the back-check current sampler , which further includes:

在启动运行阶段,FPGA算法控制器接收到DIO线路检测诊断器的使能信号ENBALE后,接收输入信号电路调理器的模拟输入信号和上位机中控制软件设置的PWM信号相关参数进行逻辑运算处理生成PWM信号;During the start-up operation phase, after receiving the enable signal ENBALE of the DIO line detection and diagnosis device, the FPGA algorithm controller receives the analog input signal of the input signal circuit conditioner and the PWM signal related parameters set by the control software in the host computer for logic operation processing and generation. PWM signal;

在信号监测阶段,脉宽调制驱动器接收PWM信号并转化为输出电流控制比例阀受控器;回检电流采样器对脉宽调制驱动器的输出电流进行采集并经过电路调理后转换成输出电压信号反馈到FPGA算法控制器;In the signal monitoring stage, the pulse width modulation driver receives the PWM signal and converts it into an output current control proportional valve controller; the backtest current sampler collects the output current of the pulse width modulation driver and converts it into an output voltage signal for feedback after circuit conditioning to FPGA algorithm controller;

在装置优化阶段,FPGA算法控制器根据模拟输入信号设定一个初始值,并且对回检电流采样器采集转化后的输出电压信号进行校准和计算生成回检值,初始值与回检值进行对比并计算误差值,同时设定一个误差阈值,当误差值低于误差阈值时,保持PWM信号不变;当误差值超过误差阈值,调整PWM信号相关参数和闭环控制运算使误差值低于误差阈值,在闭环控制运算中,将误差值作为输入,根据设置的算法运算输出结果调整PWM信号相关参数从而控制PWM信号的值,实现误差值的调整,以精确实现控制脉宽调制驱动器对比例阀受控器输入电流的调节。In the device optimization stage, the FPGA algorithm controller sets an initial value based on the analog input signal, and calibrates and calculates the converted output voltage signal collected by the backtest current sampler to generate a backtest value. The initial value is compared with the backtest value. And calculate the error value, and set an error threshold. When the error value is lower than the error threshold, keep the PWM signal unchanged; when the error value exceeds the error threshold, adjust the PWM signal related parameters and closed-loop control operation to make the error value lower than the error threshold. , in the closed-loop control operation, the error value is used as input, and the relevant parameters of the PWM signal are adjusted according to the set algorithm operation output result to control the value of the PWM signal, and the error value is adjusted to accurately control the proportional valve of the pulse width modulation driver. Adjustment of controller input current.

进一步地,在装置优化阶段,调整PWM信号相关参数和闭环控制运算进一步包括,Further, in the device optimization stage, adjusting PWM signal related parameters and closed-loop control operations further include,

在初始化阶段,设置初始参数Kp,Ki,kd,同时,初始化累积误差和保存上一次误差;预设闭环控制运算的输出结果范围限制;Kp为比例增益,Ki为积分增益,Kd为微分增益;In the initialization stage, set the initial parameters Kp, Ki, kd, and at the same time initialize the cumulative error and save the last error; preset the output range limit of the closed-loop control operation; Kp is the proportional gain, Ki is the integral gain, and Kd is the differential gain;

在控制循环阶段,读取初检值和回检值,计算误差值:误差=回检值-初检值;In the control cycle stage, read the initial inspection value and back-inspection value, and calculate the error value: error = back-inspection value - initial inspection value;

在比例调节单元计算比例项:P=Kp*误差;Calculate the proportional term in the proportional adjustment unit: P=Kp*error;

在积分调节单元计算积分项:累积误差+=误差,I=Ki*累计误差;Calculate the integral term in the integral adjustment unit: cumulative error + = error, I = Ki * cumulative error;

在微分调节单元计算微分项:D=Kd*(误差-上一次误差)Calculate the differential term in the differential adjustment unit: D=Kd*(error-last error)

计算闭环控制运算的输出结果:PID=P+I+D,且PID在输出结果范围限制内,后更新上一次误差。Calculate the output result of the closed-loop control operation: PID = P + I + D, and the PID is within the limits of the output result range, and then update the last error.

进一步地,在启动运行阶段,FPGA算法控制器接收到DIO线路检测诊断器的使能信号ENBALE进一步包括,Further, during the startup operation phase, the FPGA algorithm controller receives the enable signal ENBALE of the DIO line detection and diagnostic device, which further includes:

DIO线路检测诊断器中的DI单元将使能信号ENABLE传输到FPGA算法控制器,控制阀控装置的运行或截止;同时FPGA算法控制器将READY通道监测信号发送到DIO线路检测诊断器中的DO单元经电气隔离后输出,用于判断阀控装置的运行状态。The DI unit in the DIO line detection and diagnosis device transmits the enable signal ENABLE to the FPGA algorithm controller to control the operation or shutdown of the valve control device; at the same time, the FPGA algorithm controller sends the READY channel monitoring signal to the DO in the DIO line detection and diagnosis device. The unit outputs after electrical isolation and is used to judge the operating status of the valve control device.

进一步地,在启动运行阶段,接收输入信号电路调理器的模拟输入信号进一步包括,输入信号电路调理器中的输入单元接收模拟信号发生器的输入信号,经电路调理成电压信号后传输至ADC采集单元;ADC采集单元将电压信号转换为数字量的模拟输入信号传入FPGA算法控制器。Further, during the start-up operation phase, receiving the analog input signal of the input signal circuit conditioner further includes: the input unit in the input signal circuit conditioner receives the input signal of the analog signal generator, and is conditioned into a voltage signal by the circuit and then transmitted to the ADC for collection. unit; the ADC acquisition unit converts the voltage signal into a digital analog input signal and transmits it to the FPGA algorithm controller.

进一步地,在装置优化阶段,FPGA算法控制器根据模拟输入信号设定一个初始值进一步包括,初始值与模拟输入信号建立比例关系,完成对初始值的设定算法。Furthermore, in the device optimization stage, the FPGA algorithm controller sets an initial value according to the analog input signal, which further includes establishing a proportional relationship between the initial value and the analog input signal to complete the initial value setting algorithm.

进一步地,PWM信号相关参数进一步包括包括斜坡、最小/最大、抖动(频率和幅值)、PWM频率。Further, the PWM signal related parameters further include slope, minimum/maximum, jitter (frequency and amplitude), and PWM frequency.

本发明还提供了一种多功能人机交互式阀控装置,包括,The invention also provides a multifunctional human-machine interactive valve control device, including:

FPGA算法控制器与DIO线路监测诊断器电性连接,接收DIO线路监测诊断器中DI单元的使能信号ENBALE控制阀控装置状态的运行或截止;并且将READY通道监测信号发送到DIO线路监测诊断器中的DO单元判断阀控装置的运行状态;The FPGA algorithm controller is electrically connected to the DIO line monitoring and diagnosis device, and receives the enable signal ENBALE of the DI unit in the DIO line monitoring and diagnosis device to control the operation or shutdown of the valve control device status; and sends the READY channel monitoring signal to the DIO line monitoring and diagnosis device. The DO unit in the device determines the operating status of the valve control device;

输入信号电路调理器分别与模拟信号发生器和FPGA算法控制器电性连接,输入信号电路调理器中输入单元将接收模拟信号发生器的输入信号进行电路调理成电压信号,电压信号经过ADC采集单元生成数字量的模拟输入信号发送给FPGA算法控制器;The input signal circuit conditioner is electrically connected to the analog signal generator and the FPGA algorithm controller respectively. The input unit in the input signal circuit conditioner will receive the input signal from the analog signal generator and perform circuit conditioning into a voltage signal. The voltage signal passes through the ADC acquisition unit. Generate digital analog input signals and send them to the FPGA algorithm controller;

FPGA算法控制器与上位机通过485/422通讯单元进行数据交互,FPGA算法控制器在阀控装置运行后,FPGA算法控制器将上位机中控制软件设置PWM信号相关参数与模拟输入信号通过逻辑算法生成PWM信号,并传输到电性连接的脉宽调制驱动器,脉宽调制驱动器接收PWM信号并转化为输出电流控制着与脉宽调制驱动器电性连接的比例阀受控器。The FPGA algorithm controller and the host computer interact with each other through the 485/422 communication unit. After the FPGA algorithm controller runs the valve control device, the FPGA algorithm controller sets the PWM signal related parameters and analog input signals set by the control software in the host computer through the logic algorithm. A PWM signal is generated and transmitted to an electrically connected pulse width modulation driver. The pulse width modulation driver receives the PWM signal and converts it into an output current to control a proportional valve controller electrically connected to the pulse width modulation driver.

进一步地,输入信号电路调理器至少包括两路输入单元和两路ADC采集单元,输入单元接收模拟信号发生器的输入信号,输入信号为±10V/4~20mA模拟信号。Further, the input signal circuit conditioner at least includes two input units and two ADC acquisition units. The input unit receives the input signal from the analog signal generator, and the input signal is a ±10V/4~20mA analog signal.

进一步地,还包括回检电流采样器,回检电流采样器中的霍尔电流传感器对脉宽调制驱动器的输出电流进行采样和监测,并将采集到的输出电流经电路调理后转换成相应的输出电压信号后传输到FPGA算法控制器,FPGA算法控制器根据输出电压信号进行校准和调整生成回检值。Further, it also includes a checkback current sampler. The Hall current sensor in the checkback current sampler samples and monitors the output current of the pulse width modulation driver, and converts the collected output current into the corresponding output current after being conditioned by the circuit. The output voltage signal is then transmitted to the FPGA algorithm controller. The FPGA algorithm controller calibrates and adjusts the output voltage signal to generate a backtest value.

进一步地,控制软件还包括对FPGA算法控制器闭环控制运算和监测,以精确实现控制脉宽调制驱动器对比例阀受控器输入电流的调节。Furthermore, the control software also includes closed-loop control calculation and monitoring of the FPGA algorithm controller to accurately control the pulse width modulation driver to adjust the input current of the proportional valve controller.

与现有技术相比,本发明存在以下至少一种技术效果:Compared with the prior art, the present invention has at least one of the following technical effects:

本发明提供了一种多功能人机交互式阀控运行方法及装置,解决了工业控制领域电液比例阀控制器输入信号单一,输出信号精度差,电路可靠性低,故障失效率高,通道监测能力弱等问题,拓展了产品的功能,提高了产品的精度,增强了产品的可靠性,具体技术效果如下:The invention provides a multifunctional human-machine interactive valve control operation method and device, which solves the problems of single input signal of electro-hydraulic proportional valve controller in the field of industrial control, poor output signal accuracy, low circuit reliability, high fault failure rate, and channel problems. Weak monitoring capabilities and other problems have expanded the functions of the product, improved the accuracy of the product, and enhanced the reliability of the product. The specific technical effects are as follows:

(1)本发明实现FPGA算法控制器的输出电流的闭环控制,提供了包含两个输入单元,用于接收不同类型的输入信号并进行处理,同时结合了模拟信号和使能信号的综合应用,通过人机交互模式,在上位机控制软件界面进行参数设置,操作人员可以轻松调整斜坡、最小/最大值、抖动频率和幅值以及PWM频率等参数,实现个性化的控制需求,同时通过采用闭环控制运算,实现了对输出电流的精准控制,确保输出电流的稳定性和精确性,该装置电路不受供电电压和电磁线圈阻抗等因素的干扰,提高了该装置的灵活性和适应性。(1) The present invention implements closed-loop control of the output current of the FPGA algorithm controller, provides two input units for receiving and processing different types of input signals, and combines the comprehensive application of analog signals and enable signals. Through the human-computer interaction mode and parameter setting on the host computer control software interface, the operator can easily adjust parameters such as slope, minimum/maximum value, jitter frequency and amplitude, and PWM frequency to achieve personalized control needs. At the same time, through the use of closed-loop The control operation realizes precise control of the output current and ensures the stability and accuracy of the output current. The device circuit is not interfered by factors such as supply voltage and electromagnetic coil impedance, which improves the flexibility and adaptability of the device.

(2)本发明还具备故障自诊断功能,能够及时监测和报警输入断线、过载、输出断线、过流等故障现象。在发生故障时,装置会发出警报并禁止输出,保护装置的安全运行,提高了装置的安全性和可靠性,减少了故障造成的损失,同时DO单元采用电气隔离输出技术,增强了装置的抗干扰能力和安全性。(2) The present invention also has a fault self-diagnosis function, which can promptly monitor and alarm fault phenomena such as input disconnection, overload, output disconnection, and overcurrent. When a fault occurs, the device will sound an alarm and prohibit output to protect the safe operation of the device, improve the safety and reliability of the device, and reduce losses caused by faults. At the same time, the DO unit uses electrical isolation output technology to enhance the device's resistance. jamming capability and safety.

附图说明Description of the drawings

图1为本发明一种多功能人机交互式阀控装置的示意图;Figure 1 is a schematic diagram of a multifunctional human-machine interactive valve control device according to the present invention;

图2为本发明一种多功能人机交互式阀控装置的工作原理图;Figure 2 is a working principle diagram of a multifunctional human-machine interactive valve control device according to the present invention;

图3为本发明一种多功能人机交互式阀控装置的信号转换示意图;Figure 3 is a schematic diagram of signal conversion of a multifunctional human-machine interactive valve control device according to the present invention;

图4为本发明一种多功能人机交互式阀控装置参数闭环控制示意图。Figure 4 is a schematic diagram of parameter closed-loop control of a multifunctional human-machine interactive valve control device according to the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及具体实施方式,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施方式仅用以解释本发明,并不用于限定本发明。In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific implementation modes. It should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to limit the present invention.

实施例1Example 1

一种多功能人机交互式阀控运行方法,用于FPGA算法控制器通过脉宽调制驱动器产生输出电流调节比例阀受控器的开度信息,并通过回检电流采样器反馈实现闭环控制运算,过程如下:A multifunctional human-computer interactive valve control operation method, which is used by the FPGA algorithm controller to generate the opening information of the output current adjustment proportional valve controlled device through the pulse width modulation driver, and realize the closed-loop control operation through the feedback of the back-check current sampler , the process is as follows:

在启动运行阶段,FPGA算法控制器接收到DIO线路检测诊断器中的DI单元使能信号ENABLE来控制阀控装置的运行或截止;同时FPGA算法控制器将READY通道监测信号发送到DIO线路检测诊断器中的DO单元经电气隔离后输出,用于判断阀控装置的运行状态,进行故障自诊断机制,当FPGA算法控制器检测到阀控装置的通道运行正常,DO单元内部的光电耦合器导通,READY通道监测信号电气隔离后输出READY_OUT信号为高电平;当FPGA算法控制器检测到通道未使能或错误时,DO单元内部的光电耦合器截止不导通,READY通道监测信号电气隔离后输出READY_OUT信号为低电平;FPGA算法控制器接收输入信号电路调理器的模拟输入信号和上位机中控制软件设置的PWM信号相关参数进行逻辑运算处理生成PWM信号,PWM信号相关参数包括包括斜坡、最小/最大、抖动(频率和幅值)、PWM频率等,用来影响PWM输出型号的平滑度,范围和频率等特征。During the start-up operation phase, the FPGA algorithm controller receives the DI unit enable signal ENABLE in the DIO line detection and diagnosis device to control the operation or shutdown of the valve control device; at the same time, the FPGA algorithm controller sends the READY channel monitoring signal to the DIO line detection and diagnosis device. The DO unit in the device is electrically isolated and outputs to determine the operating status of the valve control device and perform a fault self-diagnosis mechanism. When the FPGA algorithm controller detects that the channel of the valve control device is operating normally, the photoelectric coupler inside the DO unit conducts After the READY channel monitoring signal is electrically isolated, the READY_OUT signal is high level; when the FPGA algorithm controller detects that the channel is not enabled or has an error, the photocoupler inside the DO unit is cut off and does not conduct, and the READY channel monitoring signal is electrically isolated. The output READY_OUT signal is low level; the FPGA algorithm controller receives the analog input signal of the input signal circuit conditioner and the PWM signal related parameters set by the control software in the host computer and performs logical operation processing to generate the PWM signal. The PWM signal related parameters include slopes. , minimum/maximum, jitter (frequency and amplitude), PWM frequency, etc., used to affect the smoothness, range, frequency and other characteristics of the PWM output model.

在信号监测阶段,脉宽调制驱动器接收PWM信号并转化为输出电流控制比例阀受控器;回检电流采样器对脉宽调制驱动器的输出电流进行采集并经过电路调理后转换成输出电压信号反馈到FPGA算法控制器;In the signal monitoring stage, the pulse width modulation driver receives the PWM signal and converts it into an output current control proportional valve controller; the backtest current sampler collects the output current of the pulse width modulation driver and converts it into an output voltage signal for feedback after circuit conditioning to FPGA algorithm controller;

在装置优化阶段,FPGA算法控制器根据模拟输入信号设定一个初始值,该初始值可以表示模拟输入信号的初始参考值,初始值与模拟输入电流信号建立比例关系确保装置在启动的时候具有适当的初始状态和工作范围;并且FPGA算法控制器对回检电流采样器采集转化后的输出电压信号进行校准和计算生成回检值,FPGA算法控制器实时将初始值与回检值进行对比并计算误差值,同时设定一个误差阈值,当误差值低于误差阈值时,保持PWM信号不变;当误差值超过误差阈值,调整PWM信号相关参数和闭环控制运算使误差值低于误差阈值,PWM信号的数值控制着比例阀受控器的输入电流,进而控制比例阀的开度信息,判断装置的稳定性和精确度,根据分析结果,在闭环控制运算中,将误差值作为输入,根据设置的算法运算输出结果调整PWM信号相关参数从而控制PWM信号的值,实现误差值的调整,以精确实现控制脉宽调制驱动器对比例阀受控器输入电流的调节。In the device optimization stage, the FPGA algorithm controller sets an initial value based on the analog input signal. This initial value can represent the initial reference value of the analog input signal. The initial value establishes a proportional relationship with the analog input current signal to ensure that the device has appropriate performance when starting up. The initial state and working range; and the FPGA algorithm controller calibrates and calculates the output voltage signal collected and converted by the back-check current sampler to generate a back-check value. The FPGA algorithm controller compares the initial value with the back-check value in real time and calculates Error value, and set an error threshold at the same time. When the error value is lower than the error threshold, keep the PWM signal unchanged; when the error value exceeds the error threshold, adjust the PWM signal related parameters and closed-loop control operation to make the error value lower than the error threshold, PWM The value of the signal controls the input current of the proportional valve controller, and then controls the opening information of the proportional valve to judge the stability and accuracy of the device. According to the analysis results, in the closed-loop control operation, the error value is used as input, and according to the settings The algorithm operation output result adjusts the relevant parameters of the PWM signal to control the value of the PWM signal and realizes the adjustment of the error value to accurately control the pulse width modulation driver to adjust the input current of the proportional valve controller.

进一步地,在装置优化阶段,调整PWM信号相关参数和闭环控制运算包括,该闭环控制运算由比例调节单元、积分调节单元和微分调节单元组成;Further, in the device optimization stage, adjusting PWM signal related parameters and closed-loop control operations include, the closed-loop control operation consists of a proportional adjustment unit, an integral adjustment unit and a differential adjustment unit;

比例调节单元根据当前的控制误差与预先设置的比例增益之间的乘积产生输出;用于根据当前误差的大小对输出进行直接调整,以实现快速响应。积分调节单元根据控制误差积累量与积分增益之间的乘积产生输出,用于消除存在的稳态误差,使得可以更好的跟踪期望值。微分调节单元根据控制误差的变化率与微分增益之间的乘积产生输出,用于预测未来的变化趋势,通过抑制过度调节或抑制过渡过程中的震荡,提高稳定性动态响应。这些单元的输出值相加得到闭环控制运算的输出结果。该闭环控制运算的输出结果综合考虑了当前误差、误差的积累量和误差的变化率,用于控制输出量,使得该闭环控制运算的输出结果的PWM信号接近期望的预设值,进而改变输出电流的大小。请参阅图4,图4为本发明一种多功能人机交互式阀控装置参数闭环控制示意图。The proportional adjustment unit generates an output based on the product of the current control error and the preset proportional gain; it is used to directly adjust the output according to the size of the current error to achieve fast response. The integral adjustment unit generates an output based on the product of the control error accumulation and the integral gain, which is used to eliminate the existing steady-state error so that the expected value can be better tracked. The differential adjustment unit generates an output based on the product between the change rate of the control error and the differential gain, which is used to predict future change trends and improve the stability of the dynamic response by suppressing over-adjustment or suppressing oscillations during the transition process. The output values of these units are added to obtain the output result of the closed-loop control operation. The output result of the closed-loop control operation comprehensively considers the current error, error accumulation amount and error change rate, and is used to control the output amount, so that the PWM signal of the output result of the closed-loop control operation is close to the desired preset value, thereby changing the output The size of the current. Please refer to Figure 4. Figure 4 is a schematic diagram of parameter closed-loop control of a multifunctional human-machine interactive valve control device according to the present invention.

在初始化阶段,设置初始参数Kp,Ki,kd,用来调节响应特性;同时,初始化累积误差和保存上一次误差;预设闭环控制运算的输出结果范围限制;Kp为比例增益,Ki为积分增益,Kd为微分增益;In the initialization stage, set the initial parameters Kp, Ki, kd to adjust the response characteristics; at the same time, initialize the cumulative error and save the last error; preset the output range limit of the closed-loop control operation; Kp is the proportional gain, Ki is the integral gain , Kd is the differential gain;

在控制循环阶段,读取初检值和回检值,计算误差值:误差=回检值-初检值;In the control cycle stage, read the initial inspection value and back-inspection value, and calculate the error value: error = back-inspection value - initial inspection value;

在比例调节单元计算比例项:P=Kp*误差;Calculate the proportional term in the proportional adjustment unit: P=Kp*error;

在积分调节单元计算积分项:累积误差+=误差,I=Ki*累计误差;Calculate the integral term in the integral adjustment unit: cumulative error + = error, I = Ki * cumulative error;

在微分调节单元计算微分项:D=Kd*(误差-上一次误差)Calculate the differential term in the differential adjustment unit: D=Kd*(error-last error)

计算闭环控制运算的输出结果:PID=P+I+D,且PID在输出结果范围限制内,后更新上一次误差。Calculate the output result of the closed-loop control operation: PID = P + I + D, and the PID is within the limits of the output result range, and then update the last error.

进一步地,在启动运行阶段,接收输入信号电路调理器的模拟输入信号进一步包括,输入信号电路调理器,包括两路输入单元,两路ADC采集单元;Further, during the start-up operation phase, the analog input signal receiving from the input signal circuit conditioner further includes: the input signal circuit conditioner includes two input units and two ADC acquisition units;

输入信号电路调理器中的输入单元接收模拟信号发生器的输入信号,经电路调理成电压信号后传输至ADC采集单元;ADC采集单元将电压信号转换为数字量的模拟输入信号传入FPGA算法控制器。The input unit in the input signal circuit conditioner receives the input signal from the analog signal generator, modulates it into a voltage signal through the circuit, and then transmits it to the ADC acquisition unit; the ADC acquisition unit converts the voltage signal into a digital analog input signal and transmits it to the FPGA algorithm for control device.

进一步地,在装置优化阶段,FPGA算法控制器根据模拟输入信号设定一个初始值进一步包括,初始值与模拟输入信号建立比例关系,完成对初始值的设定算法。Furthermore, in the device optimization stage, the FPGA algorithm controller sets an initial value according to the analog input signal, which further includes establishing a proportional relationship between the initial value and the analog input signal to complete the initial value setting algorithm.

实施例2Example 2

本发明还提供了一种多功能人机交互式阀控装置,用于解决工业控制领域电液比例阀控制器输入信号单一,输出信号精度差,电路可靠性低,故障失效率高,通道监测能力弱等问题,包括,The invention also provides a multifunctional human-machine interactive valve control device, which is used to solve the problems of single input signal of electro-hydraulic proportional valve controller in the field of industrial control, poor output signal accuracy, low circuit reliability, high failure rate and channel monitoring. Problems such as weak ability, including,

请参阅图1,3,图1为本发明一种多功能人机交互式阀控装置的示意图,图3为本发明一种多功能人机交互式阀控装置的信号转换示意图。Please refer to Figures 1 and 3. Figure 1 is a schematic diagram of a multifunctional human-machine interactive valve control device according to the present invention, and Figure 3 is a schematic diagram of signal conversion of a multifunctional human-machine interactive valve control device according to the present invention.

FPGA算法控制器与DIO线路监测诊断器电性连接,接收DIO线路监测诊断器中DI单元的使能信号ENBALE控制阀控装置状态的运行或截止;并且将READY通道监测信号发送到DIO线路监测诊断器中的DO单元判断阀控装置的运行状态;The FPGA algorithm controller is electrically connected to the DIO line monitoring and diagnosis device, and receives the enable signal ENBALE of the DI unit in the DIO line monitoring and diagnosis device to control the operation or shutdown of the valve control device status; and sends the READY channel monitoring signal to the DIO line monitoring and diagnosis device. The DO unit in the device determines the operating status of the valve control device;

输入信号电路调理器分别与模拟信号发生器和FPGA算法控制器电性连接,输入信号电路调理器中输入单元将接收模拟信号发生器的输入信号进行电路调理成电压信号,电压信号经过ADC采集单元生成数字量的模拟输入信号发送给FPGA算法控制器;The input signal circuit conditioner is electrically connected to the analog signal generator and the FPGA algorithm controller respectively. The input unit in the input signal circuit conditioner will receive the input signal from the analog signal generator and perform circuit conditioning into a voltage signal. The voltage signal passes through the ADC acquisition unit. Generate digital analog input signals and send them to the FPGA algorithm controller;

FPGA算法控制器与上位机通过485/422通讯单元进行数据交互,FPGA算法控制器在阀控装置运行后,FPGA算法控制器将上位机中控制软件设置PWM信号相关参数与模拟输入信号通过逻辑算法生成PWM信号,并传输到电性连接的脉宽调制驱动器,脉宽调制驱动器接收PWM信号并转化为输出电流控制着与脉宽调制驱动器电性连接的比例阀受控器。The FPGA algorithm controller and the host computer interact with each other through the 485/422 communication unit. After the FPGA algorithm controller runs the valve control device, the FPGA algorithm controller sets the PWM signal related parameters and analog input signals set by the control software in the host computer through the logic algorithm. A PWM signal is generated and transmitted to an electrically connected pulse width modulation driver. The pulse width modulation driver receives the PWM signal and converts it into an output current to control a proportional valve controller electrically connected to the pulse width modulation driver.

进一步地,输入信号电路调理器至少包括两路输入单元和两路ADC采集单元,输入单元接收模拟信号发生器的输入信号,输入信号为±10V/4~20mA模拟信号。Further, the input signal circuit conditioner at least includes two input units and two ADC acquisition units. The input unit receives the input signal from the analog signal generator, and the input signal is a ±10V/4~20mA analog signal.

进一步地,还包括回检电流采样器,回检电流采样器中的霍尔电流传感器对脉宽调制驱动器的输出电流进行采样和监测,并将采集到的输出电流经电路调理后转换成相应的输出电压信号后传输到FPGA算法控制器,FPGA算法控制器根据输出电压信号进行校准和调整生成回检值。Further, it also includes a checkback current sampler. The Hall current sensor in the checkback current sampler samples and monitors the output current of the pulse width modulation driver, and converts the collected output current into the corresponding output current after being conditioned by the circuit. The output voltage signal is then transmitted to the FPGA algorithm controller. The FPGA algorithm controller calibrates and adjusts the output voltage signal to generate a backtest value.

进一步地,控制软件还包括对FPGA算法控制器闭环控制运算和监测,以精确实现控制脉宽调制驱动器对比例阀受控器输入电流的调节。Furthermore, the control software also includes closed-loop control calculation and monitoring of the FPGA algorithm controller to accurately control the pulse width modulation driver to adjust the input current of the proportional valve controller.

FPGA算法控制器,作为多功能人机交互式阀控装置的控制核心,根据模拟输入信号设定一个模拟输入信号的相应初始值,并且对回检电流采样器采集转化后的输出电压信号进行校准和计算生成回检值,初始值与回检值进行对比并计算误差值后,将误差值作为输入,调整PWM信号相关参数进行闭环控制运算从而控制PWM信号的数值,调整误差值,以实现精确控制驱动模块对比例阀受控器输入电流的调节。The FPGA algorithm controller, as the control core of the multi-functional human-machine interactive valve control device, sets a corresponding initial value of the analog input signal according to the analog input signal, and calibrates the output voltage signal collected and converted by the back-check current sampler. and calculation to generate a checkback value. After comparing the initial value with the checkback value and calculating the error value, the error value is used as input to adjust the relevant parameters of the PWM signal for closed-loop control operation to control the value of the PWM signal and adjust the error value to achieve accuracy. The control drive module regulates the input current of the proportional valve controller.

请参阅图2,图2为本发明一种多功能人机交互式阀控装置的工作原理图。Please refer to Figure 2, which is a working principle diagram of a multifunctional human-machine interactive valve control device according to the present invention.

每个部件的具体介绍如下:The detailed introduction of each component is as follows:

(1)DIO线路监测诊断器,包括DI单元和DO单元;DI单元和DO单元分别与FPGA算法控制器连接,DI单元将使能信号ENABLE传输到FPGA算法控制器,控制阀控装置的运行还是截止,同时,FPGA算法控制器将READY通道监测信号发送到DO单元经电气隔离后输出。用于判断所述阀控装置的运行状态,完成多功能人机交互式阀控装置的故障自诊断机制。(1) DIO line monitoring and diagnostic device, including DI unit and DO unit; DI unit and DO unit are connected to the FPGA algorithm controller respectively. The DI unit transmits the enable signal ENABLE to the FPGA algorithm controller to control the operation of the valve control device. cutoff, at the same time, the FPGA algorithm controller sends the READY channel monitoring signal to the DO unit and outputs it after electrical isolation. It is used to determine the operating status of the valve control device and complete the fault self-diagnosis mechanism of the multifunctional human-machine interactive valve control device.

在DI单元中,In the DI unit,

当使能信号ENABLE为高电平时,启动或者使能装置,DI单元中的光电耦合器导通,该多功能人机交互式阀控装置处于工作状态,可以执行相应的操作和功能,DI单元输入到FPGA算法控制器的DI_IN信号为高电平;When the enable signal ENABLE is high level, the device is started or enabled, and the photoelectric coupler in the DI unit is turned on. The multifunctional human-computer interactive valve control device is in working status and can perform corresponding operations and functions. The DI unit The DI_IN signal input to the FPGA algorithm controller is high level;

当使能信号ENABLE为低电平时,禁用或者停用装置,DI单元中的光电耦合器截止不导通,该多功能人机交互式阀控装置处于非工作状态,停止执行相应的操作和功能,DI单元输入到FPGA算法控制器的DI_IN信号接地为低电平,用于暂时关闭装置或进行维护和调试。When the enable signal ENABLE is low level, the device is disabled or deactivated. The photoelectric coupler in the DI unit is cut off and does not conduct. The multifunctional human-machine interactive valve control device is in a non-working state and stops performing corresponding operations and functions. , the DI_IN signal input from the DI unit to the FPGA algorithm controller is grounded at a low level, which is used to temporarily shut down the device or perform maintenance and debugging.

操作人员通过控制DI单元中ENABLE信号的电平来控制装置的启动和禁用状态,灵活的控制装置的功能和操作,满足从不同的应用场景扩展功能的需求。The operator controls the startup and disable status of the device by controlling the level of the ENABLE signal in the DI unit, and flexibly controls the function and operation of the device to meet the needs of expanding functions from different application scenarios.

在DO单元中,READY通道监测信号用于判断多功能人机交互式阀控装置的通道运行状态;In the DO unit, the READY channel monitoring signal is used to determine the channel operating status of the multi-functional human-machine interactive valve control device;

当FPGA算法控制器检测到通道运行状态良好,DO单元内部的光电耦合器导通,READY通道监测信号电气隔离后输出READY_OUT信号为高电平;When the FPGA algorithm controller detects that the channel is in good operating status, the photocoupler inside the DO unit is turned on, and the READY channel monitoring signal is electrically isolated and the READY_OUT signal is output to a high level;

当FPGA算法控制器检测到通道未使能或错误时,DO单元内部的光电耦合器截止不导通,READY通道监测信号电气隔离后输出READY_OUT信号为低电平。When the FPGA algorithm controller detects that the channel is not enabled or has an error, the photocoupler inside the DO unit is turned off and does not conduct, and the READY channel monitoring signal is electrically isolated and the READY_OUT signal is output as low level.

(2)脉宽调制驱动器,至少包括两路±10V/4~20mA输入单元和两路ADC采集单元;(2) Pulse width modulation driver, including at least two ±10V/4~20mA input units and two ADC acquisition units;

以一路±10V/4~20mA输入单元,ADC采集单元为例,±10V/4~20mA输入单元接收模拟信号发生器(PLC或者其他上位机)的模拟输入信号(包括4~20mA电流信号或±10V的电压信号),并将模拟输入信号经电路调理后转换成相应的电压信号即当4-20mA电流信号输入后,经电路调理转换成相应的电压信号进入ADC采集单元或±10V电压信号输入后,经电路调理后转换成相应的电压信号进入ADC采集单元;ADC采集单元与FPGA算法控制器连接,用于将经电路调理后的电压信号转换为数字信号进入FPGA算法控制器。FPGA算法控制器设定一个初始值,并与模拟输入信号建立比例关系;其中,FPGA算法控制器中的初始值与模拟输入信号建立比例关系,完成对初始值的设定算法。Taking a ±10V/4~20mA input unit and an ADC acquisition unit as an example, the ±10V/4~20mA input unit receives the analog input signal (including 4~20mA current signal or ± 10V voltage signal), and convert the analog input signal into the corresponding voltage signal after circuit conditioning. That is, when the 4-20mA current signal is input, it is converted into the corresponding voltage signal through circuit conditioning and enters the ADC acquisition unit or ±10V voltage signal input. Finally, it is converted into a corresponding voltage signal after circuit conditioning and enters the ADC acquisition unit; the ADC acquisition unit is connected to the FPGA algorithm controller and is used to convert the voltage signal after circuit conditioning into a digital signal and enters the FPGA algorithm controller. The FPGA algorithm controller sets an initial value and establishes a proportional relationship with the analog input signal; among them, the initial value in the FPGA algorithm controller establishes a proportional relationship with the analog input signal to complete the initial value setting algorithm.

(3)上位机中的控制软件;FPGA算法控制器通过485/422通讯接口单元与上位机控制软件进行数据交互;上位机控制软件对FPGA算法控制器对PWM相关参数进行便捷设置,便捷设置的参数包括斜坡、最小/最大、抖动(频率和幅值)、PWM频率等。(3) The control software in the host computer; the FPGA algorithm controller interacts with the host computer control software through the 485/422 communication interface unit; the host computer control software conveniently sets the PWM related parameters of the FPGA algorithm controller. Parameters include ramp, min/max, jitter (frequency and amplitude), PWM frequency, etc.

对于便捷设置的参数含义如下:The meanings of the parameters for convenient settings are as follows:

斜坡:斜坡是指PWM信号在切换状态(高电平和低电平)之间的过度时间,斜坡可以用来控制PWM信号的上升和下降速率,影响PWM信号的平滑度和响应时间。Slope: The slope refers to the transition time between the switching state (high level and low level) of the PWM signal. The slope can be used to control the rise and fall rate of the PWM signal, affecting the smoothness and response time of the PWM signal.

最小/最大:最小和最大值是指PWM信号的最小和最大占空比(占空比是指PWM信号高电平的持续时间与一个周期的比例),最小值用于设定PWM信号的最小占空比,当PWM信号的占空比低于最小值设定时,PWM信号会保持在最小占空比的持续时间内,然后转为低电平。最小占空比的设定用于确保PWM信号的输出不会过低。而最大空占比用于用于设定PWM信号的最大占空比,当PWM信号的占空比高于最大值设定时,输出信号会保持在最大空占比的持续时间内,然后转为高电平。最大空占比的设定用于确保PWM信号的输出不会过高。通过设定最小/最大空占比的设定值,控制PWM信号的幅值在指定范围内,来满足不同的应用要求。Min/Max: The minimum and maximum values refer to the minimum and maximum duty cycles of the PWM signal (duty cycle refers to the ratio of the high level duration of the PWM signal to one cycle). The minimum value is used to set the minimum value of the PWM signal. Duty cycle, when the duty cycle of the PWM signal is lower than the minimum value setting, the PWM signal will remain for the duration of the minimum duty cycle and then turn to low level. The setting of the minimum duty cycle is used to ensure that the output of the PWM signal will not be too low. The maximum duty cycle is used to set the maximum duty cycle of the PWM signal. When the duty cycle of the PWM signal is higher than the maximum value setting, the output signal will remain within the duration of the maximum duty cycle, and then switch to is high level. The setting of the maximum duty cycle is used to ensure that the output of the PWM signal will not be too high. By setting the minimum/maximum duty cycle settings, the amplitude of the PWM signal is controlled within a specified range to meet different application requirements.

抖动(频率和幅值):抖动是指PWM信号在周期内的不稳定性或波动。抖动可以由多种因素造成的,如时钟不稳定性,噪声干扰等。抖动的频率是指PWM信号在周期内的变化频率,而抖动的幅值是指PWM信号在周期内的变化幅度。通常情况下,抖动越少,PWM信号的稳定性越高。Jitter (frequency and amplitude): Jitter refers to the instability or fluctuation of the PWM signal within the cycle. Jitter can be caused by a variety of factors, such as clock instability, noise interference, etc. The frequency of jitter refers to the frequency of change of the PWM signal within the cycle, while the amplitude of the jitter refers to the amplitude of change of the PWM signal within the cycle. Generally, the less jitter, the higher the stability of the PWM signal.

PWM频率:PWM频率是指PWM信号的重复周期,即PWM信号从一个周期的起点到下一周期的起点所经历的时间。PWM频率决定了PWM信号的周期性和切换速度,较高的PWM频率可以提供更精细的输出控制,结合FPGA算法控制器更高的计算和处理能力可以使输出电流更加精准。PWM frequency: PWM frequency refers to the repetition period of the PWM signal, that is, the time it takes for the PWM signal to go from the starting point of one cycle to the starting point of the next cycle. The PWM frequency determines the periodicity and switching speed of the PWM signal. A higher PWM frequency can provide more precise output control. Combined with the higher computing and processing capabilities of the FPGA algorithm controller, the output current can be more accurate.

(4)脉宽调制驱动器,与PFGA主控模块连接,将PWM信号转换为输出电流信号,用来驱动和调节比例阀受控器的工作,本发明不限制脉宽调制驱动器数量。(4) Pulse width modulation driver, connected to the PFGA main control module, converts the PWM signal into an output current signal, which is used to drive and adjust the work of the proportional valve controller. The invention does not limit the number of pulse width modulation drivers.

(5)比例阀受控器,根据脉宽调制驱动器中的输出电流信号来调节比例阀,当输出电流信号增大时,比例阀的开度也会增加,反之,当输出电流信号减少时,比例阀的开度也会减少,本发明不限制比例阀受控器数量。(5) The proportional valve controller adjusts the proportional valve according to the output current signal in the pulse width modulation driver. When the output current signal increases, the opening of the proportional valve will also increase. On the contrary, when the output current signal decreases, The opening of the proportional valve will also be reduced, and the present invention does not limit the number of controllers of the proportional valve.

(6)回检电流采样器,回检电流采样器中的霍尔电流传感器对输出电流信号进行采样和监测,并将采集到的输出电流信号经电路调理后转换成输出电压信号传输到FPGA算法控制器,为FPGA算法控制器的闭环控制运算提供反馈数据。(6) Checkback current sampler. The Hall current sensor in the checkback current sampler samples and monitors the output current signal, and converts the collected output current signal into an output voltage signal after circuit conditioning and transmits it to the FPGA algorithm. The controller provides feedback data for the closed-loop control operation of the FPGA algorithm controller.

(7)FPGA算法控制器,在FPGA算法控制器的闭环控制运算中,FPGA算法控制器接收回检电流采样器的输出电压信号并更新回检值,计算误差值后与设定的误差阈值进行比较,根据PWM信号相关的参数和控制算法来调节PWM信号,从而实现对PWM信号的精准控制,调整误差值,优化FPGA算法控制器的运算处理,具体操作如下:(7) FPGA algorithm controller. In the closed-loop control operation of the FPGA algorithm controller, the FPGA algorithm controller receives the output voltage signal of the backtest current sampler and updates the backtest value. After calculating the error value, it is compared with the set error threshold. Compare and adjust the PWM signal according to the parameters and control algorithms related to the PWM signal to achieve precise control of the PWM signal, adjust the error value, and optimize the calculation processing of the FPGA algorithm controller. The specific operations are as follows:

当FPGA主控模块计算出回检电流采样器提供的输出电压信号的回检值后,计算与初检值的误差,When the FPGA main control module calculates the checkback value of the output voltage signal provided by the checkback current sampler, it calculates the error from the initial check value,

当误差值大于误差阈值时,说明实际值偏离了初检值,装置输出电流的控制效果不够准确。为了纠正这种偏差,可以通过调整所述PWM信号的大小来调整输出电流,使实际值逐渐接近初检值。当回检值小于初检值时,增大PWM信号,增大比例阀受控器的输入电流,进而增加比例阀的开度。当回检值大于初检值时,减小PWM信号,减小比例阀受控器的输入电流,进而降低比例阀的开度。When the error value is greater than the error threshold, it means that the actual value deviates from the initial detection value, and the control effect of the device's output current is not accurate enough. In order to correct this deviation, the output current can be adjusted by adjusting the size of the PWM signal so that the actual value gradually approaches the initial detection value. When the return check value is less than the initial check value, the PWM signal is increased, the input current of the proportional valve controller is increased, and the opening of the proportional valve is increased. When the return check value is greater than the initial check value, the PWM signal is reduced, the input current of the proportional valve controller is reduced, and the opening of the proportional valve is reduced.

反之,当误差值小于误差阈值时,说明FPGA算法控制器的输出电流控制效果已经接近初检值,可以不用调节PWM输入信号,但其实仍有一定的误差存在,为了进一步提高该装置的控制精度,可以通过微调所述PWM信号的大小来微调输出电流,使实际值更接近初检值。On the contrary, when the error value is less than the error threshold, it means that the output current control effect of the FPGA algorithm controller is close to the initial detection value. There is no need to adjust the PWM input signal, but in fact there is still a certain error. In order to further improve the control accuracy of the device , the output current can be fine-tuned by fine-tuning the size of the PWM signal, so that the actual value is closer to the initial detection value.

操作人员进行误差值的判断后,在上位机控制软件进行PWM信号相关的参数调节,调节好的参数经过闭环控制运算,通过不断的迭代计算,闭环调控,产生符合设定要求的PWM信号,进而实现对执行模块中输出电流的精确控制和调节,输出稳定、精准的输出电流,提高装置的输出精度和动态性能。After the operator determines the error value, the host computer control software adjusts the parameters related to the PWM signal. The adjusted parameters undergo closed-loop control calculations. Through continuous iterative calculations and closed-loop regulation, a PWM signal that meets the set requirements is generated, and then Achieve precise control and adjustment of the output current in the execution module, output stable and accurate output current, and improve the output accuracy and dynamic performance of the device.

实施例3Example 3

本发明提高了一种多功能人机交互式阀控装置,具备故障自诊断机制,通过该故障自诊断机制,多功能人机交互阀控装置能够及时监测和响应各种输入、输出障碍以及内部电路障碍,通过发出故障警报信号并禁止输出,提高多功能人机交互阀控装置的可靠性和安全性,具体实施方式如下:The invention improves a multifunctional human-computer interactive valve control device, which is equipped with a fault self-diagnosis mechanism. Through the fault self-diagnosis mechanism, the multifunctional human-computer interactive valve control device can timely monitor and respond to various input and output obstacles and internal In case of circuit obstruction, the reliability and safety of the multi-functional human-computer interactive valve control device can be improved by sending out a fault alarm signal and prohibiting output. The specific implementation method is as follows:

该多功能人机交互式阀控装置采用可编程控制器,增加数字量输入(DI)、数字量输出(DO)电路、装置内部电路的监测功能,实现对该装置的可靠控制。This multi-functional human-machine interactive valve control device adopts a programmable controller and adds monitoring functions of digital input (DI), digital output (DO) circuits and internal circuits of the device to achieve reliable control of the device.

在输入端,通过DI单元对输入信号进行监测。当DI单元监测到输入线路断线或过载时,该多功能人机交互式阀控装置会及时检测并发出故障警报信号,以确保输入信号的可靠性。On the input side, the input signal is monitored through the DI unit. When the DI unit detects that the input line is disconnected or overloaded, the multifunctional human-machine interactive valve control device will promptly detect and send out a fault alarm signal to ensure the reliability of the input signal.

在输出端,通过DO单元对输出信号进行监测。当DO单元监测到输出线路出现断线或过流时,该多功能人机交互式阀控装置能够及时发现输出线路断线或过流问题,并做出相应的故障警报信号和保护措施。At the output end, the output signal is monitored through the DO unit. When the DO unit detects a disconnection or overcurrent in the output line, the multifunctional human-machine interactive valve control device can promptly detect the disconnection or overcurrent problem in the output line and make corresponding fault alarm signals and protective measures.

同时,该多功能人机交互式阀控装置内部还继续监测和诊断装置内部电路可能会出现的故障问题,当出现故障,装置会发出警报,并禁止输出信号,以防止故障进一步扩大,或对设备造成损害。At the same time, the multi-functional human-machine interactive valve control device continues to monitor and diagnose possible faults in the internal circuit of the device. When a fault occurs, the device will sound an alarm and prohibit output signals to prevent further expansion of the fault or damage to the device. equipment causing damage.

当该装置开始运行时,装置的故障自诊断机制也同时运行,FPGA算法控制器会输出READY通道监测信号至DO单元,READY通道监测信号可以帮助操作人员用于判断多功能人机交互式阀控装置的通道运行状态;When the device starts running, the fault self-diagnosis mechanism of the device also runs at the same time. The FPGA algorithm controller will output the READY channel monitoring signal to the DO unit. The READY channel monitoring signal can help the operator judge the multi-functional human-machine interactive valve control. The channel operating status of the device;

当FPGA算法控制器检测到该多功能人机交互式阀控装置的内部和外部没有发生错误,且通道运行状态良好时,DO单元内部的光电耦合器导通,READY通道监测信号电气隔离后输出READY_OUT信号为高电平;当FPGA算法控制器检测到通道未使能或错误时,DO单元内部的光电耦合器截止不导通,READY通道监测信号电气隔离后输出READY_OUT信号为低电平。When the FPGA algorithm controller detects that there are no internal or external errors in the multifunctional human-machine interactive valve control device and the channel is in good operating condition, the photoelectric coupler inside the DO unit is turned on and the READY channel monitoring signal is electrically isolated and output. The READY_OUT signal is high level; when the FPGA algorithm controller detects that the channel is not enabled or has an error, the photocoupler inside the DO unit is cut off and does not conduct, and the READY channel monitoring signal is electrically isolated and the READY_OUT signal is low level.

通过以上故障自诊断机制,可以检测输入断线、过载以及输出断线、过流等故障,根据故障类型来设置不同的报警信号,当发生故障时,该多功能人机交互式阀控装置会触发报警并停止输出,以保证该多功能人机交互式阀控装置的可靠和安全。同时通过READY_OUT的电平变化,可以检测装置的运行状态,帮助操作人员及时发现故障并采取对应措施。Through the above fault self-diagnosis mechanism, input disconnection, overload, output disconnection, overcurrent and other faults can be detected, and different alarm signals can be set according to the fault type. When a fault occurs, the multi-functional human-machine interactive valve control device will Trigger the alarm and stop the output to ensure the reliability and safety of the multi-functional human-machine interactive valve control device. At the same time, through the level change of READY_OUT, the operating status of the device can be detected, helping the operator to detect faults in time and take corresponding measures.

上面结合附图对本发明的实施方式作了详细说明,但是本发明并不限于上述实施方式。即使对本发明作出各种变化,倘若这些变化属于本发明权利要求及其等同技术的范围之内,则仍落入在本发明的保护范围之中。The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and equivalent technologies, they will still fall within the protection scope of the present invention.

Claims (10)

Translated fromChinese
1.一种多功能人机交互式阀控运行方法,其特征在于,用于FPGA算法控制器通过脉宽调制驱动器产生输出电流调节比例阀受控器的开度信息,并通过回检电流采样器反馈实现闭环控制运算,其进一步包括:1. A multifunctional human-machine interactive valve control operation method, characterized in that the FPGA algorithm controller uses a pulse width modulation driver to generate the opening information of the output current adjustment proportional valve controlled controller, and samples the current through back-checking The controller feedback realizes the closed-loop control operation, which further includes:在启动运行阶段,所述FPGA算法控制器接收到DIO线路检测诊断器的使能信号ENBALE后,接收输入信号电路调理器的模拟输入信号和上位机中控制软件设置的PWM信号相关参数进行逻辑运算处理生成PWM信号;During the start-up operation phase, after receiving the enable signal ENBALE of the DIO line detection and diagnosis device, the FPGA algorithm controller receives the analog input signal of the input signal circuit conditioner and the PWM signal related parameters set by the control software in the host computer to perform logical operations. Process and generate PWM signals;在信号监测阶段,所述脉宽调制驱动器接收所述PWM信号并转化为输出电流控制所述比例阀受控器;所述回检电流采样器对所述脉宽调制驱动器的输出电流进行采集并经过电路调理后转换成输出电压信号反馈到所述FPGA算法控制器;In the signal monitoring stage, the pulse width modulation driver receives the PWM signal and converts it into an output current to control the proportional valve controller; the checkback current sampler collects the output current of the pulse width modulation driver and After circuit conditioning, it is converted into an output voltage signal and fed back to the FPGA algorithm controller;在装置优化阶段,所述FPGA算法控制器根据所述模拟输入信号设定一个初始值,并且对所述回检电流采样器采集转化后的所述输出电压信号进行校准和计算生成回检值,所述初始值与所述回检值进行对比并计算误差值,同时设定一个误差阈值,当所述误差值低于所述误差阈值时,保持所述PWM信号不变;当所述误差值超过所述误差阈值,调整所述PWM信号相关参数和所述闭环控制运算使所述误差值低于所述误差阈值,在所述闭环控制运算中,将所述误差值作为输入,根据设置的算法运算输出结果调整所述PWM信号相关参数从而控制PWM信号的值,实现所述误差值的调整,以精确实现所述控制脉宽调制驱动器对所述比例阀受控器输入电流的调节。In the device optimization stage, the FPGA algorithm controller sets an initial value according to the analog input signal, and calibrates and calculates the output voltage signal after conversion by the backtest current sampler to generate a backtest value, The initial value is compared with the checkback value and an error value is calculated, and an error threshold is set at the same time. When the error value is lower than the error threshold, the PWM signal is kept unchanged; when the error value exceeds the error threshold, adjust the PWM signal related parameters and the closed-loop control operation to make the error value lower than the error threshold. In the closed-loop control operation, the error value is used as input, and according to the set The algorithm operation output result adjusts the relevant parameters of the PWM signal to control the value of the PWM signal, and realizes the adjustment of the error value, so as to accurately realize the adjustment of the input current of the proportional valve controller by the control pulse width modulation driver.2.根据权利要求1所述的多功能人机交互式阀控运行方法,其特征在于,在装置优化阶段,调整所述PWM信号相关参数和所述闭环控制运算进一步包括,2. The multifunctional human-machine interactive valve control operation method according to claim 1, characterized in that, in the device optimization stage, adjusting the PWM signal related parameters and the closed-loop control operation further includes:在初始化阶段,设置初始参数Kp,Ki,kd,同时,初始化累积误差和保存上一次误差;预设所述闭环控制运算的输出结果范围限制;所述Kp为比例增益,所述Ki为积分增益,所述Kd为微分增益;In the initialization stage, the initial parameters Kp, Ki, kd are set, and at the same time, the accumulated error is initialized and the last error is saved; the range limit of the output result of the closed-loop control operation is preset; the Kp is the proportional gain, and the Ki is the integral gain. , the Kd is the differential gain;在控制循环阶段,读取初检值和回检值,计算所述误差值:误差=回检值-初检值;In the control cycle stage, the initial inspection value and the back inspection value are read, and the error value is calculated: error = back inspection value - initial inspection value;在比例调节单元计算比例项:P=Kp*误差;Calculate the proportional term in the proportional adjustment unit: P=Kp*error;在积分调节单元计算积分项:累积误差+=误差,I=Ki*累计误差;Calculate the integral term in the integral adjustment unit: cumulative error + = error, I = Ki * cumulative error;在微分调节单元计算微分项:D=Kd*(误差-上一次误差)Calculate the differential term in the differential adjustment unit: D=Kd*(error-last error)计算所述闭环控制运算的输出结果:PID=P+I+D,且PID在所述输出结果范围限制内,后更新上一次所述误差。Calculate the output result of the closed-loop control operation: PID=P+I+D, and the PID is within the range limit of the output result, and then update the last error.3.根据权利要求1所述的多功能人机交互式阀控运行方法,其特征在于,在启动运行阶段,所述FPGA算法控制器接收到DIO线路检测诊断器的使能信号ENBALE进一步包括,3. The multifunctional human-machine interactive valve control operation method according to claim 1, characterized in that, during the startup operation phase, the FPGA algorithm controller receives the enable signal ENBALE of the DIO line detection and diagnosis device and further includes:所述DIO线路检测诊断器中的DI单元将使能信号ENABLE传输到所述FPGA算法控制器,控制阀控装置的运行或截止;同时所述FPGA算法控制器将READY通道监测信号发送到所述DIO线路检测诊断器中的DO单元经电气隔离后输出,用于判断所述阀控装置的运行状态。The DI unit in the DIO line detection and diagnosis device transmits the enable signal ENABLE to the FPGA algorithm controller to control the operation or shutdown of the valve control device; at the same time, the FPGA algorithm controller sends the READY channel monitoring signal to the The DO unit in the DIO line detection diagnostic device is electrically isolated and outputs to determine the operating status of the valve control device.4.根据权利要求1所述的多功能人机交互式阀控运行方法,其特征在于,在启动运行阶段,接收输入信号电路调理器的模拟输入信号进一步包括,所述输入信号电路调理器中的输入单元接收模拟信号发生器的输入信号,经电路调理成电压信号后传输至所述ADC采集单元;所述ADC采集单元将所述电压信号转换为数字量的所述模拟输入信号传入所述FPGA算法控制器。4. The multifunctional human-machine interactive valve control operation method according to claim 1, characterized in that, in the startup operation phase, receiving the analog input signal of the input signal circuit conditioner further includes: The input unit receives the input signal of the analog signal generator, and is conditioned into a voltage signal by the circuit and then transmitted to the ADC acquisition unit; the ADC acquisition unit converts the voltage signal into a digital analog input signal and transmits it to the Described FPGA algorithm controller.5.根据权利要求4所述的多功能人机交互式阀控运行方法,其特征在于,在装置优化阶段,所述FPGA算法控制器根据所述模拟输入信号设定一个初始值进一步包括,所述初始值与所述模拟输入信号建立比例关系,完成对初始值的设定算法。5. The multifunctional human-machine interactive valve control operation method according to claim 4, characterized in that, in the device optimization stage, the FPGA algorithm controller sets an initial value according to the analog input signal and further includes: The initial value establishes a proportional relationship with the analog input signal to complete the initial value setting algorithm.6.根据权利要求1所述的多功能人机交互式阀控运行方法,其特征在于,所述PWM信号相关参数进一步包括包括斜坡、最小/最大、抖动(频率和幅值)、PWM频率。6. The multifunctional human-machine interactive valve control operation method according to claim 1, characterized in that the PWM signal related parameters further include slope, minimum/maximum, jitter (frequency and amplitude), and PWM frequency.7.一种多功能人机交互式阀控装置,其特征在于,包括7. A multifunctional human-machine interactive valve control device, characterized by including:FPGA算法控制器与DIO线路监测诊断器电性连接,接收所述DIO线路监测诊断器中DI单元的使能信号ENBALE控制阀控装置状态的运行或截止;并且将READY通道监测信号发送到所述DIO线路监测诊断器中的DO单元判断所述阀控装置的运行状态;The FPGA algorithm controller is electrically connected to the DIO line monitoring and diagnostic device, receives the enable signal ENBALE of the DI unit in the DIO line monitoring and diagnostic device, controls the operation or cutoff of the valve control device status; and sends the READY channel monitoring signal to the The DO unit in the DIO line monitoring diagnostic device determines the operating status of the valve control device;输入信号电路调理器分别与模拟信号发生器和所述FPGA算法控制器电性连接,所述输入信号电路调理器中输入单元将接收所述模拟信号发生器的输入信号进行电路调理成电压信号,所述电压信号经过ADC采集单元生成数字量的模拟输入信号发送给所述FPGA算法控制器;The input signal circuit conditioner is electrically connected to the analog signal generator and the FPGA algorithm controller respectively. The input unit in the input signal circuit conditioner will receive the input signal from the analog signal generator and perform circuit conditioning into a voltage signal. The voltage signal generates a digital analog input signal through the ADC acquisition unit and sends it to the FPGA algorithm controller;所述FPGA算法控制器与上位机通过485/422通讯单元进行数据交互,所述FPGA算法控制器在阀控装置运行后,所述FPGA算法控制器将所述上位机中控制软件设置PWM信号相关参数与模拟输入信号通过逻辑算法生成PWM信号,并传输到电性连接的脉宽调制驱动器,所述脉宽调制驱动器接收所述PWM信号并转化为输出电流控制着与所述脉宽调制驱动器电性连接的比例阀受控器。The FPGA algorithm controller and the host computer perform data interaction through the 485/422 communication unit. After the FPGA algorithm controller runs the valve control device, the FPGA algorithm controller correlates the PWM signals set by the control software in the host computer. Parameters and analog input signals generate a PWM signal through a logic algorithm and transmit it to an electrically connected pulse width modulation driver. The pulse width modulation driver receives the PWM signal and converts it into an output current to control the electrical connection with the pulse width modulation driver. Sexually connected proportional valve controller.8.根据权利要求7所述的多功能人机交互式阀控装置,其特征在于,所述输入信号电路调理器至少包括两路所述输入单元和两路所述ADC采集单元,所述输入单元接收所述模拟信号发生器的输入信号,所述输入信号为±8. The multifunctional human-machine interactive valve control device according to claim 7, wherein the input signal circuit conditioner includes at least two input units and two ADC acquisition units. The unit receives the input signal from the analog signal generator, and the input signal is ±10V/4~20mA模拟信号。10V/4~20mA analog signal.9.根据权利要求7所述的多功能人机交互式阀控装置,其特征在于,还包括回检电流采样器,所述回检电流采样器中的霍尔电流传感器对所述脉宽调制驱动器的所述输出电流进行采样和监测,并将采集到的所述输出电流经电路调理后转换成相应的输出电压信号后传输到所述FPGA算法控制器,所述FPGA算法控制器根据所述输出电压信号进行校准和调整生成回检值。9. The multi-function human-machine interactive valve control device according to claim 7, further comprising a checkback current sampler, and the Hall current sensor in the checkback current sampler modulates the pulse width The output current of the driver is sampled and monitored, and the collected output current is converted into a corresponding output voltage signal after circuit conditioning and then transmitted to the FPGA algorithm controller. The FPGA algorithm controller is configured according to the The output voltage signal is calibrated and adjusted to generate a backtest value.10.根据权利要求7所述的多功能人机交互式阀控装置,其特征在于,所述控制软件还包括对所述FPGA算法控制器闭环控制运算和监测,以精确实现所述控制脉宽调制驱动器对所述比例阀受控器输入电流的调节。10. The multifunctional human-machine interactive valve control device according to claim 7, characterized in that the control software also includes closed-loop control calculation and monitoring of the FPGA algorithm controller to accurately realize the control pulse width. The modulation driver regulates the input current of the controller of the proportional valve.
CN202310817023.0A2023-07-052023-07-05 A multifunctional human-machine interactive valve control operation method and devicePendingCN116991098A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202310817023.0ACN116991098A (en)2023-07-052023-07-05 A multifunctional human-machine interactive valve control operation method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202310817023.0ACN116991098A (en)2023-07-052023-07-05 A multifunctional human-machine interactive valve control operation method and device

Publications (1)

Publication NumberPublication Date
CN116991098Atrue CN116991098A (en)2023-11-03

Family

ID=88525710

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202310817023.0APendingCN116991098A (en)2023-07-052023-07-05 A multifunctional human-machine interactive valve control operation method and device

Country Status (1)

CountryLink
CN (1)CN116991098A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118557903A (en)*2024-05-152024-08-30迈胜医疗设备有限公司Programmable weak charge generating device, generating method and related equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR850003173A (en)*1983-09-161985-06-13제너럴 일렉트릭 캄파니 Adjustable gain controller for valve position control loop and jitter removal method
CN101243602A (en)*2005-10-092008-08-13崇贸科技股份有限公司Closed loop PWM controller for primary side controlled power converter
CN104390044A (en)*2014-09-162015-03-04深圳市麦格米特控制技术有限公司Electro-hydraulic proportional valve controller based on programmable controller
CN106629504A (en)*2015-10-282017-05-10比亚迪股份有限公司Electric forklift as well as hydraulic system thereof and control method of hydraulic system
CN111190376A (en)*2020-02-212020-05-22山东省计算中心(国家超级计算济南中心)Proportional valve driving circuit suitable for agricultural machinery ECU and control method
CN111664287A (en)*2020-05-212020-09-15四川虹美智能科技有限公司Constant-current control device, method and system for electromagnetic valve
CN112604835A (en)*2019-10-042021-04-06固瑞克明尼苏达有限公司Spray gun system with fluid flow control
JP2022152584A (en)*2021-03-292022-10-12日立建機株式会社 solenoid valve controller

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR850003173A (en)*1983-09-161985-06-13제너럴 일렉트릭 캄파니 Adjustable gain controller for valve position control loop and jitter removal method
CN101243602A (en)*2005-10-092008-08-13崇贸科技股份有限公司Closed loop PWM controller for primary side controlled power converter
CN104390044A (en)*2014-09-162015-03-04深圳市麦格米特控制技术有限公司Electro-hydraulic proportional valve controller based on programmable controller
CN106629504A (en)*2015-10-282017-05-10比亚迪股份有限公司Electric forklift as well as hydraulic system thereof and control method of hydraulic system
CN112604835A (en)*2019-10-042021-04-06固瑞克明尼苏达有限公司Spray gun system with fluid flow control
CN111190376A (en)*2020-02-212020-05-22山东省计算中心(国家超级计算济南中心)Proportional valve driving circuit suitable for agricultural machinery ECU and control method
CN111664287A (en)*2020-05-212020-09-15四川虹美智能科技有限公司Constant-current control device, method and system for electromagnetic valve
JP2022152584A (en)*2021-03-292022-10-12日立建機株式会社 solenoid valve controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118557903A (en)*2024-05-152024-08-30迈胜医疗设备有限公司Programmable weak charge generating device, generating method and related equipment
CN118557903B (en)*2024-05-152025-09-02迈胜医疗设备有限公司 Programmable weak charge generating device, generating method and related equipment

Similar Documents

PublicationPublication DateTitle
CN107917043B (en) Method and system for processing communication interruption of wind power generator
CN107701782B (en) A Valve Controller Using Hall Signals of Brushless Motors
CN116991098A (en) A multifunctional human-machine interactive valve control operation method and device
CN114725924A (en) A power control method and device for construction machinery, and construction machinery
CN112343763A (en) A kind of approaching hydropower station power pulse adjustment method and adjustment system
CN111399479A (en) A method and system for fault monitoring of high-voltage systems based on parameter prediction
CN115021562B (en)Drive chip, control method thereof and electronic equipment
JP2004181543A (en)Industrial robot and method for judging its abnormality
CN108110779B (en)Method for responding power station load deviation by using energy storage system in power station
CN103236715B (en)Regulating method for speed regulator mechanical open limit of generation set
CN116104840B (en) A low-cost hydraulic actuator control system and method
CN110093715B (en)State detection system and state detection method
KR101597743B1 (en)Oil pressure equipment control system
CN209854336U (en)State detection device applied to weft knitting machine
CN114810234B (en) A steam turbine generator transient performance test system
TWI826114B (en)Regulator circuit module and voltage control method
LU508669B1 (en)Automatic switch control method for box-type transformer power supply
CN223198210U (en) Liquid level control device for wire-cutting machine tools
CN120010304A (en) Closed-loop regulation circuit, system and method for slag scooping machine
RU2710944C1 (en)Method of control of hydraulic turbines (versions)
CN119472445A (en) A method, system, device and medium for controlling air valve of blasting ventilation
CN120185410A (en) A multifunctional voltage conversion method and system for plug-in adapter
CN119289491A (en) Air conditioner fan control system and method thereof, controller, and air conditioner
CN118739953A (en) Motor drive control system and method with speed and position feedback
CN120351198A (en)Hydraulic control valve speed adjusting control system based on variable frequency oil pump motor and flowmeter

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp