Control method compatible with electric and pneumatic blanking valves, valve controller and system

Through the combination of microcontroller and gate-level circuits, the problem that the valve controller in the prior art is not compatible with electric and pneumatic discharge valves is solved, real-time control and self-locking functions of different types of valves are realized, and the real-time performance of the system is improved and reliability.

CN118979989APending Publication Date: 2024-11-19SHENZHEN SHUYING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411101079.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

In the prior art, the valve controller is not compatible with electric and pneumatic discharge valves, resulting in poor real-time performance, inadequate valve switch or invalid switch signal, and it is difficult to restore the original state by itself.

Method used

Through the combination of microcontroller, control circuit and drive module, the action is determined according to the type of valve being accessed, and the sensor signal is received and the control signal is output to control electric or pneumatic valves to achieve compatibility and real-time.

Benefits of technology

Compatible control of electric and pneumatic discharge valves is achieved, ensuring that the valve is in place signal is effective, avoiding valve position deviation, improving the system's real-time and reliability, and reducing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118979989A_ABST
    Figure CN118979989A_ABST
Patent Text Reader

Abstract

The invention discloses a control method, a valve controller and a system compatible with an electric blanking valve and a pneumatic blanking valve, and the control method comprises the steps: determining the type of a valve according to an access valve; if it is determined that the valve is an electric valve, the valve action is determined to be valve opening or valve closing according to the valve control instruction at the current moment, and multiple signals of a valve sensor are received; the signals comprise an opening in-place signal and a closing in-place signal; outputting a control signal according to the valve action, the plurality of signals and the valve type to control the electric valve; if it is determined that the valve is a pneumatic valve, the pneumatic valve is controlled to be opened or closed according to the valve control instruction at the current moment; the valve controller comprises a microcontroller, a control circuit and a driving module; the technical scheme provided by the invention has compatibility, can be compatible with an electric valve and a pneumatic valve, can control different types of valves without replacing related controllers or hardware circuit boards, and has real-time performance and reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of logic control, and in particular to a control method, a valve controller and a system for compatible electric and pneumatic discharge valves. Background Art

[0002] In the intelligent livestock scene, the automatic feeding valve is a key component of feeding. The automatic feeding valve is controlled by the main controller to realize the function of opening the valve for feeding on a scheduled basis or as planned. In actual applications, common automatic feeding valves are pneumatic and electric. Pneumatic valves are simple to control, but require an air compressor to provide an air source; while electric valves are more complex to control, but do not require an air compressor and the on-site wiring is simple.

[0003] In the prior art, the start and stop of the electric valve motor is controlled by pure software. Reasons such as long polling time and too fast valve speed will lead to poor real-time performance. Insufficient real-time performance will cause the valve to not be opened or closed, or the switch-in-place signal will be invalid. Due to external factors such as interference and vibration, the valve that was originally in place is offset, and it is difficult to restore it to its original state using software control alone. In addition, for the same valve controller, it is possible to connect both an electric control valve and a pneumatic valve in different scenarios, but the existing traditional hardware circuits are not compatible with electric control valves and pneumatic valves. For the automatic feeding valve, the entire control unit that realizes the automatic feeding kinetic energy is on the valve controller. Therefore, it is urgent to explore a valve controller that can be compatible with electric valves and pneumatic valves, while having both real-time and reliability. Summary of the invention

[0004] The present invention provides a control method, a valve controller and a system that are compatible with electric and pneumatic discharge valves, so as to solve the technical problem that the valve controller in the prior art is not compatible with electric valves and pneumatic valves.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a control method for a compatible electric and pneumatic discharge valve, comprising:

[0006] Determine the valve type according to the access valve;

[0007] If it is determined that the valve is an electric valve, the valve action is determined to be opening or closing the valve according to the valve control instruction at the current moment, and multiple signals from the valve sensor are received; the signals include an open position signal and a closed position signal;

[0008] Output a control signal according to the valve action, the multiple signals and the valve type to control the electric valve;

[0009] If it is determined that the valve is a pneumatic valve, the pneumatic valve is controlled to open or close according to the valve control instruction at the current moment.

[0010] The embodiments of the present invention have the following beneficial effects:

