A PLC controlled fluid automation conditioning system
By integrating different types of valves and independent control logic in parallel, the problems of lag in regulation response and loop coupling in PLC control systems are solved, achieving high precision and stable operation of the fluid automation regulation system.
Patent Information
- Application Number
- CN202611236259.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing PLC-controlled fluid automation regulation systems suffer from sluggish regulation response, poor anti-disturbance capability, multi-loop coupling loss of control, difficulty in meeting high-precision process requirements, and lack of effective decoupling and coordination mechanisms when faced with sudden changes in operating conditions.
By configuring the parallel integration of linear characteristic valves, equal percentage characteristic valves, and quick-opening characteristic valves through the configuration module, configuring the pairing relationship between the main control valve and the standby valve, and combining independent drive signal channels and status feedback loops, the electrical isolation and independent control of six valves are realized. The regulation rate is calculated based on the regulation amount and regulation duration, and the appropriate valve type and timing parameters are automatically selected.
It improves the adjustment accuracy under complex disturbances, eliminates inter-loop interference, ensures stable system operation, avoids signal crosstalk and linkage malfunctions, and meets the requirements of high-precision processes.
Smart Images

Figure CN123177315A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of PLC automatic control, and in particular to a PLC-controlled fluid automatic regulation system. Background Technology
[0002] In process industries such as chemical, pharmaceutical, and energy, the precise regulation of parameters such as pressure, flow rate, and temperature of fluid media is a core element in ensuring stable production operation. Currently, PLC-controlled automated fluid regulation systems are widely used, but existing technologies have the following prominent problems:
[0003] First, the adjustment response is sluggish and the anti-disturbance capability is poor. Most existing systems use PID control with fixed parameters. When faced with sudden changes in operating conditions, the control valves act slowly, with large overshoot and long recovery time, making it difficult to meet the requirements of high-precision processes. Second, multi-loop coupling leads to loss of control and difficulty in coordinated regulation. In actual production, parameters such as flow rate, pressure, and temperature affect each other. Existing PLC systems operate independently in each loop and lack an effective decoupling and coordination mechanism, which leads to system oscillation or even loss of control.
[0004] In Chinese invention patent CN119472491B, a data receiving buffer is selected by requesting an address, and device control information is mapped to the structure of the data receiving buffer. The data receiving buffer corresponds one-to-one with the controlled device. Command parameters are extracted from the data receiving buffer to control the controlled device corresponding to the data receiving buffer.
[0005] While existing technologies reduce the logic judgments of PLC slave computers and improve control efficiency, they have not yet achieved adaptive adjustment of multiple parameters and online fault diagnosis, and cannot fundamentally solve engineering pain points such as response lag, loop coupling and inefficient operation and maintenance. Summary of the Invention
[0006] In view of the above problems, this disclosure provides a PLC-controlled fluid automation regulation system that can control overshoot, improve regulation accuracy under complex disturbances, eliminate inter-loop interference, and ensure stable system operation under multi-variable conditions. The specific solution is as follows:
[0007] This application provides a PLC-controlled automated fluid regulation system, including a configuration module, a confirmation module, and a control module;
[0008] The configuration module integrates different types of valves, sets control logic based on PLC, obtains fluid regulation requirements, and makes a first adjustment to the control logic based on the fluid regulation requirements.
[0009] The confirmation module obtains adjustment parameters based on fluid parameters, and performs a second adjustment on the first adjusted control logic based on the adjustment parameters;
[0010] The control module responds to the second adjusted control logic to regulate the fluid.
[0011] In one possible implementation, the valve types include linear characteristic valves, equal percentage characteristic valves, and quick-opening characteristic valves;
[0012] The configuration module's integration logic for different types of valves includes:
[0013] By connecting two linear characteristic valves, two equal percentage characteristic valves, and two quick-opening characteristic valves in parallel, each valve is configured with an independent drive signal channel and status feedback loop.
[0014] Among them, valves of the same type are connected in parallel, valves of different types are connected in parallel, and among the same type of valves, one valve is the main control valve and the other valve is the standby valve.
[0015] In one possible implementation, the control logic includes start logic, termination logic, switching logic, and compensation logic;
[0016] The initial logic includes the opening conditions, self-locking conditions, and delay start-up duration for each main control valve;
[0017] The termination logic includes the closing conditions, interlocking conditions, and delayed shutdown duration for each main control valve;
[0018] The switching logic includes the switching conditions between the main control valve and the corresponding standby valve, the switching conditions between main control valves, and the switching conditions between standby valves and main control valves;
[0019] The compensation logic includes feedforward compensation, feedback compensation, and empirical parameters of the PID controller.
[0020] In one possible implementation, fluid regulation requirements include regulation amount and regulation duration;
[0021] Based on the adjustment amount and adjustment duration, the adjustment characteristics are obtained, including rapid start characteristics, slow start characteristics, smooth start characteristics, rapid stop characteristics, slow stop characteristics, and smooth stop characteristics.
[0022] Based on the regulation characteristics, the control logic is adjusted first, which means adjusting the switching logic.
[0023] In one possible implementation, the logic for setting the enabling condition includes:
[0024] If the regulating characteristic is rapid start, then the fast-opening valve is opened; if the regulating characteristic is slow start, then the equal percentage valve is opened; if the regulating characteristic is level start, then the linear valve is opened.
[0025] The logic for setting the shutdown condition includes:
[0026] If the regulating characteristic is an emergency stop characteristic, then close the quick-opening characteristic valve and the linear characteristic valve; if the regulating characteristic is a slow stop characteristic, then close the equal percentage characteristic valve and the linear characteristic valve; if the regulating characteristic is a level stop characteristic, then close the equal percentage characteristic valve and the quick-opening characteristic valve.
[0027] The logic for setting the self-locking condition includes:
[0028] Maintain the current valve opening area until a stop signal or a switching signal is received;
[0029] The interlock condition setting logic includes: maintaining the current valve opening area until an opening signal or switching signal is received;
[0030] The logic for setting the delayed startup duration includes:
[0031] If the adjustment characteristic is a quick start characteristic, the delay start time is set to 0.1 seconds; if the adjustment characteristic is a slow start characteristic, the delay start time is set to 0.5 seconds; if the adjustment characteristic is a level start characteristic, the delay start time is set to 1.2 seconds.
[0032] The logic for setting the delay shutdown duration includes: if the adjustment characteristic is an emergency stop characteristic, the delay shutdown duration is set to 0.5 seconds; if the adjustment characteristic is a slow stop characteristic, the delay shutdown duration is set to 1.0 seconds; and if the adjustment characteristic is a normal stop characteristic, the delay shutdown duration is set to 1.5 seconds.
[0033] In one possible implementation, the logic for setting the switching conditions between the main control valve and the corresponding standby valve includes:
[0034] If the opening deviation of the main control valve is greater than the preset deviation, the corresponding standby valve will be switched.
[0035] The logic for setting switching conditions between main control valves includes:
[0036] If the currently operating valve is the master control valve and a switching signal is received, then switch to the next master control valve;
[0037] The logic for setting the switching conditions between the standby valve and the main control valve includes:
[0038] If the currently operating valve is a standby valve and a switching signal is received, then switch to the next main control valve.
[0039] In one possible implementation, the logic for setting the feedforward compensation amount includes:
[0040] Based on the deviation of the valve opening area of the currently executed valve, and combined with the correspondence between the electrical parameters of the drive motor and the opening area of the currently executed valve, the feedforward compensation voltage is obtained and denoted as the feedforward compensation amount.
[0041] The logic for setting the feedback compensation amount includes:
[0042] The actual flow rate during the first time period is detected, and the difference between the adjustment amount and the actual flow rate is calculated. Based on the correspondence between the flow rate and the valve opening area, the valve opening area corresponding to the difference is obtained. Combining the correspondence between the electrical parameters of the drive motor and the valve opening area currently being executed, the post-compensation voltage is obtained and recorded as the feedback compensation amount.
[0043] The setting logic for the empirical parameters of a PID controller includes:
[0044] Obtain the fluid type and its historical PID parameters. Set the average value of the historical PID parameters as the empirical parameters, which include the proportional coefficient, integral coefficient, and derivative coefficient.
[0045] In one possible implementation, the logic for the first adjustment includes:
[0046] Determine if the adjustment property is set to start;
[0047] If so, set the delay start duration to the new timing threshold of the timer, and set the sum of the delay start duration and the adjustment duration to the new timing threshold of the timer.
[0048] If not, the delay shutdown duration is set as the new timing threshold of the timer, and the delay shutdown duration and adjustment duration are set as the new timing threshold of the timer.
[0049] In one possible implementation, the fluid parameters include flow velocity, pressure difference, and fluid density;
[0050] The adjustment parameter is expressed as the valve opening area;
[0051] Methods for obtaining adjustment parameters include:
[0052] Obtain the fluid flow rate when the valve is fully open, and record it as the rated flow rate;
[0053] The valve opening area is obtained based on the rated flow rate, pressure difference, and fluid density, and is recorded as the regulating parameter.
[0054] The second adjustment refers to adjusting the empirical parameters of the PID controller.
[0055] In one possible implementation, the setting logic for the second adjustment includes:
[0056] The average control area corresponding to the new timing threshold is obtained by acquiring the adjustment parameters. Based on the average control area, the electrical parameters of the drive motor are obtained. Based on the electrical parameters of the drive motor, the empirical parameters are adjusted, and the original empirical parameters are replaced with the adjusted empirical parameters.
[0057] Compared with existing technologies, the PLC-controlled fluid automation regulation system provided in this application integrates linear characteristic valves, equal percentage characteristic valves, and quick-opening characteristic valves in parallel through configuration modules, and pairs the main control valve with the backup valve. It can automatically match the optimal valve type according to the operating conditions and seamlessly switch to the backup valve when the main control valve fails, ensuring continuous system operation. By configuring independent drive signal channels and status feedback loops for each valve, it can achieve electrical isolation and independent control of six valves, avoiding signal crosstalk and linkage malfunctions. By calculating the regulation rate based on the regulation amount and regulation time, and comparing the regulation rate with a preset threshold to determine six regulation characteristics: rapid start, slow start, normal start, rapid stop, slow stop, and normal stop, it can automatically select the corresponding valve type and timing parameters according to the urgency of fluid regulation needs, achieving precise matching between regulation strategy and operating conditions. Attached Figure Description
[0058] The features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements and actual parts are not necessarily drawn to scale.
[0059] Figure 1 This is a basic flowchart of a PLC-controlled automated fluid regulation system provided in one embodiment of the present invention.
[0060] Figure 2 Ladder diagram of the start logic and start condition judgment subroutine of a PLC-controlled fluid automation regulation system provided in one embodiment of the present invention;
[0061] Figure 3 A ladder diagram of a timer T0 delay start and voltage output subroutine for a PLC-controlled fluid automation regulation system is provided as an embodiment of the present invention.
[0062] Figure 4 Ladder diagram of termination logic, shutdown condition judgment and interlock release subroutine of a PLC-controlled fluid automation regulation system provided in one embodiment of the present invention;
[0063] Figure 5 Ladder diagram of switching logic, fault switching and type polling subroutine for a PLC-controlled fluid automation regulation system provided in one embodiment of the present invention. Detailed Implementation
[0064] The embodiments of this disclosure are described below with reference to the accompanying drawings. The terminology used in the Description of Embodiments section of this disclosure is for illustrative purposes only and is not intended to limit the scope of this disclosure.
[0065] The embodiments of this disclosure are described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure. Those skilled in the art will understand that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of this disclosure are also applicable to similar technical problems.
[0066] The terms “first,” “second,” etc., used in this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the description of embodiments of this disclosure. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of units is not necessarily limited to those units, but may include other units not expressly listed or inherent to those processes, methods, products, or apparatuses.
[0067] Example, refer to Figure 1 As an embodiment of the present invention, a PLC-controlled fluid automation regulation system is provided, including a configuration module, a confirmation module and a control module;
[0068] The configuration module integrates different types of valves, sets control logic based on PLC, obtains fluid regulation requirements, and makes a first adjustment to the control logic based on the fluid regulation requirements.
[0069] The confirmation module obtains adjustment parameters based on fluid parameters, and performs a second adjustment on the first adjusted control logic based on the adjustment parameters;
[0070] The control module responds to the second adjusted control logic to regulate the fluid.
[0071] Specifically, by configuring the parallel integration of linear characteristic valves, equal percentage characteristic valves, and quick-opening characteristic valves, as well as the paired configuration of main control valves and standby valves, the system can automatically match the optimal valve type according to the operating conditions and seamlessly switch to the standby valve when the main control valve fails, ensuring continuous system operation. By configuring independent drive signal channels and status feedback loops for each valve, the system can achieve electrical isolation and independent control of six valves, avoiding signal crosstalk and linkage malfunctions. By calculating the regulation rate based on the regulation amount and regulation duration, and comparing the regulation rate with a preset threshold to determine six regulation characteristics (quick start, slow start, level start, quick stop, slow stop, and level stop), the system can automatically select the corresponding valve type and timing parameters according to the urgency of fluid regulation needs, achieving precise matching between regulation strategies and operating conditions.
[0072] Valve types include linear characteristic valves, equal percentage characteristic valves, and quick-opening characteristic valves;
[0073] The configuration module's integration logic for different types of valves includes:
[0074] By connecting two linear characteristic valves, two equal percentage characteristic valves, and two quick-opening characteristic valves in parallel, each valve is configured with an independent drive signal channel and status feedback loop.
[0075] Among them, valves of the same type are connected in parallel, valves of different types are connected in parallel, and among the same type of valves, one valve is the main control valve and the other valve is the standby valve.
[0076] Control logic includes start logic, stop logic, switching logic, and compensation logic;
[0077] The initial logic includes the opening conditions, self-locking conditions, and delay start-up duration for each main control valve;
[0078] The termination logic includes the closing conditions, interlocking conditions, and delayed shutdown duration for each main control valve;
[0079] The switching logic includes the switching conditions between the main control valve and the corresponding standby valve, the switching conditions between main control valves, and the switching conditions between standby valves and main control valves;
[0080] The compensation logic includes feedforward compensation, feedback compensation, and empirical parameters of the PID controller.
[0081] Furthermore, the hardware composition and configuration of this application are described below:
[0082] The PLC is installed on a DIN rail inside the control cabinet. The hardware model is Mitsubishi FX3U-32MT transistor output PLC. The PLC includes a CPU, digital input ports, digital output ports, counters, timers, communication interfaces, and expansion interfaces.
[0083] The CPU has a built-in 64K RAM memory and an instruction processing speed of 0.065μs / step. It is responsible for all logic operations, timer management, counter management, PID calculation, and communication scheduling. The digital input ports include X0~X17, which are used to receive 24V DC switching signals. The digital output ports include Y0~Y17, which are used to output 24V DC transistor switching signals. The counter is used to receive encoder pulse signals. The timers include T0~T255, of which T0 and T1 are used for delayed start and delayed shutdown timing in this application. The communication interface is an RS-232 programming port for connecting to a touch screen. The expansion interface is used to connect functional modules.
[0084] The timer uses a special data register in conjunction with the scan cycle to achieve the cumulative timing function.
[0085] The PLC receives the following signals:
[0086] Fluid regulation demand signals from the touchscreen, communicated via RS-232 serial port, include regulation amount, regulation duration, and fluid type; motor operating status feedback signals from digital input terminals, such as contactor auxiliary contact signals; encoder pulse signals from the counter, used for motor speed and angular displacement detection; and digital signals from the expansion interface, such as pressure and flow data converted by the module.
[0087] The actions executed by the PLC include:
[0088] It outputs a 24V DC control signal to the digital output port to drive the intermediate relay coil; writes digital values to the expansion interface, which are then converted into analog voltage signals by the module; transmits system status data back to the touch screen; and performs all logical judgments, timer timing, PID calculations, and parameter adjustments.
[0089] Furthermore, let's explain timer T0:
[0090] Timer T0, also known as the delay-start timer, is integrated into the CPU and is a software timer that occupies the PLC's internal soft component resources. It is numbered T0 and is a 16-bit incrementing counter timer. The timing reference is provided by the PLC system clock, and the timing resolution is 10ms. This timer does not require an external physical connection. The timing threshold is set through the PLC ladder diagram program and it is driven by the PLC's internal bus.
[0091] The signals received by timer T0 include:
[0092] The start trigger signal in the PLC program is set by the result of the PLC logic operation when all start conditions are met; the timing thresholds written in the PLC program are, for example, K10 for 0.1 seconds for rapid start, K50 for 0.5 seconds for slow start, and K120 for 1.2 seconds for normal start.
[0093] The actions performed by timer T0 include:
[0094] After the start trigger signal arrives, T0 starts counting from 0 in 10ms increments. When the count reaches the set threshold, T0 outputs a contact action, sending a delayed start completion signal to the PLC program. Upon receiving the completion signal, the PLC changes the motor status word from pending start to running and sends a start completion signal to the confirmation module. During the timing period, the PLC outputs drive voltage to the motor inverter through the expansion interface based on the current count value of T0.
[0095] Furthermore, let's explain timer T1:
[0096] Timer T1, also known as the delay shutdown timer, is integrated inside the PLC CPU and is numbered T1. It shares the same clock base as T0. Timer T1 is a 16-bit up-counting timer with a timing resolution of 10ms. It does not require an external physical connection and the timing threshold is set through the PLC program.
[0097] The received signals of timer T1 include:
[0098] The shutdown trigger signal in the PLC program is set by the result of the PLC logic operation when all shutdown conditions are met; the timing thresholds written in the PLC program are, for example, K30 for an emergency stop of 0.5 seconds, K100 for a slow stop of 1.0 seconds, and K150 for a normal stop of 1.5 seconds.
[0099] The actions performed by timer T1 include:
[0100] After the shutdown trigger signal arrives, T1 starts counting from 0 in 10ms increments. When the count reaches the set threshold, T1 outputs a contact action, sending a delayed shutdown completion signal to the PLC program. Upon receiving the completion signal, the PLC changes the motor status word from pending shutdown to shutdown, releases the self-locking circuit, and sends a shutdown completion signal to the confirmation module. During the timing period, the PLC outputs drive voltage to the motor inverter through the expansion interface based on the current count value of T1.
[0101] Furthermore, the timer will be explained as follows:
[0102] The timer is composed of a special data register D inside the PLC and the scan cycle. It occupies data register resources and the number is assigned by the program. For example, D100 is a 32-bit cumulative counter type timer. It uses the PLC scan cycle as the timing unit, and the timing unit is distributed from 1 to 10ms. It achieves long-term timing through program accumulation. It is implemented purely in software and has no external physical connection.
[0103] The timer's received signals include:
[0104] Timing thresholds written into the PLC program, such as the sum of the delayed start duration and the adjustment duration, or the sum of the delayed shutdown duration and the adjustment duration; start / shutdown action start signals in the PLC program;
[0105] The timer's execution actions include:
[0106] After the start signal arrives, the timer increments by the PLC scan cycle. Each time a scan cycle is reached, the PLC performs an incremental adjustment of the valve opening area, for example, outputting the drive voltage corresponding to the average controlled area. When the accumulated value reaches the timing threshold, the timer outputs a completion signal, and the PLC determines that the control process has ended.
[0107] Furthermore, the drive motor will be explained as follows:
[0108] The drive motor is installed on top of each regulating valve body and connected to the valve reduction mechanism through a coupling. Two motors are configured for each type of valve, that is, a total of 6 drive motors. The drive motors are three-phase AC asynchronous motors and are adapted to the electric regulating valve actuator.
[0109] The electrical parameters of the drive motor include: rated power, ranging from 0.25 to 0.75 kW; rated voltage of 380 V; rated speed ranging from 1400 to 2800 rpm; and insulation class of F.
[0110] The connection methods for drive motors include:
[0111] The U, V, and W terminals of the three-phase stator windings of the motor are connected to the main contact output terminals of the AC contactor via power cables.
[0112] The main contact input terminals of the AC contactor are connected to the three-phase power supply L1, L2, and L3.
[0113] An incremental encoder is installed on the motor shaft end. The encoder signal lines, such as phase A, phase B, phase Z, +5V power supply, and ground (GND) ports, are connected to the PLC counter input terminals, such as X0~X5.
[0114] The signals received by the drive motor include:
[0115] The 380V three-phase AC power supply from the main contacts of the AC contactor is switched on and off by the contactor; the variable frequency power supply from the motor inverter controls the inverter's output frequency by outputting a voltage signal through the expansion interface during the speed regulation phase.
[0116] The actions performed by the drive motor include:
[0117] After the contactor is closed, the motor is energized and rotates, driving the valve stem to move linearly through the reduction mechanism, thus changing the valve opening. In the frequency converter speed control mode, the motor runs according to the speed curve given by the PLC, realizing precise control of the valve opening. The encoder provides real-time feedback on the motor's angular displacement, which the PLC converts into the valve opening value.
[0118] Furthermore, the driving power supply will be explained as follows:
[0119] The drive power supply is located at the top or side of the control cabinet and is distributed to each motor through circuit breakers and contactors;
[0120] The hardware components of the power supply include:
[0121] Three-phase AC power input: 380V AC, frequency 50Hz, connected to the control cabinet through the main circuit breaker; branch circuit breakers: provide short-circuit protection and overload protection for each motor; AC contactors: one for each motor, with the main contact capacity distributed at 1.5 to 2 times the rated current of the motor.
[0122] The connection methods for the drive power supply include:
[0123] Power input lines L1, L2, and L3 are connected to the main circuit breaker. The main circuit breaker is connected to the branch circuit breakers. The branch circuit breakers are connected to the main contacts (upper end) of the AC contactor. The main contacts (upper end) of the AC contactor are connected to the main contacts (lower end) of the contactor. The main contacts (lower end) of the contactor are connected to the motor terminals. The contactor coil, i.e., terminals A1 and A2, is connected to the control power supply through the normally open contacts of the intermediate relay.
[0124] The signal received by the drive power supply is the on / off control signal from the intermediate relay contacts, which is generated by the PLC digital output port driving the intermediate relay coil.
[0125] The actions performed by the drive power supply include:
[0126] When the intermediate relay contacts are closed, the contactor coil is energized, the main contacts are closed, and three-phase power is output to the motor; when the intermediate relay contacts are open, the contactor coil is de-energized, the main contacts are open, and the power supply to the motor is cut off.
[0127] Furthermore, the control power supply will be explained as follows:
[0128] The control power supply is installed in the power supply area inside the control cabinet;
[0129] The hardware components for controlling the power supply include:
[0130] Switching power supply module 1: AC 220V input, DC 24V output, capacity 5~10A, powering PLC, input / output ports, sensors, and intermediate relay coils;
[0131] Switching power supply module 2: AC 220V input, DC 5V output, capacity 1~2A, powering the encoder, but some encoders are powered by the PLC's internal 5V power supply;
[0132] Switching power supply module 3: AC 220V input, DC 24V output, capacity 2~3A, powering the touch screen;
[0133] The connection methods for controlling the power supply include:
[0134] AC 220V input terminal: Connect to the lighting / socket circuit inside the control cabinet or the secondary winding of the independent control transformer;
[0135] DC 24V output positive terminal (+24V): Connect to the PLC power input terminal (e.g., L and N are AC 220V, +24V is the sensor power supply), the expansion interface power terminal, the sensor power supply positive terminal, and one end of the intermediate relay coil;
[0136] DC 24V output negative terminal (0V / COM): Connect to the common terminal of the above-mentioned device;
[0137] DC 5V output: Connect to the encoder power supply terminal;
[0138] The power supply receives a 220V AC power input signal.
[0139] The control power supply performs the action of converting AC power to DC power to provide operating power for all low-voltage equipment in the system.
[0140] Furthermore, the intermediate relay will be explained as follows:
[0141] Intermediate relays are installed on relay mounting rails inside the control cabinet, with 1 to 2 relays configured for each motor.
[0142] The intermediate relay has the following hardware specifications: 4V DC coil, contact capacity 10A / 250V AC;
[0143] The connection methods for intermediate relays include:
[0144] One end of the coil: connected to the PLC digital output port, i.e., Y0~Y17; the other end of the coil: connected to the DC 24V negative terminal (COM); one end of the normally open contact: connected to the contactor coil A1 terminal or the control power supply phase line; the other end of the normally open contact: connected to the contactor coil A2 terminal or the control power supply neutral line;
[0145] The intermediate relay receives a 24V DC on / off signal from the PLC digital output port.
[0146] The intermediate relay operates by closing its contacts when the coil is energized, thereby energizing the contactor coil and achieving isolation control of the motor's high-voltage circuit by the PLC's low-voltage signal.
[0147] Furthermore, the incremental encoder will be explained as follows:
[0148] The incremental encoder is mounted on the motor shaft and rotates synchronously with the motor shaft via a coupling or flexible connection;
[0149] The incremental encoder is a photoelectric incremental encoder with a resolution of 1024~4096 pulses / revolution, and outputs A / B / Z three-phase pulses;
[0150] Incremental encoders can be connected in the following ways:
[0151] A-phase pulse output: Connect to the PLC counter input terminal, for example, X0; B-phase pulse output: Connect to the PLC counter input terminal, for example, X1; Z-phase pulse output: Connect to the PLC input terminal, for example, X2; +5V power supply: Connect to the PLC's internal 5V power supply output or external switching power supply module 2; GND: Connect to the PLC common terminal;
[0152] The incremental encoder receives the mechanical rotation angle of the motor shaft.
[0153] The incremental encoder's actions include: when the motor rotates, the encoder outputs A / B phase quadrature pulse signals proportional to the rotational speed; the PLC high-speed counter collects the number of pulses and converts them into motor angular displacement according to the encoder resolution; combined with the reduction ratio and the lead screw, the PLC converts the angular displacement into valve linear displacement, i.e., valve opening; one Z-phase pulse is output per revolution for valve opening zero-position calibration.
[0154] It should be noted that the configuration module is a software functional unit built into the CPU and implemented through PLC programming. Its physical carrier is the ladder diagram program block stored in the PLC's RAM memory. The confirmation module is also an internal software functional unit of the PLC and is implemented by calling the PLC's data processing instructions. Its physical carrier is the PLC's data register area and arithmetic unit. The control module is a collection of PLC digital output ports, analog output modules, and peripheral drive circuits.
[0155] The module's interaction path is as follows:
[0156] The configuration module writes the first adjusted control logic parameters into the holding register through the PLC's internal data bus; the confirmation module reads the parameters from the holding register, performs calculations, and writes the second adjusted parameters into the output image register; the control module reads the parameters from the output image register and converts them into electrical signals for output via the port drive circuit.
[0157] Furthermore, the electrical configuration of the drive signal channel is as follows:
[0158] The system includes PLC digital output ports (Y0~Y17), intermediate relay coils (DC 24V), intermediate relay normally open contacts, AC contactor coils (AC 220V or AC 380V), AC contactor main contacts, and three-phase AC asynchronous motor stator windings (AC 380V). Each valve is equipped with an independent drive signal channel, meaning that each valve occupies an independent PLC output point, an independent intermediate relay, and an independent AC contactor.
[0159] Furthermore, the electrical configuration of the state feedback loop is as follows:
[0160] The system includes AC contactor auxiliary normally open contacts, PLC digital input ports (X~X17, with a DC 24V level signal between the contacts and input ports, active high); motor shaft incremental encoder, PLC counter input terminals (X0~X5, with the encoder outputting A / B phase quadrature pulse signals, the pulse frequency being proportional to the motor speed); and each valve is equipped with an independent status feedback loop, meaning each valve occupies an independent PLC input point and an independent encoder channel.
[0161] Furthermore, the PLC code is a ladder diagram program written using Mitsubishi GXWorks2 software. The program is downloaded to the CPU's RAM memory via the RS-232 programming port or USB interface. The start logic, stop logic, switching logic, and compensation logic each correspond to different program function blocks.
[0162] Start logic function block: occupies program steps 1000~2999, including: start condition judgment subroutine, self-locking loop drive subroutine, timer T0 setting subroutine;
[0163] Termination logic function block: Occupies program steps 3000~4999, including: shutdown condition judgment subroutine, interlock loop drive subroutine, and timer T1 setting subroutine;
[0164] Switching logic function block: occupies 5000~6999 program steps, including three types of switching condition judgment subroutines and switching execution subroutines;
[0165] Compensation logic function block: occupies 7000~8999 program steps, including PID calculation subroutine, feedforward compensation calculation subroutine, and feedback compensation calculation subroutine;
[0166] Each function block is executed by calling the PLC's main loop scanning program, with the scanning cycle ranging from 1 to 10 ms.
[0167] Fluid regulation requirements include regulation amount and regulation duration;
[0168] Based on the adjustment amount and adjustment duration, the adjustment characteristics are obtained, including rapid start characteristics, slow start characteristics, smooth start characteristics, rapid stop characteristics, slow stop characteristics, and smooth stop characteristics.
[0169] Based on the regulation characteristics, the control logic is adjusted first, which means adjusting the switching logic.
[0170] Furthermore, the logic for obtaining the adjustment characteristics includes:
[0171] Obtain the numerical sign of the adjustment amount, which includes positive and negative signs;
[0172] The ratio of the absolute value of the adjustment amount to the adjustment duration is calculated and denoted as the adjustment rate.
[0173] Set the first value and the second value as the rate threshold, wherein the first value is less than the second value;
[0174] Compare the adjustment rate with the rate threshold;
[0175] If the rate threshold is less than or equal to the first value and the value is positive, the adjustment characteristic is set to slow start characteristic; if the rate threshold is greater than the first value and less than or equal to the second value and the value is positive, the adjustment characteristic is set to level start characteristic; if the rate threshold is greater than the second value and the value is positive, the adjustment characteristic is set to rapid start characteristic.
[0176] If the rate threshold is less than or equal to the first value and the value is negative, the adjustment characteristic is set to slow stop characteristic; if the rate threshold is greater than the first value and less than or equal to the second value and the value is negative, the adjustment characteristic is set to level stop characteristic; if the rate threshold is greater than the second value and the value is negative, the adjustment characteristic is set to emergency stop characteristic.
[0177] Each adjustment characteristic is stored in the PLC's internal register as a 3-bit binary code, and the encoded value serves as an index pointer for subsequent logic selection.
[0178] The logic for setting the activation conditions includes:
[0179] If the regulating characteristic is rapid start, then the fast-opening valve is opened; if the regulating characteristic is slow start, then the equal percentage valve is opened; if the regulating characteristic is level start, then the linear valve is opened.
[0180] The logic for setting the shutdown condition includes:
[0181] If the regulating characteristic is an emergency stop characteristic, then close the quick-opening characteristic valve and the linear characteristic valve; if the regulating characteristic is a slow stop characteristic, then close the equal percentage characteristic valve and the linear characteristic valve; if the regulating characteristic is a level stop characteristic, then close the equal percentage characteristic valve and the quick-opening characteristic valve.
[0182] The logic for setting the self-locking condition includes:
[0183] Maintain the current valve opening area until a stop signal or a switching signal is received;
[0184] The interlock condition setting logic includes: maintaining the current valve opening area until an opening signal or switching signal is received;
[0185] The logic for setting the delayed startup duration includes:
[0186] If the adjustment characteristic is a quick start characteristic, the delay start time is set to 0.1 seconds; if the adjustment characteristic is a slow start characteristic, the delay start time is set to 0.5 seconds; if the adjustment characteristic is a level start characteristic, the delay start time is set to 1.2 seconds.
[0187] The logic for setting the delay shutdown duration includes: if the adjustment characteristic is an emergency stop characteristic, the delay shutdown duration is set to 0.5 seconds; if the adjustment characteristic is a slow stop characteristic, the delay shutdown duration is set to 1.0 seconds; and if the adjustment characteristic is a normal stop characteristic, the delay shutdown duration is set to 1.5 seconds.
[0188] Furthermore, the execution logic for the activation conditions includes:
[0189] Based on the adjustment characteristic determination result, the PLC parses the valve type selection signal from the 3-bit code and converts the selection signal into the corresponding PLC output point enable signal through the decoding circuit. For example, the emergency start characteristic code is 001. After decoding, Y0 and Y1 are enabled. Y0 and Y1 correspond to the main control and standby of two fast-opening characteristic valves. The PLC outputs a pre-opening instruction to Y0 and disables the output of Y1, that is, the standby valve is interlocked.
[0190] Furthermore, the execution logic of the self-locking condition includes:
[0191] After the PLC detects the motor operation confirmation signal, it sets the auxiliary relay M100. Taking the Y0 channel as an example, the normally open contact of M100 is connected in parallel in the opening condition judgment circuit to form a self-locking circuit. At the same time, the PLC locks the output value of the current expansion interface and prevents the PID calculation result from updating the output value, thereby keeping the motor drive voltage constant and thus keeping the valve opening area unchanged.
[0192] Furthermore, the execution logic for the interlock condition includes:
[0193] After the PLC detects that the main control valve is open, it sets the interlock flag M200 of the corresponding standby valve. Taking the standby valve with quick-opening characteristics as an example, the normally closed contact of M200 is connected in series in the opening condition judgment circuit of the standby valve to cut off the opening path of the standby valve. At the same time, the PLC keeps the output value of the expansion interface to the standby valve output channel zero, so that the standby valve motor has no driving voltage.
[0194] The logic for setting the switching conditions between the main control valve and the corresponding standby valve includes:
[0195] If the opening deviation of the main control valve is greater than the preset deviation, the corresponding standby valve will be switched.
[0196] The logic for setting switching conditions between main control valves includes:
[0197] If the currently operating valve is the master control valve and a switching signal is received, then switch to the next master control valve;
[0198] The logic for setting the switching conditions between the standby valve and the main control valve includes:
[0199] If the currently operating valve is a standby valve and a switching signal is received, then switch to the next main control valve.
[0200] Furthermore, the preset deviation is a fixed parameter set in the PLC program and stored in the data register D500. The default value is 5% of the rated valve opening area. That is, when the valve opening deviation is greater than 5% of the valve opening area, the switching is triggered.
[0201] The calculation logic for valve opening area deviation includes: the PLC converts the actual valve opening area through encoder feedback value, and the difference between the actual valve opening area and the target valve opening area is calculated to obtain the absolute deviation. If the ratio of the absolute deviation to the rated valve opening area is greater than 5% of the rated valve opening area, the switching condition is met.
[0202] Furthermore, the enabling logic for the main control valve includes:
[0203] The PLC internally configures a ring pointer register D510, with an initial value of 1, corresponding to the main control of linear characteristic valves. After a switching signal is triggered, the pointer value is incremented by 1; if it exceeds 3, it wraps back to 1. A pointer value of 1 corresponds to the main control of linear characteristic valves, 2 to the main control of equal percentage characteristic valves, and 3 to the main control of fast-opening characteristic valves. The PLC decodes the pointer value and enables the corresponding PLC output point to realize the sequential switching between the main control valves.
[0204] The logic for setting the feedforward compensation amount includes:
[0205] Based on the deviation of the valve opening area of the currently executed valve, and combined with the correspondence between the electrical parameters of the drive motor and the opening area of the currently executed valve, the feedforward compensation voltage is obtained and denoted as the feedforward compensation amount.
[0206] The logic for setting the feedback compensation amount includes:
[0207] The actual flow rate during the first time period is detected, and the difference between the adjustment amount and the actual flow rate is calculated. Based on the correspondence between the flow rate and the valve opening area, the valve opening area corresponding to the difference is obtained. Combining the correspondence between the electrical parameters of the drive motor and the valve opening area currently being executed, the post-compensation voltage is obtained and recorded as the feedback compensation amount.
[0208] The setting logic for the empirical parameters of a PID controller includes:
[0209] Obtain the fluid type and its historical PID parameters. Set the average value of the historical PID parameters as the empirical parameters, which include the proportional coefficient, integral coefficient, and derivative coefficient.
[0210] Furthermore, the valve opening area deviation is expressed as the area difference obtained through testing, resulting from adjusting the valve opening area by 0.001 square meters.
[0211] Furthermore, the electrical parameters of the drive motor are expressed as the input voltage;
[0212] The relationship between the electrical parameters of the drive motor and the currently executed valve opening area is expressed as the voltage value required when the drive motor adjusts any value of the currently executed valve opening area.
[0213] Furthermore, the correspondence between the electrical parameters of the drive motor and the valve opening area is a two-dimensional lookup table pre-stored in the PLC data storage area, occupying register addresses D1000~D1999;
[0214] The PLC obtains the required adjustment of the drive voltage increment based on the valve opening area currently being executed and a two-dimensional lookup table, which is the feedforward compensation amount.
[0215] Furthermore, the historical PID parameters are stored in the PLC's EEPROM memory area, occupying register addresses D2000~D2099. Each fluid type occupies 10 registers (including 3 historical values each for Kp, Ki, and Kd, and a timestamp). When the PLC powers on, it reads this area, calculates the average value of historical parameters for the same type of fluid, and writes it into the PID function block as the initial empirical parameters. During operation, after each adjustment is completed, the PLC adds the final PID parameters used to the historical record and updates the average value.
[0216] Furthermore, the feedforward compensation voltage is generated in real time based on the actual flow feedback before the valve regulation is executed, and the input voltage is regulated again after the valve regulation is executed.
[0217] The logic of the first adjustment includes:
[0218] Determine if the adjustment property is set to start;
[0219] If so, set the delay start duration to the new timing threshold of the timer, and set the sum of the delay start duration and the adjustment duration to the new timing threshold of the timer.
[0220] If not, the delay shutdown duration is set as the new timing threshold of the timer, and the delay shutdown duration and adjustment duration are set as the new timing threshold of the timer.
[0221] Furthermore, when the timer's timing value reaches the timing threshold, the corresponding start or stop action will be executed.
[0222] Furthermore, the timer is a built-in soft component of the PLC used to control the delay time of a single start / stop action. After the timer ends, the output contact action is triggered, thus triggering a state transition.
[0223] The timer is an accumulated counter implemented in the PLC program using a data register. It is used to control the total duration of the entire adjustment process. After the timer ends, it outputs a completion signal to trigger the end of the adjustment.
[0224] Furthermore, the PLC adds the delay start time (e.g., 0.5 seconds) to the adjustment time (e.g., 10 seconds) to get 10.5 seconds, which is then converted into a timer counting unit. If the PLC scan cycle is 5ms, the count will be 2100 times. 2100 is written to the timer's data register D100. When the start action begins, D100 starts to count down, decreasing by 1 every scan cycle. When it reaches 0, a completion signal is output.
[0225] Fluid parameters include flow velocity, pressure difference, and fluid density;
[0226] The adjustment parameter is expressed as the valve opening area;
[0227] Methods for obtaining adjustment parameters include:
[0228] Obtain the fluid flow rate when the valve is fully open, and record it as the rated flow rate;
[0229] The valve opening area is obtained based on the rated flow rate, pressure difference, and fluid density, and is recorded as the regulating parameter.
[0230] Furthermore, the expression for calculating the valve opening area is as follows:
[0231] ;
[0232] in, Let be the valve opening area. For pressure difference, For fluid density, Rated flow rate;
[0233] The pressure difference is represented by the real-time difference between the upstream and downstream pressure measurement points, which is collected by the pressure transmitter and sent to the PLC after A / D conversion.
[0234] Furthermore, based on the timing threshold and adjustment parameters of the timer, the average control area is calculated. Using the average control area as the control quantity, the valve opening area of the average control area is adjusted at each timer interval. When the timer reaches the timing threshold, the control process is completed.
[0235] The second adjustment refers to adjusting the empirical parameters of the PID controller;
[0236] More preferably, the second adjustment is executed based on the control logic after the first adjustment.
[0237] The second adjustment's setting logic includes:
[0238] The average control area corresponding to the new timing threshold is obtained by acquiring the adjustment parameters. Based on the average control area, the electrical parameters of the drive motor are obtained. Based on the electrical parameters of the drive motor, the empirical parameters are adjusted, and the original empirical parameters are replaced with the adjusted empirical parameters.
[0239] Furthermore, let's illustrate this with an example of the average controlled area, for instance, where the control parameter is... Current area The timing threshold is 2100 times.
[0240] but The average control area is adjusted by the PLC outputting a drive voltage adjustment through the expansion interface once per scan cycle, so that the valve opening area adjustment amount is the average control area, until the timer returns to zero.
[0241] Furthermore, the PLC matches the corresponding input voltage according to the lookup table, records it as the compensation voltage, and adjusts the empirical parameters based on the compensation voltage.
[0242] Furthermore, the logic for adjusting the empirical parameters includes: obtaining the current input voltage, calculating the ratio of the original empirical parameter to the current input voltage, calculating the product of each ratio and the compensation voltage; each product is the feedback compensation amount; and summing the product with the corresponding original empirical parameter, setting each sum as the adjusted empirical parameter.
[0243] In the first embodiment, the reactor needs to inject raw material A (linear flow characteristic pipeline) and raw material B (equal percentage flow characteristic pipeline) in a precise ratio. The reaction process needs to be rapidly heated to the set temperature and then kept at a stable temperature. Finally, the temperature is slowly lowered and the material is discharged. The system adopts the PLC-controlled fluid automation regulation system of this application; AC represents alternating current and DC represents direct current.
[0244] The connection relationships of the main control valve drive channel in raw material pipeline A include:
[0245] PLC digital output Y0, intermediate relay KA1 coil (DC24V), KA1 normally open contact, AC contactor KM1 coil A1 (AC220V), KM1 coil A2, control power supply neutral line N;
[0246] KM1 main contact input terminals L1 / L2 / L3, lower port of main circuit breaker QF1, upper port of branch circuit breaker QF2; lower port of QF2, KM1 main contacts, inverter FR1 power input terminal U / V / W; FR1 output terminal, A raw material main control valve motor stator winding U / V / W;
[0247] FR1 control terminal 0~10V+, expansion interface CH1 VOUT terminal; FR1 control terminal COM, expansion interface CH1 COM terminal;
[0248] Motor shaft end encoder A phase, PLC high-speed counter input X0; B phase, X1; Z phase, X2; +5V, PLC internal 5V power supply; GND, PLC common terminal COM;
[0249] KM1 auxiliary normally open contact, PLC digital input X10 (high level is active), to provide feedback on the motor running status;
[0250] The connection relationships of the standby valve drive channel in raw material pipeline A include:
[0251] PLC digital output Y1, intermediate relay KA2 coil, KA2 normally open contact, AC contactor KM2 coil, control power supply; the rest are connected to the main control channel, FR2 is a backup frequency converter.
[0252] Set the injection volume of raw material A to be The adjustment time is set to 600 seconds, and the injection volume of raw material B is... The adjustment time is 600 seconds. The touchscreen will adjust the amount ( The settings and adjustment duration (600 seconds, 600 seconds) are sent to the PLC via RS-232 serial port and stored in data registers D200~D203;
[0253] The PLC calculates the adjustment rate of raw material A as follows: According to the valve flow characteristic table, the rated flow rate of a linear valve at 50% of its rated opening area is... The adjustment rate is 12 times the rated flow rate / minute, which translates to a valve opening change rate of 12% / min, or 0.2% / s. Since this is less than the flat opening threshold of 10% / s, raw material A is determined to have flat opening characteristics.
[0254] When the valve for raw material B is at 50% of its rated opening area, the regulating rate is 12 times, and it is therefore determined to have a smooth opening characteristic.
[0255] Delayed start duration is 1.2 seconds, timer T0 threshold K120, delayed shutdown duration is 1.5 seconds, timer T1 threshold K150;
[0256] The PLC writes the T0 threshold K120 into the timer T0 setting register and the T1 threshold K150 into the timer T1 setting register.
[0257] The timer threshold is 601.2 seconds, the PLC scan cycle is set to 5ms, the count is 120240 times, and the data is written to the timer data register D100.
[0258] The PLC queries the status of the main control valve for raw material A. Digital input X10 is low (motor stopped), the encoder pulse count is zero, the interlock flag M200 (interlock for the spare valve of raw material A) is reset, and the fault flag M300 is also reset. If all four conditions are met, the activation condition is established. Therefore, the PLC sets Y0, energizes the KA1 coil, closes the KA1 contact, energizes the KM1 coil, closes the KM1 main contact, and energizes FR1. Simultaneously, the interlock flag M200 for the spare valve of raw material A is set, disabling Y1 output.
[0259] T0 starts counting in 10ms increments. During the counting period, the PLC outputs a 0~10V voltage to FR1 through the expansion interface CH1 based on the current value of T0: 0~0.4 seconds output 0V (motor stationary), 0.4~0.8 seconds output 3.3V (motor speed 500rpm), 0.8~1.2 seconds output 6.7V (motor speed 1000rpm), and 1.2 seconds reaches 10V (motor speed reaches rated speed 1400rpm).
[0260] When the T0 counter reaches K120 (1.2 seconds), the output contact is activated. The PLC changes the status word of the main control valve motor for raw material A from pending start to running and sends a start completion signal to the confirmation module.
[0261] Timer D100 starts decreasing from 120240, decreasing by 1 every 5ms. Each time it decreases by 1, the PLC performs an incremental control of the valve opening area.
[0262] According to Bernoulli's equation, the target flow rate of raw material A is... Pressure difference 0.2 MPa, density The target opening area was calculated. The encoder has 2048 pulses / revolution, a reduction ratio of 50:1, a lead screw of 25mm, a valve displacement of 0.5mm per motor revolution, a full stroke of 50mm corresponding to 100 revolutions, a total encoder pulse count of 204800 pulses, a current pulse count of 81920, corresponding to an opening degree of 40% and an opening area of 0.00328m²; the average control area is...
[0263] ; PLC looks up the two-dimensional lookup table (D1000~D1999).
[0264] The corresponding voltage increment of 0.0005V is accumulated to the current output value and then output through the expansion interface;
[0265] The PLC collects pressure and flow data every 100ms via an extended interface; for example, the sampling result at 100ms is: upstream pressure 0.82MPa, downstream pressure 0.62MPa, pressure difference 0.20MPa; flow rate... fluid density The current valve opening area Current opening area With the goal The deviation is large, so the PLC calculates the updated average control area value;
[0266] Based on area deviation The pre-compensation voltage is found to be 0.05V according to the two-dimensional lookup table; the actual flow rate... With target traffic The area deviation is obtained by inverse solution of Bernoulli's equation. From the table, the post-compensation voltage is found to be 0.03V.
[0267] Timer D100 decrements to 0, outputting a completion signal. The PLC determines that the raw material A control process is complete and the valve opening area has reached the target value. Traffic is stable If a stop signal is received at this time, the PLC executes the termination logic: if the shutdown condition is met (motor is running, no fault), it is determined to be a flat stop characteristic, the T1 threshold K150 (1.5 seconds), during the T1 count, the extended interface outputs voltage, the motor stops after 1.5 seconds, the status word is rewritten to "off", and the interlock flag M200 is released.
[0268] Furthermore, the various thresholds are explained below:
[0269] The first value is When the adjustment rate (absolute value of adjustment amount / adjustment time) is less than or equal to 0.5, the system is judged to be in slow adjustment condition. This value is set based on engineering experience and corresponds to scenarios such as fine batching and slow heating in chemical production, requiring valves to open slowly to avoid fluid impact.
[0270] The second value is When the adjustment rate is greater than 2.0, the system is judged to be in a rapid adjustment condition. This value corresponds to scenarios such as emergency pressure relief and rapid shut-off, requiring the valve to respond quickly to ensure system safety.
[0271] When the rate is greater than the first value and less than or equal to the second value, it is a normal adjustment condition, which is suitable for flow and pressure control in normal production processes.
[0272] Emergency start delay of 0.1 seconds (K10): In emergency start conditions, although a fast response is required, a delay of 50~100ms is still needed to avoid the contactor bounce period and prevent arc reignition caused by the asynchronous operation of the PLC output signal and the mechanical action of the contactor.
[0273] Slow start delay of 0.5 seconds (K50): For the nonlinear flow characteristics of valves with equal percentage characteristics, a 500ms gradual start time is given so that the process of the valve from 0% to the initial opening is smoothly matched with the flow curve, avoiding the flow step caused by sudden changes in opening.
[0274] 1.2-second delay for smooth start (K120): The linear valve is uniformly sensitive to changes in opening degree. The 1.2-second delay allows the motor speed to smoothly increase from 0 to the rated value, while allowing the PID controller to complete the initial parameter tuning.
[0275] Emergency stop delay of 0.5 seconds (K50): When a fast-opening valve is closed in an emergency, a 0.5-second delay allows the PLC to execute a pre-shutdown program, that is, to first reduce the valve from fully open to 50% before closing it completely, so as to avoid the instantaneous cut-off of high-speed fluid in the pipeline and the generation of water hammer pressure.
[0276] Slow stop delay of 1.0 second (K100): When the valve is closed at an equal percentage, the flow rate decreases exponentially with the opening degree. The 1.0 second delay matches the flow rate decay curve, ensuring that downstream process equipment has sufficient buffer time.
[0277] 1.5-second delay (K150): During the closing process of the linear valve, a 1.5-second delay, combined with the average control area algorithm, enables the valve opening to decrease linearly.
[0278] 5% Deviation Threshold: When the absolute deviation between the actual valve opening area and the target opening area exceeds 5% of the rated opening area, the main control valve is judged to be abnormal, such as valve core jamming or motor step loss, triggering a switch to the backup valve. This value takes into account both adjustment accuracy and false trigger probability. That is, if the threshold is too small, such as 1%, normal PID adjustment overshoot can trigger a false switch; if the threshold is too large, such as 10%, valve faults cannot be identified in time.
[0279] Specifically, by configuring the parallel integration of linear characteristic valves, equal percentage characteristic valves, and quick-opening characteristic valves, as well as the paired configuration of main control valves and standby valves, the system can automatically match the optimal valve type according to the operating conditions and seamlessly switch to the standby valve when the main control valve fails, ensuring continuous system operation. By configuring independent drive signal channels and status feedback loops for each valve, the system can achieve electrical isolation and independent control of six valves, avoiding signal crosstalk and linkage malfunctions. By calculating the regulation rate based on the regulation amount and regulation duration, and comparing the regulation rate with a preset threshold to determine six regulation characteristics (quick start, slow start, level start, quick stop, slow stop, and level stop), the system can automatically select the corresponding valve type and timing parameters according to the urgency of fluid regulation needs, achieving precise matching between regulation strategies and operating conditions.
[0280] Similar or identical parts between the various embodiments in this disclosure can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the description of the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment solution according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0281] Those skilled in the art will also recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.
[0282] The above description of the disclosed embodiments shows that the features described in the various embodiments of this disclosure can be substituted for or combined with each other, enabling those skilled in the art to implement or use this disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A PLC-controlled automated fluid regulation system, characterized in that, It includes a configuration module, a confirmation module, and a control module; The configuration module integrates different types of valves, sets control logic based on PLC, obtains fluid regulation requirements, and makes a first adjustment to the control logic based on the fluid regulation requirements. The confirmation module obtains adjustment parameters based on fluid parameters, and performs a second adjustment on the first adjusted control logic based on the adjustment parameters; The control module responds to the second adjusted control logic to regulate the fluid.
2. The PLC-controlled automated fluid regulation system as described in claim 1, characterized in that, Valve types include linear characteristic valves, equal percentage characteristic valves, and quick-opening characteristic valves; The configuration module's integration logic for different types of valves includes: By connecting two linear characteristic valves, two equal percentage characteristic valves, and two quick-opening characteristic valves in parallel, each valve is configured with an independent drive signal channel and status feedback loop. Among them, valves of the same type are connected in parallel, valves of different types are connected in parallel, and among the same type of valves, one valve is the main control valve and the other valve is the standby valve.
3. The PLC-controlled automated fluid regulation system as described in claim 1, characterized in that, Control logic includes start logic, stop logic, switching logic, and compensation logic; The initial logic includes the opening conditions, self-locking conditions, and delay start-up duration for each main control valve; The termination logic includes the closing conditions, interlocking conditions, and delayed shutdown duration for each main control valve; The switching logic includes the switching conditions between the main control valve and the corresponding standby valve, the switching conditions between main control valves, and the switching conditions between standby valves and main control valves; The compensation logic includes feedforward compensation, feedback compensation, and empirical parameters of the PID controller.
4. The PLC-controlled automated fluid regulation system as described in claim 1, characterized in that, Fluid regulation requirements include regulation amount and regulation duration; Based on the adjustment amount and adjustment duration, the adjustment characteristics are obtained, including rapid start characteristics, slow start characteristics, smooth start characteristics, rapid stop characteristics, slow stop characteristics, and smooth stop characteristics. Based on the regulation characteristics, the control logic is adjusted first, which means adjusting the switching logic.
5. The PLC-controlled automated fluid regulation system as described in claim 3, characterized in that, The logic for setting the activation conditions includes: If the regulating characteristic is rapid start, then the fast-opening valve is opened; if the regulating characteristic is slow start, then the equal percentage valve is opened; if the regulating characteristic is level start, then the linear valve is opened. The logic for setting the shutdown condition includes: If the regulating characteristic is an emergency stop characteristic, then close the quick-opening characteristic valve and the linear characteristic valve; if the regulating characteristic is a slow stop characteristic, then close the equal percentage characteristic valve and the linear characteristic valve; if the regulating characteristic is a level stop characteristic, then close the equal percentage characteristic valve and the quick-opening characteristic valve. The logic for setting the self-locking condition includes: Maintain the current valve opening area until a stop signal or a switching signal is received; The interlock condition setting logic includes: maintaining the current valve opening area until an opening signal or switching signal is received; The logic for setting the delayed startup duration includes: If the adjustment characteristic is a quick start characteristic, the delay start time is set to 0.1 seconds; if the adjustment characteristic is a slow start characteristic, the delay start time is set to 0.5 seconds; if the adjustment characteristic is a level start characteristic, the delay start time is set to 1.2 seconds. The logic for setting the delay shutdown duration includes: if the adjustment characteristic is an emergency stop characteristic, the delay shutdown duration is set to 0.5 seconds; if the adjustment characteristic is a slow stop characteristic, the delay shutdown duration is set to 1.0 seconds; and if the adjustment characteristic is a normal stop characteristic, the delay shutdown duration is set to 1.5 seconds.
6. The PLC-controlled automated fluid regulation system as described in claim 3, characterized in that, The logic for setting the switching conditions between the main control valve and the corresponding standby valve includes: If the opening deviation of the main control valve is greater than the preset deviation, the corresponding standby valve will be switched. The logic for setting switching conditions between main control valves includes: If the currently operating valve is the master control valve and a switching signal is received, then switch to the next master control valve; The logic for setting the switching conditions between the standby valve and the main control valve includes: If the currently operating valve is a standby valve and a switching signal is received, then switch to the next main control valve.
7. The PLC-controlled automated fluid regulation system as described in claim 3, characterized in that, The logic for setting the feedforward compensation amount includes: Based on the deviation of the valve opening area of the currently executed valve, and combined with the correspondence between the electrical parameters of the drive motor and the opening area of the currently executed valve, the feedforward compensation voltage is obtained and denoted as the feedforward compensation amount. The logic for setting the feedback compensation amount includes: The actual flow rate during the first time period is detected, and the difference between the adjustment amount and the actual flow rate is calculated. Based on the correspondence between the flow rate and the valve opening area, the valve opening area corresponding to the difference is obtained. Combining the correspondence between the electrical parameters of the drive motor and the valve opening area currently being executed, the post-compensation voltage is obtained and recorded as the feedback compensation amount. The setting logic for the empirical parameters of a PID controller includes: Obtain the fluid type and its historical PID parameters. Set the average value of the historical PID parameters as the empirical parameters, which include the proportional coefficient, integral coefficient, and derivative coefficient.
8. The PLC-controlled automated fluid regulation system as described in claim 4, characterized in that, The logic of the first adjustment includes: Determine if the adjustment property is set to start; If so, set the delay start duration to the new timing threshold of the timer, and set the sum of the delay start duration and the adjustment duration to the new timing threshold of the timer. If not, the delay shutdown duration is set as the new timing threshold of the timer, and the delay shutdown duration and adjustment duration are set as the new timing threshold of the timer.
9. The PLC-controlled automated fluid regulation system as described in claim 1, characterized in that, Fluid parameters include flow velocity, pressure difference, and fluid density; The adjustment parameter is expressed as the valve opening area; Methods for obtaining adjustment parameters include: Obtain the fluid flow rate when the valve is fully open, and record it as the rated flow rate; The valve opening area is obtained based on the rated flow rate, pressure difference, and fluid density, and is recorded as the regulating parameter. The second adjustment refers to adjusting the empirical parameters of the PID controller.
10. The PLC-controlled automated fluid regulation system as described in claim 1, characterized in that, The second adjustment's setting logic includes: The average control area corresponding to the new timing threshold is obtained by acquiring the adjustment parameters. Based on the average control area, the electrical parameters of the drive motor are obtained. Based on the electrical parameters of the drive motor, the empirical parameters are adjusted, and the original empirical parameters are replaced with the adjusted empirical parameters.
Citation Information
Patent Citations
A PLC control method and a PLC control system
CN119472491B
