Search

CN-121995834-A - Liquid collection system realizing multifunction, high precision and multiple modes by PLC control and program algorithm thereof

CN121995834ACN 121995834 ACN121995834 ACN 121995834ACN-121995834-A

Abstract

The invention discloses a liquid collecting system and a program algorithm thereof, wherein the liquid collecting system is controlled by a PLC (programmable logic controller) to realize multifunction, high precision and multiple modes, key components comprise a PLC controller, an upper computer system, an actuating mechanism and an auxiliary mechanism, the PLC controller consists of the PLC, the upper computer system comprises an HMI (human machine interface) and a central control system, the actuating mechanism mainly comprises a stepping motor controller, a stepping motor and a flow signal-pulse device, and the auxiliary mechanism comprises a sampling pump control system. In the discontinuous flowing water sample, the sampling time node and the interval time are set by a user, the PLC makes an algorithm decision, controls the stepping motor, combines signals to perform accurate sampling, and the system comprises a plurality of correction modes, so that the system is suitable for various sampling scenes, and the sampling efficiency and the sampling speed are different due to the precision. The base assembly uses mature electromechanical products on the economic cost, the optional auxiliary assembly improves sampling precision, and the original upper computer and database are utilized to further reduce the use cost.

Inventors

  • LIN ZHENKAI

Assignees

  • 潮州市桥东污水处理厂

Dates

Publication Date
20260508
Application Date
20241101