[0011] An embodiment of the present invention provides a control method for compatible electric and pneumatic discharge valves. First, the valve type is determined according to the connected valve; if it is determined that the valve is an electric valve, the valve action is determined according to whether the valve is currently opened or closed, and the signal of the valve sensor is received, and then a control signal is output according to the valve action, the multiple signals and the valve type to control the valve; if it is determined that the valve is a pneumatic valve, it is determined whether the valve is currently opened or closed. If it is determined that the valve is open, the valve is controlled to be opened, otherwise, the valve is controlled to be closed. The control method for compatible electric and pneumatic discharge valves provided by the embodiment of the present invention is compatible and can be compatible with electric valves and pneumatic valves. For different types of valves, the valve can be controlled without replacing the relevant controller or hardware circuit board.

[0012] As a preferred solution, the control signal is output according to the valve action, the multiple signals and the valve type, specifically:

[0013] If it is determined at the current moment that the valve action is to open the valve;

[0014] When the open position signal is invalid and the close position signal is valid, determining to output the first control signal;

[0015] When the open position signal is invalid and the close position signal is invalid, determining to output the first control signal;

[0016] If it is determined at the current moment that the valve action is to close the valve;

[0017] When the open position signal is valid and the close position signal is invalid, determining to output the first control signal;

[0018] When the open position signal is invalid and the close position signal is invalid, it is determined to output the first control signal.

[0019] This preferred solution has the following beneficial effects:

[0020] This preferred solution is based on the valve type, the valve action and the multiple signals, the multiple signals including an open position signal and a closed position signal. When the valve type, valve action, open position signal and closed position signal are all preset signals, a first control signal is output.

[0021] As a preferred solution, the control method for compatible electric and pneumatic discharge valves further includes:

[0022] If it is determined at the current moment that the valve action is to open the valve;

[0023] When the open position signal is valid and the close position signal is valid, determining to output the second control signal;

[0024] When the open position signal is valid and the close position signal is invalid, determining to output a second control signal;

[0025] If it is determined at the current moment that the valve action is to close the valve;

[0026] When the open position signal is valid and the close position signal is valid, determining to output the second control signal;

[0027] When the open position signal is invalid and the close position signal is valid, it is determined to output the second control signal.

[0028] This preferred solution has the following beneficial effects:

[0029] This preferred solution is based on the valve type, the valve action and the multiple signals, the multiple signals including an open position signal and a closed position signal. When the valve type, valve action, open position signal and closed position signal are all preset signals, a second control signal is output.

[0030] The embodiment of the present invention further provides a valve controller compatible with electric and pneumatic discharge valves, which can execute any one of the control methods for compatible electric and pneumatic discharge valves described above, including: a microcontroller, a control circuit and a drive module;

[0031] Wherein, the microcontroller is connected to the control circuit and the valve; the control circuit is connected to the microcontroller and the driving module; and the driving module is connected to the control circuit and the valve.

[0032] The embodiments of the present invention have the following beneficial effects:

[0033] The embodiment of the present invention forms a valve controller compatible with electric and pneumatic discharge valves by connecting a microcontroller, a control circuit and a drive module. The control method for a compatible electric and pneumatic discharge valve can be executed as described in any one of the above. The valve type is first determined according to the connected valve; if it is determined that the valve is an electric valve, the valve action is determined according to whether the valve is currently opened or closed, and the signal of the valve sensor is received, and then a control signal is output according to the valve action, the multiple signals and the valve type to control the valve; if it is determined that the valve is a pneumatic valve, it is determined whether the valve is currently opened or closed. If it is determined that the valve is open, the valve is controlled to be opened, otherwise, the valve is controlled to be closed. The control method for a compatible electric and pneumatic discharge valve provided in the embodiment of the present invention is compatible and can be compatible with electric valves and pneumatic valves. For different types of valves, the valve can be controlled without replacing the relevant controller or hardware circuit board.

[0034] As a preferred solution, the microcontroller includes a first port, a second port, a third port and a fourth port;

[0035] Among them, the first port is used to output a valve type signal to the control circuit; the second port is used to receive an open position signal fed back by a valve sensor, and output the received open position signal to the control circuit; the third port is used to output a valve action signal to the control circuit; the fourth port is used to receive a closed position signal fed back by a valve sensor, and output the received closed position signal to the control circuit.

[0036] This preferred solution has the following beneficial effects:

[0037] In this preferred embodiment, the microcontroller includes a first port, a second port, a third port and a fourth port. The microcontroller can receive the open position signal and the closed position signal fed back by the valve sensor through the above four ports, and output the valve type signal, the valve action signal and the received open position signal and closed position signal to the control circuit through the four ports, so as to realize real-time detection of the valve position and control the valve according to the detected real-time signal so that the valve can reach the preset position.

[0038] As a preferred solution, the control circuit includes a first OR gate, a second OR gate, a third OR gate, a fourth OR gate, a first AND gate, a first inverter and a second inverter;

[0039] The first end of the first OR gate is connected to the first port of the microcontroller and the first end of the fourth OR gate; the second end of the first OR gate is connected to the second port of the microcontroller; the first end of the second OR gate is connected to the output end of the first OR gate; the second end of the second OR gate is connected to the third port of the microcontroller and the first end of the first AND gate; the input end of the first inverter is connected to the output end of the second OR gate; the first end of the third OR gate is connected to the output end of the first inverter; the second end of the third OR gate is connected to the output end of the first AND gate; the second end of the first AND gate is connected to the output end of the third OR gate; the input end of the second inverter is connected to the fourth port of the microcontroller; the second end of the fourth OR gate is connected to the output end of the second inverter; and the output end of the fourth OR gate is connected to the driving module.

[0040] This preferred solution has the following beneficial effects:

[0041] The control circuit in this preferred embodiment includes a first OR gate, a second OR gate, a third OR gate, a fourth OR gate, a first AND gate, a first inverter and a second inverter. The control circuit can receive the valve type signal, the valve action signal and the received open position signal and closed position signal output by the four ports of the microcontroller through connection with the microcontroller. The control circuit is a logic circuit composed of an OR gate, an AND gate and an inverter. The control circuit can perform logic operations on the received valve type signal, the valve action signal and the received open position signal and closed position signal, and finally output a determined level signal to the drive module. As a gate-level circuit, the control circuit can achieve a delay of nanoseconds, and its real-time performance is far superior to software and relay millisecond-level control. It can ensure that after the motor driving the valve stops, the arrival signal is still in a valid state, making this preferred solution real-time. At the same time, since the delay of the gate-level circuit is at the nanosecond level, the self-locking control of the electric valve can be achieved, that is, the electric valve can stop quickly and automatically after it is in place to avoid valve "offside", which also makes this preferred solution reliable. At the same time, the logic circuit of this preferred solution is a simple gate-level circuit with low cost, which improves the economy of the system and has good applicability and practicality.

[0042] As a preferred solution, the driving module is used to control the operation of the motor and the action of the solenoid valve; wherein the motor is used to control the electric valve, and the solenoid valve is used to control the pneumatic valve.

[0043] This preferred solution has the following beneficial effects:

[0044] In this preferred solution, the driving module can control the electric valve and the pneumatic valve by controlling the motor and the solenoid valve.

[0045] The embodiment of the present invention further provides a system compatible with electric and pneumatic feed valves, including a valve, a feed bin, a feed line, a feed line driver, a feeding terminal device, and any valve controller as described above;

[0046] Among them, the valve controller is connected to the valve; the valve is connected to the material line and the feeding terminal equipment; the material line is connected to the material line driver; and the material line driver is connected to the silo.

[0047] The embodiments of the present invention have the following beneficial effects:

[0048] The embodiment of the present invention forms a system compatible with electric and pneumatic feeding valves through valves, feed silos, feed lines, feed line drivers, feeding terminal equipment and any one of the valve controllers described above, which can realize automatic feeding in intelligent animal husbandry scenarios. It is compatible with electric valves and pneumatic valves. For different types of valves, the valves can be controlled without replacing the relevant controllers or hardware circuit boards. At the same time, it has real-time and reliability and good practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 : A flow chart of a control method for a compatible electric and pneumatic discharge valve provided in an embodiment of the present invention;

[0050] Figure 2 : It is a structural schematic diagram of a valve controller compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention;

[0051] Figure 3 : A circuit diagram of a valve controller compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention;

[0052] Figure 4 : A schematic diagram of a truth table (electric valve) of a control circuit of a valve controller compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention;

[0053] Figure 5 : A schematic diagram of a truth table (pneumatic valve) of a control circuit of a valve controller compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention;

[0054] Figure 6 : A schematic diagram of the structure of a system compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] In order to be compatible with electric valves and pneumatic valves, the embodiments of the present invention provide a control method, valve controller and system that are compatible with electric and pneumatic feeding valves, while also having practicality, real-time and reliability, further promoting intelligent animal husbandry applications.