Claims (14)

  1. 1. The liquid collection system and the program algorithm thereof realize multifunction, high precision and multiple modes by PLC control, and are characterized in that the PLC controller, the upper computer system, the executing mechanism, the auxiliary mechanism and the key algorithm of the PLC program; The PLC is used for making an on-site operation decision and controlling the executing mechanism, and the RS485 is communicated with the industrial Ethernet and the upper computer system to save state data; The upper computer system comprises a human-machine-interface (HMI) and a central control room system, wherein the HMI is used for setting the system on site and providing a human-machine interaction interface, the central control room system is used for setting the system and the human-machine interaction interface, optional components of the upper computer system are a historical information database, and the MQTT Internet of things gateway equipment can further strengthen the system functionality; The actuating mechanism comprises a stepping motor controller, a stepping motor and a flow signal-pulse device, optional components of the actuating mechanism are a check device and a terminal electromagnetic valve, and the optional components of the actuating mechanism can further strengthen the sampling accuracy so as to resist abnormal interference; The auxiliary mechanism comprises a sampling pump control system, a pipeline, a sampling collection vessel, a power supply, a key, an indicator lamp and the like; The key algorithms of the PLC program comprise a primary sampling logic algorithm, a sampling time selection algorithm, a fault processing algorithm, a sampling correction algorithm and a manual control algorithm. The primary sampling logic algorithm is the operation logic control of daily sampling once, the sampling time selection algorithm is the algorithm logic control of the operation logic control of the automatic sampling once, the automatic time-to-time sampling can be matched with the starting time of a sampling pump to perform primary sampling, sampling failure is avoided, the fault processing algorithm is the algorithm logic for processing various faults in operation, the sampling correction algorithm is the control algorithm for correcting and quantitatively sampling in maintenance, the sampling accuracy can be improved, and the manual control algorithm is the control algorithm for debugging all functions of machine hardware.
  2. 2. The PLC control system for realizing the multifunctional, high-precision and multi-mode liquid collection and the program algorithm thereof according to claim 1, wherein the one-time sampling logic algorithm method of the PLC program is characterized in that for reversing a stepping motor, clearing the residual number, resetting the count, delaying the forward rotation for sampling, a flow signal-pulse device sends corresponding pulses to the sensed water quantity, the PLC stops the stepping motor when sensing that the pulse number reaches a target value, the corresponding operation is stopped when the sampling timeout occurs, the one-time sampling time is counted from start to end in the PLC, and the time T 1 is obtained through relevant preset operation and is used as the timeout maximum value reference of the next sampling.
  3. 3. The liquid collection system and its program algorithm for realizing multiple functions, high precision and multiple modes according to claim 1, wherein the method 1 (denoted as F 1 ) for selecting sampling time of the PLC program is characterized in that the PLC counts time according to time interval set by user, the time reaches to sample not immediately, the ready sampling signal S Preparation of the mark is set, and the signal S Water flow sensing ,S Water flow sensing of the detecting pipeline water flow sensor triggers a motor sampling program to execute if there is a signal.
  4. 4. The liquid collection system and the program algorithm thereof for realizing the multifunction, high precision and multiple modes by the PLC control according to claim 1 are characterized in that a sampling time selection decision method 2 (marked as F 2 ) of the PLC program is as follows, the PLC counts according to a time interval set by a user, the sampling is not performed immediately when the time reaches, a set preparation sampling signal S Preparation of the mark is set, a rising edge of a signal S Water flow sensing of a pipeline water flow sensor is detected, if the rising edge of the signal S Water flow sensing exists, the execution of a motor sampling program is triggered, and the operation of a sampling pump at intervals can be avoided and stopped in the sampling process.
  5. 5. The liquid collection system and its program algorithm for realizing multiple functions, high precision and multiple modes by PLC control according to claim 1, wherein the optional selection decision method 3 (denoted as F 3 ) for sampling time of the PLC program is as follows, the PLC counts time according to time interval set by user, the sampling is not performed immediately when time arrives, the ready sampling signal S Preparation of the mark is set, how much time T 2 is left for the sampling pump to run at this stage is detected, if T 1 >T 2 , the execution of the one-time motor sampling program is triggered, the mode is more reliable and sampling failure caused by stopping the sampling pump in the sampling process can be prevented in a compact time interval.
  6. 6. The liquid collecting system and its program algorithm for realizing multiple functions, high precision and multiple modes by PLC control according to claim 1, wherein the sampling correction algorithm method of PLC program is as follows, after cutting into correction mode, user sets fluid volume V Volume setting to be corrected, presses button provided by PLC The stepper motor samples, can pause the observation halfway until reaching the set physical fluid volume V Volume setting , and obtains the flow pulse number N Pulse count for the set physical fluid volume, and the flow pulse number N Pulse count is calculated by the formula While the actual situation uses a more reliable formula The corresponding pulse number U Pulse number per unit volume per unit volume is obtained.
  7. 7. The PLC controlled multi-functional, high-precision and multi-mode fluid collection system and its program algorithm according to claim 1, wherein when the actual sampling is required after the calibration, the formula U Total pulse count =U Pulse number per unit volume ×V Setting for each sample +U Manual pulse correction is used to further increase the accuracy, where V Setting for each sample is the volume number of the user set point, and U Manual pulse correction is offset from the details obtained by the user according to experience.
  8. 8. The PLC controlled multifunctional, high-precision and multi-mode liquid collection system and its program algorithm according to claim 1, wherein the PLC controller is used for on-site operation decision and control of the actuator, and the RS485 and industrial ethernet communicate with the upper computer system to save status data. The PLC controlled multi-functional, high-precision and multi-mode liquid collection system and its program algorithm according to claim 1, wherein the upper computer system comprises a human-machine HMI, a central control room system.
  9. 9. The PLC controlled multifunctional, high-precision and multi-mode liquid collection system and its program algorithm according to claim 1, wherein the reference signal S Water flow sensing is a system sampling timing important mark, and the signal can be transmitted to the PLC of the sampling device by a hard wire or by the sampling pump control system by the sensing signal of the pipeline, and then transmitted to the PLC of the sampling device by the on-site touch screen through an industrial network.
  10. 10. The PLC controlled multi-functional, high-precision and multi-mode liquid collection system and a program algorithm thereof according to claim 1, wherein the check valve of the optional device is a device near the tail end of the sampling pipeline of the sampling device, which can effectively prevent residual water in the pipeline from flowing to the collection bottle after one sampling is finished, so that the sampling is inaccurate.
  11. 11. The PLC controlled multifunctional, high-precision and multi-mode liquid collection system and a program algorithm thereof according to claim 1, wherein the electromagnetic valve at the terminal of the optional device is an electronic device of the sampling device, wherein the tail end of the sampling pipeline is closest to the collecting bottle, the PLC is opened when the operation of a primary sampling program is started, and is closed when the sampling is ended, so that the residual water in the pipeline is further prevented from flowing to the collector, and the sampling is inaccurate.
  12. 12. The PLC controlled multi-functional, high-precision and multi-mode liquid collection system and its program algorithm according to claim 1, wherein the stepper motor controller and stepper motor of the actuator can be market mature products, the economic benefit is good, and the precision of high-value products can be realized with general products.
  13. 13. The PLC controlled multifunctional, high-precision and multi-mode liquid collection system and its program algorithm according to claim 1, wherein the flow signal-pulse device is a market-mature product, the economic benefit is good, and the specific model is selected according to the need; The PLC control system for realizing the multifunctional, high-precision and multi-mode liquid collection system and the program algorithm thereof according to claim 1 are characterized in that the auxiliary mechanism comprises a sampling pump control system, a pipeline, a sampling collection vessel, a power supply, keys, an indicator light and the like, and the PLC control system for realizing the multifunctional, high-precision and multi-mode liquid collection system and the program algorithm thereof according to claim 1 is characterized in that an optional component of an upper computer system is a historical information database for providing management and historical traceability; The PLC controlled multi-functional, high-precision and multi-mode fluid collection system and its program algorithm according to claim 1, wherein the optional component is an MQTT internet of things gateway device providing remote control monitoring capability.
  14. 14. The PLC controlled multifunctional, high-precision and multi-mode liquid collection system and its program algorithm according to claim 1, wherein the raw water signal sensor is a device mounted on the raw water collection device, senses whether the raw water collection device is full, prevents continuous sampling of low raw water liquid level, records traceability of sampling overtime fault causes, and facilitates troubleshooting.