[0057] Please refer to Figure 1 , Figure 1 A flow chart of a control method for a compatible electric and pneumatic discharge valve provided in an embodiment of the present invention. Figure 1 As shown, the control method for compatible electric and pneumatic discharge valves includes steps 101 to 104, each of which is specifically as follows:

[0058] Step 101: Determine the valve type according to the connected valve;

[0059] Step 102: If it is determined that the valve is an electric valve, determine the valve action as opening the valve or closing the valve according to the valve control instruction at the current moment, and receive multiple signals from the valve sensor; the signals include an open position signal and a closed position signal;

[0060] Step 103: outputting a control signal according to the valve action, the multiple signals and the valve type to control the electric valve;

[0061] Step 104: If it is determined that the valve is a pneumatic valve, the pneumatic valve is controlled to open or close according to the valve control instruction at the current moment.

[0062] In step 101, the valve type may be determined according to whether the connected valve is an electric valve or a pneumatic valve.

[0063] In step 102, when it is determined that the connected valve is an electric valve, the valve action is determined to be opening or closing the valve according to the valve control instruction at the current moment, and multiple signals from the valve sensor are received; the signals include an open position signal and a closed position signal.

[0064] The open position signal fed back by the valve sensor can reflect whether the valve is fully opened. When the valve is fully opened, that is, fully opened, the open position signal fed back by the valve sensor is valid, and when the valve is not fully opened, the open position signal fed back by the valve sensor is invalid.

[0065] The closed position signal fed back by the valve sensor can reflect whether the valve is fully closed. When the valve is fully closed, that is, completely closed, the closed position signal fed back by the valve sensor is valid, and when the valve is not fully closed, the closed position signal fed back by the valve sensor is invalid.

[0066] In step 103, after determining that the connected valve type is an electric valve, a control signal is output according to the valve action, the multiple signals and the valve type, specifically:

[0067] If it is determined at the current moment that the valve action is to open the valve;

[0068] When the open position signal is invalid and the close position signal is valid, determining to output the first control signal;

[0069] When the open position signal is invalid and the close position signal is invalid, determining to output the first control signal;

[0070] If it is determined at the current moment that the valve action is to close the valve;

[0071] When the open position signal is valid and the close position signal is invalid, determining to output the first control signal;

[0072] When the open position signal is invalid and the close position signal is invalid, determining to output the first control signal;

[0073] If it is determined at the current moment that the valve action is to open the valve;

[0074] When the open position signal is valid and the close position signal is valid, determining to output the second control signal;

[0075] When the open position signal is valid and the close position signal is invalid, determining to output a second control signal;

[0076] If it is determined at the current moment that the valve action is to close the valve;

[0077] When the open position signal is valid and the close position signal is valid, determining to output the second control signal;

[0078] When the open position signal is invalid and the close position signal is valid, it is determined to output the second control signal.

[0079] An embodiment of the present invention further provides a valve controller that is compatible with electric and pneumatic discharge valves, and can execute any of the steps of a control method for a compatible electric and pneumatic discharge valve as described above.

[0080] Please refer to Figure 2 , Figure 2 It is a schematic diagram of the structure of a valve controller compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention.

[0081] like Figure 2 As shown, the valve controller 100 compatible with electric and pneumatic discharge valves includes: a microcontroller 10, a control circuit 20 and a drive module 30;

[0082] The microcontroller 10 is connected to the control circuit 20 and the valve 40 ; the control circuit 20 is connected to the microcontroller 10 and the driving module 30 ; and the driving module 30 is connected to the control circuit 20 and the valve 40 .

[0083] Please refer to Figure 3 , Figure 3 A circuit diagram of a valve controller compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention.

[0084] like Figure 3 As shown, the MCU as the microcontroller 10 includes a first port, a second port, a third port and a fourth port;

[0085] Among them, the first port is used to output the valve type signal MODE_SEL to the control circuit 20; the second port is used to receive the open position signal OPEN_D fed back by the valve sensor, and output the received open position signal OPEN_D to the control circuit 20; the third port is used to output the valve action signal KG_SEL to the control circuit 20; the fourth port is used to receive the closed position signal CLOSE_D fed back by the valve sensor, and output the received closed position signal CLOSE_D to the control circuit 20.

[0086] Among them, the valve type signal MODE_SEL, the open position signal OPEN_D, the valve action signal KG_SEL and the close position signal CLOSE_D are all level signals;

[0087] When the valve type signal MODE_SEL is 0 (low level), it indicates that the currently connected valve is an electric valve; when the valve type signal MODE_SEL is 1 (high level), it indicates that the currently connected valve is a pneumatic valve;

[0088] When the fully opened signal OPEN_D is 0 (low level), it indicates that the fully opened state is valid and the current valve is fully opened. When the fully opened signal OPEN_D is 1 (high level), it indicates that the fully opened state is invalid and the current valve is not fully opened.

[0089] When the valve action signal KG_SEL is 0 (low level), it indicates that the valve is opened, and when the valve action signal KG_SEL is 1 (high level), it indicates that the valve is closed;

[0090] When the close position signal CLOSE_D is 0 (low level), it indicates that the close position is valid and the current valve is fully closed. When the close position signal CLOSE_D is 1 (high level), it indicates that the close position is invalid and the current valve is not fully closed.

[0091] like Figure 3 As shown, the control circuit 20 includes a first OR gate 1, a second OR gate 2, a third OR gate 4, a fourth OR gate 7, a first AND gate 5, a first inverter 3 and a second inverter 6;

[0092] The first end of the first OR gate 1 is connected to the first port of the microcontroller 10 and the first end of the fourth OR gate 7; the second end of the first OR gate 1 is connected to the second port of the microcontroller 10; the first end of the second OR gate 2 is connected to the output end of the first OR gate 1; the second end of the second OR gate 2 is connected to the third port of the microcontroller 10 and the first end of the first AND gate 5; the input end of the first inverter 3 is connected to the output end of the second OR gate 2; the first end of the third OR gate 4 is connected to the output end of the first inverter 3; the second end of the third OR gate 4 is connected to the output end of the first AND gate 5; the second end of the first AND gate 5 is connected to the output end of the third OR gate 4; the input end of the second inverter 6 is connected to the fourth port of the microcontroller 10; the second end of the fourth OR gate 7 is connected to the output end of the second inverter 6; the output end of the fourth OR gate 7 is connected to the driving module 30.

[0093] The control circuit 20 is a gate-level circuit, and its delay can be at the nanosecond level. Its real-time performance is far superior to software and relay millisecond-level control. It can ensure that after the motor driving the valve stops, the arrival signal is still in a valid state, making the technical solution of the present invention have real-time performance. At the same time, since the delay of the gate-level circuit is at the nanosecond level, the self-locking control of the electric valve can be achieved, that is, the electric valve can stop automatically and quickly after it is in place to avoid "offside" of the valve, and also make the technical solution of the present invention reliable.

[0094] The control circuit 20 performs logic operations according to the valve type signal MODE_SEL, the open position signal OPEN_D, the valve action signal KG_SEL and the closed position signal CLOSE_D output by the microcontroller 10 through the first OR gate 1, the second OR gate 2, the third OR gate 4, the fourth OR gate 7, the first AND gate 5, the first inverter 3 and the second inverter 6, and finally outputs the control signal RUN_CTL to the driving module 30.

[0095] The driving module 30 outputs a signal DRV_CTL to control the operation of the motor or the action of the solenoid valve according to the received control signal RUN_CTL; the motor can control the electric valve, and the solenoid valve can control the pneumatic valve.

[0096] The control signal RUN_CTL is a level signal; when the control signal RUN_CTL is 0 (low level), it indicates that the motor rotates or the solenoid valve is opened; when the control signal RUN_CTL is 1 (high level), it indicates that the motor stops or the solenoid valve is closed.

[0097] The signal DRV_CTL is the final control signal for the motor or solenoid valve.

[0098] For example, when the control signal RUN_CTL controls a relay, the signal DRV_CTRL is the output of the relay.

[0099] Please refer to the following Figure 4 and Figure 5 , Figure 4 A schematic diagram of a truth table (electric valve) of a control circuit of a valve controller compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of a truth table (pneumatic valve) of a control circuit of a valve controller compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention. Figure 4 and Figure 5 The control method of the compatible electric and pneumatic discharge valve is further described.