Description

Liquid collection system realizing multifunction, high precision and multiple modes by PLC control and program algorithm thereof Technical Field The invention relates to the fields of control technology, motor control and sensors, in particular to a device capable of controlling peripheral devices by using a PLC at low cost and realizing precise sampling and a PLC algorithm system. Background The more closely sampled end product in the existing market has several limitations in terms of use: firstly, because of higher requirements on objective environments of sampling sites, such as stable water quantity, continuous liquid level maintenance of raw water for sampling, and the like, objective reasons cannot be met in most situations; Secondly, in order to realize more accurate sampling, the multi-purpose servo motor of the existing system is matched with a liquid sensor, so that the cost is high, the equipment volume is large and the maintenance economy is high; and thirdly, most devices only use the liquid sensor to perform timing sampling, namely, the liquid sensor enters timing sampling by means of instantaneous liquid sensing signals, so that the liquid sensor cannot accurately sample the liquid in certain scenes due to discontinuous and stable water flow, and the sampling amount is sometimes lower. And fourthly, in order to meet the requirements of the servo motor and various complex functions, some equipment is required to independently manufacture a special precise main board, the manufacturing cost and the maintenance cost are further improved, and the equipment is independently formed into a set of system, so that the combination with the site is not high. In practical application, the situation that the sampling raw water cannot be continuously sampled, the maintenance personnel have limited energy and cannot track the sampling equipment at any time is sometimes complicated, so that the sampling precision is required to meet the requirement, the equipment structure is not complicated, the basic function is available, the maintenance is not complicated, the low-price accessories can be directly replaced by faults, the communication control interface is independently arranged, and the whole equipment of the original field system can be accessed. Disclosure of Invention The invention provides a liquid collection system and a program algorithm thereof, which are controlled by a PLC to realize multiple functions, high precision and multiple modes, can effectively solve the problems pointed out by the background technology, can reduce the component composition cost, and has a space for extending and retracting functions according to the use requirement. The PLC control system for realizing the multifunctional, high-precision and multi-mode liquid acquisition and the program algorithm thereof comprise hardware and software algorithms, wherein the hardware comprises a PLC controller, an upper computer system, an executing mechanism and an auxiliary mechanism, and the algorithm comprises a correction algorithm, a one-time sampling logic algorithm and a timing sampling decision. The PLC is mainly used as a control core for carrying out logic operation and controlling the motion system and carrying out communication and information interaction on the upper system. The upper computer is mainly a field HMI human-machine interface and a central control room system and is used for human-machine interaction and information history storage, and the optional components are a history information database and an MQTT Internet of things gateway device. The executing mechanism mainly comprises a stepping motor controller, a stepping motor and a flow signal-pulse device, is of a field sampling core mechanical structure, and comprises optional components including a non-return device, a terminal electromagnetic valve and a raw water sampling signal sensor; The stepping motor controller in the executing mechanism controls the movement direction and speed of the stepping motor, the stepping motor rotates reversely to clean residual wastewater of the sampling tube, the stepping motor rotates positively to sample, and the flow signal-pulse device is a sampling quantitative feedback signal and can control the quantitative sampling; The above products are mature products in the market, so that the product cost can be reduced, and the equipment economy can be improved. The auxiliary mechanism comprises a sampling pump control system, a pipeline, a sampling collecting vessel, a power supply, a key and an indicator lamp, and is an auxiliary accessory for realizing functions, wherein the pipeline is a wearing part which needs frequent inspection and timed replacement by maintenance personnel. The algorithm mainly comprises a correction algorithm, a primary sampling logic algorithm and a timing sampling decision, wherein the correction algorithm is used for maintenance personnel to check abnormality at regular time, the primary sampl