[0100] like Figure 3 As shown, the microcontroller 10, i.e., MCU, will obtain the open position signal OPEN_D and the close position signal CLOSE_D fed back by the valve sensor, and output the valve type signal MODE_SEL, the open position signal OPEN_D, the valve action signal KG_SEL, and the close position signal CLOSE_D to the control circuit 20 according to the valve type, valve action, and multiple signals received from the valve sensor. The control circuit 20 will perform logic operations according to the received valve type signal MODE_SEL, the open position signal OPEN_D, the valve action signal KG_SEL, and the close position signal CLOSE_D, and output the control signal RUN_CTL to control the driving module 30, thereby controlling the valve 40. In the process of controlling the valve 40 to open or close, the microcontroller 10 will continuously obtain the signal fed back by the valve sensor to detect the position of the valve 40. When the valve 40 is not in position, the microcontroller 10 will continue to send multiple signals to control the valve 40 until the valve 40 is in position.

[0101] Please refer to Figure 4 When the electric valve needs to be opened or closed, the microcontroller 10 will output Figure 4 The corresponding multiple signals in the truth table with a white background in the middle control the operation of the motor.

[0102] In actual application, if the valve is not fully opened, it will cause the feed to fail to be discharged or the feeding efficiency will be low, and if it is not fully closed, it will cause leakage. In the embodiment of the present invention, after the electric valve is in place, if the valve is not in place due to external interference, under the control of the valve controller, the electric valve can automatically return to the in-place state, ensuring the reliability of feeding.

[0103] When the electric valve is opened or closed, the microcontroller 10 will output Figure 4 The corresponding multiple signals in the truth table with a medium gray background control the motor to stop.

[0104] like Figure 4 As shown, if the valve action is determined to be opening the valve at the current moment;

[0105] When the open position signal is invalid and the close position signal is valid, the first control signal is determined to be output; that is, when the valve action signal KG_SEL is 0 (low level), the open position signal OPEN_D is 1 (high level) and the close position signal CLOSE_D is 0 (low level), the output control signal RUN_CTL is determined to be 0 (low level);

[0106] When the open position signal is invalid and the close position signal is invalid, the first control signal is determined to be output; that is, when the valve action signal KG_SEL is 0 (low level), the open position signal OPEN_D is 1 (high level) and the close position signal CLOSE_D is 1 (high level), the output control signal RUN_CTL is determined to be 0 (low level);

[0107] If it is determined at the current moment that the valve action is to close the valve;

[0108] When the open position signal is valid and the close position signal is invalid, the first control signal is determined to be output; that is, when the valve action signal KG_SEL is 1 (high level), the open position signal OPEN_D is 0 (low level) and the close position signal CLOSE_D is 1 (high level), the output control signal RUN_CTL is determined to be 0 (low level);

[0109] When the open position signal is invalid and the close position signal is invalid, the first control signal is determined to be output; that is, when the valve action signal KG_SEL is 1 (high level), the open position signal OPEN_D is 1 (high level) and the close position signal CLOSE_D is 1 (high level), the output control signal RUN_CTL is determined to be 0 (low level);

[0110] If it is determined at the current moment that the valve action is to open the valve;

[0111] When the open position signal is valid and the close position signal is valid, the second control signal is determined to be output; that is, when the valve action signal KG_SEL is 0 (low level), the open position signal OPEN_D is 0 (low level) and the close position signal CLOSE_D is 0 (low level), the output control signal RUN_CTL is determined to be 1 (high level); at this time, both the open position signal and the close position signal are valid, which is an abnormal state;

[0112] When the open position signal is valid and the close position signal is invalid, the second control signal is determined to be output; that is, when the valve action signal KG_SEL is 0 (low level), the open position signal OPEN_D is 0 (low level) and the close position signal CLOSE_D is 1 (high level), the output control signal RUN_CTL is determined to be 1 (high level);

[0113] If it is determined at the current moment that the valve action is to close the valve;

[0114] When the open position signal is valid and the close position signal is valid, the second control signal is determined to be output; that is, when the valve action signal KG_SEL is 1 (high level), the open position signal OPEN_D is 0 (low level) and the close position signal CLOSE_D is 0 (low level), the output control signal RUN_CTL is determined to be 1 (high level); at this time, both the open position signal and the close position signal are valid, which is an abnormal state;

[0115] When the open position signal is invalid and the closed position signal is valid, the second control signal is determined to be output; that is, when the valve action signal KG_SEL is 1 (high level), the open position signal OPEN_D is 1 (high level) and the closed position signal CLOSE_D is 0 (low level), the output control signal RUN_CTL is determined to be 1 (high level).

[0116] For electric valves, in one operation of opening the valve (or closing the valve), two actions are required to make the motor open once and close once; for the motor driving the electric valve, it is necessary to detect the open position (or close position) signal in real time and shut down the motor in real time when it is in place. If it is not timely, the rotating unloading baffle will not close tightly or open in place due to inertia, or after stopping, the feedback valid signal has become invalid, affecting subsequent operations.

[0117] Unlike electric valves, for pneumatic valves, the microcontroller only needs to act once in one valve opening (or valve closing) operation, that is, to open (or close) the solenoid valve. Therefore, for pneumatic valves, after one operation, the valve can always remain in place without considering real-time issues.

[0118] Please refer to Figure 5 When a pneumatic valve is connected, the opening of the pneumatic valve is not affected by the open position signal OPEN_D and the closed position signal CLOSE_D, and the pneumatic valve is opened or closed only according to the valve action signal KG_SEL.

[0119] The embodiment of the present invention also provides a system that is compatible with electric and pneumatic discharge valves. Figure 6 , Figure 6 It is a schematic diagram of the structure of a system compatible with electric and pneumatic discharge valves provided in an embodiment of the present invention.

[0120] like Figure 6 As shown, the system compatible with electric and pneumatic feeding valves includes valves, silos, feeding lines, feeding line drivers, feeding terminal equipment and any of the valve controllers described above;

[0121] Among them, the valve controller is connected to the valve; the valve is connected to the material line and the feeding terminal equipment; the material line is connected to the material line driver; and the material line driver is connected to the silo.

[0122] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0123] The embodiments of the present invention provide a control method, a valve controller and a system for compatible electric and pneumatic discharge valves.

[0124] 1. The control method for the compatible electric and pneumatic discharge valves first determines the valve type according to the connected valve; if the valve is determined to be an electric valve, the valve action is determined according to whether the valve is currently opened or closed, and the signal of the valve sensor is received, and then the control signal is output according to the valve action, the multiple signals and the valve type to control the valve; if the valve is determined to be a pneumatic valve, it is determined whether the valve is opened or closed at the current moment, if it is determined to be opened, the valve is controlled to be opened, otherwise, the valve is controlled to be closed; through the connection of the microcontroller, the control circuit and the drive module, a valve controller compatible with electric and pneumatic discharge valves is formed, and any one of the control methods for the compatible electric and pneumatic discharge valves described above can be executed, first according to the connected valve, the valve type is determined; if the valve is determined to be an electric valve, the valve action is determined according to whether the valve is currently opened or closed, and the signal of the valve sensor is received, and then the control signal is output according to the valve action, the multiple signals and the valve type to control the valve; if the valve is determined to be a pneumatic valve, it is determined whether the valve is opened or closed at the current moment, if it is determined to be opened, the valve is controlled to be opened, otherwise, the valve is controlled to be closed;

[0125] The present invention is compatible with electric valves and pneumatic valves. For different types of valves, the valves can be controlled without replacing the relevant controller or hardware circuit board.

[0126] 2. The control circuit described in the present invention comprises a first OR gate, a second OR gate, a third OR gate, a fourth OR gate, a first AND gate, a first inverter and a second inverter. The control circuit can receive the valve type signal, the valve control signal and the received open position signal and closed position signal outputted from the four ports of the microcontroller by connecting with the microcontroller. The control circuit is a logic circuit composed of an OR gate, an AND gate and an inverter. The control circuit can perform logic operations on the received valve type signal, the valve control signal and the received open position signal and closed position signal, and finally output a determined level signal to the driving module. The control circuit is a gate-level circuit, and its delay can be at the nanosecond level. Its real-time performance is far superior to the software mode and the millisecond-level control of the relay. It can ensure that the position signal is still in a valid state after the motor driving the valve stops, so that the technical solution of the present invention has real-time performance. Compared with the technical solution in which the start and stop of the electric valve motor is controlled by pure software, the valve switch is not in place or the switch position signal is invalid due to the long polling time and the excessively fast valve speed. The present invention has real-time performance and has outstanding progress.

[0127] 3. At the same time, since the time delay of the gate-level circuit of the present invention is at the nanosecond level, the self-locking control of the electric valve can be realized, that is, the electric valve can be quickly and automatically stopped after it is in place to avoid the valve "offside", and the present invention also has reliability, good applicability and practicality;

[0128] 4. Reduce the utilization of MCU resources by software and simplify the complexity of software design;

[0129] 5. At the same time, the logic circuit in the technical solution of the present invention is a simple gate-level circuit with low cost, which improves the economy of the system.

[0130] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A control method for compatible electric and pneumatic discharge valves, characterized in that: include: Determine the valve type according to the access valve; If it is determined that the valve is an electric valve, the valve action is determined to be opening or closing the valve according to the valve control instruction at the current moment, and multiple signals from the valve sensor are received; the signals include an open position signal and a closed position signal; Output a control signal according to the valve action, the multiple signals and the valve type to control the electric valve; If it is determined that the valve is a pneumatic valve, the pneumatic valve is controlled to open or close according to the valve control instruction at the current moment.

2. A control method for compatible electric and pneumatic discharge valves as claimed in claim 1, characterized in that: The outputting of the control signal according to the valve action, the multiple signals and the valve type is specifically: If it is determined at the current moment that the valve action is to open the valve; When the open position signal is invalid and the close position signal is valid, determining to output the first control signal; When the open position signal is invalid and the close position signal is invalid, determining to output the first control signal; If it is determined at the current moment that the valve action is to close the valve; When the open position signal is valid and the close position signal is invalid, determining to output the first control signal; When the open position signal is invalid and the close position signal is invalid, it is determined to output the first control signal.

3. A control method for compatible electric and pneumatic discharge valves as claimed in claim 2, characterized in that: Also includes: If it is determined at the current moment that the valve action is to open the valve; When the open position signal is valid and the close position signal is valid, determining to output the second control signal; When the open position signal is valid and the close position signal is invalid, determining to output a second control signal; If it is determined at the current moment that the valve action is to close the valve; When the open position signal is valid and the close position signal is valid, determining to output the second control signal; When the open position signal is invalid and the close position signal is valid, it is determined to output the second control signal.

4. A valve controller compatible with electric and pneumatic discharge valves, characterized in that: A control method for a compatible electric and pneumatic discharge valve as described in any one of claims 1 to 3 can be implemented, comprising: a microcontroller, a control circuit and a drive module; Wherein, the microcontroller is connected to the control circuit and the valve; the control circuit is connected to the microcontroller and the driving module; and the driving module is connected to the control circuit and the valve.

5. A valve controller compatible with electric and pneumatic discharge valves as claimed in claim 4, characterized in that: The microcontroller includes a first port, a second port, a third port and a fourth port; Among them, the first port is used to output a valve type signal to the control circuit; the second port is used to receive an open position signal fed back by a valve sensor, and output the received open position signal to the control circuit; the third port is used to output a valve action signal to the control circuit; the fourth port is used to receive a closed position signal fed back by a valve sensor, and output the received closed position signal to the control circuit.

6. A valve controller compatible with electric and pneumatic discharge valves as claimed in claim 4, characterized in that: The control circuit includes a first OR gate, a second OR gate, a third OR gate, a fourth OR gate, a first AND gate, a first inverter and a second inverter; The first end of the first OR gate is connected to the first port of the microcontroller and the first end of the fourth OR gate; the second end of the first OR gate is connected to the second port of the microcontroller; the first end of the second OR gate is connected to the output end of the first OR gate; the second end of the second OR gate is connected to the third port of the microcontroller and the first end of the first AND gate; the input end of the first inverter is connected to the output end of the second OR gate; the first end of the third OR gate is connected to the output end of the first inverter; the second end of the third OR gate is connected to the output end of the first AND gate; the second end of the first AND gate is connected to the output end of the third OR gate; the input end of the second inverter is connected to the fourth port of the microcontroller; the second end of the fourth OR gate is connected to the output end of the second inverter; and the output end of the fourth OR gate is connected to the driving module.

7. A valve controller compatible with electric and pneumatic discharge valves as claimed in claim 4, characterized in that: The driving module is used to control the operation of the motor and the action of the solenoid valve; wherein the motor is used to control the electric valve, and the solenoid valve is used to control the pneumatic valve.

8. A system compatible with electric and pneumatic discharge valves, characterized in that: It comprises a valve, a silo, a feed line, a feed line driver, a feeding terminal device and any valve controller as claimed in claim 4 to claim 7; Among them, the valve controller is connected to the valve; the valve is connected to the material line and the feeding terminal equipment; the material line is connected to the material line driver; and the material line driver is connected to the silo.