Control method, device, program product and cylinder control system for reversing valve
By setting up input and output functional modules, the reversing valve is controlled to realize universal cylinder control, solving the complex problem of different types of reversing valve control in the prior art, and achieving flexible and unified cylinder control.
Patent Information
- Application Number
- CN202411359847.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2044-09-27
AI Technical Summary
In the prior art, the control function of the general functional block on different types of reversing valves to cylinders cannot be realized, resulting in complex and inflexible control.
By setting up multiple input function modules and corresponding output function modules, the corresponding signal is enabled according to the target cylinder control function, the reversing valve switches to the target state, and the output function module feedbacks whether the state is normal, and realizes a general control method. for different types of reversing valves.
The unified control of different types of reversing valves is achieved, which simplifies the extension, retraction, placement and holding functions of the cylinder, and improves the flexibility and consistency of control.
Smart Images

Figure CN118881620B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of reversing valve control, and in particular to a control method and device for a reversing valve, a computer program product and a cylinder control system. Background Art
[0002] Cylinders are important actuators in automation equipment. The number of cylinders used in a single set of equipment ranges from a few to dozens of sets. The action is coordinated to realize the action process of the automation equipment. The action execution of the cylinder is realized by controlling the conduction of the reversing solenoid valve. According to the function and needs, pneumatic reversing solenoid valves are divided into two-position two-way, two-position three-way, two-position five-way, two-position four-way (two-position five-way and two-position four-way are divided into single solenoid control and double solenoid control), three-position five-way (three-position five-way is divided into three types: center seal, center drain, and center pressure). Different control valves have different control requirements.
[0003] There is no universal function block for PLC-based cylinder control in the prior art. When the PLC program calls a same function block, it can control the conduction of the solenoid valve when the cylinder executes different stages to realize the control function of different types of reversing valves on the cylinder. Summary of the invention
[0004] The main purpose of the present application is to provide a control method, device, computer program product and cylinder control system for a reversing valve, so as to at least solve the problem in the prior art that a general function block cannot realize the control function of different types of reversing valves on cylinders.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a control method for a reversing valve is provided, comprising: setting a plurality of input function modules and a plurality of corresponding output function modules, the input function modules are at least used to control the reversing valve to realize the corresponding cylinder control function, the output function modules are at least used to prompt the state of the reversing valve, the cylinder control function at least includes cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position; according to the target cylinder control function, inputting a signal enabling the corresponding input function module to control the reversing valve to switch to a target state, and outputting whether the state of the reversing valve is normal through the corresponding output function module, the target state is the state of the reversing valve to realize the target cylinder control function, and the target cylinder control function is any one of the cylinder control functions.
[0006] Optionally, the input function module includes an automatic function module, an automatic extension function module, an automatic retraction function module, an adjustment function module, a manual extension function module and a manual retraction function module, and the output function module includes an extension indication function module and a retraction indication function module. According to the target cylinder control function, a signal of the corresponding input function module is input to control the reversing valve to switch to the target state, and whether the state of the reversing valve is normal is output through the corresponding output function module, including: inputting a signal to enable the automatic function module and a signal to enable the automatic extension function module, so that the PLC program controls the reversing valve to switch to a first conduction state, and prompts the reversing valve whether it is in the first conduction state through the extension indication function module, the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere; inputting a signal to enable the automatic function module and a signal to enable the automatic extension function module, so that the PLC program controls the reversing valve to switch to a first conduction state, and prompts the extension indication function module whether the reversing valve is in the first conduction state, the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere; The signal of the automatic function module and the signal enabling the automatic retraction function module enable the PLC program to control the reversing valve to switch to the second conduction state, and prompt the retraction indication function module whether the reversing valve is in the second conduction state, wherein the second conduction state is that the upper cylinder of the cylinder is connected to the channel of the pressure pump and the lower cylinder of the cylinder is connected to the channel of the atmosphere; the signal enabling the adjustment function module and the signal enabling the manual extension function module are input, so that the first button controls the reversing valve to switch to the first conduction state, and prompts the extension indication function module whether the reversing valve is in the first conduction state; the signal enabling the adjustment function module and the signal enabling the manual retraction function module are input, so that the second button controls the reversing valve to switch to the second conduction state, and prompts the retraction indication function module whether the reversing valve is in the second conduction state.
[0007] Optionally, the input function module further includes an initialization function module, an initial extension function module and an initial retraction function module, and the output function module further includes an extension indication function module and a retraction indication function module. According to the target cylinder control function, a signal of the corresponding input function module is input to control the switching of the reversing valve to the target state, and the state of the reversing valve is output through the corresponding output function module. It also includes: inputting a signal to enable the initialization function module and a signal to enable the initial extension function module, controlling the switching of the reversing valve to the first conduction state, and outputting the signal of the reversing valve to the first conduction state through the corresponding output function module. The extension indication function module prompts whether the reversing valve is in the first conduction state, wherein the first conduction state means that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the atmosphere; the signal enabling the initialization function module and the signal enabling the initial retraction function module are input to control the reversing valve to switch to the second conduction state, and the retraction indication function module is used to prompt whether the reversing valve is in the second conduction state, wherein the second conduction state means that the upper cylinder of the cylinder is connected to the channel of the pressure pump and the lower cylinder of the cylinder is connected to the atmosphere.
[0008] Optionally, the input function module also includes an extension and holding function module, an extension in-position detection function module, a retraction and holding function module, a retraction in-position detection function module, an extension in-position holding function module and a retraction in-position holding function module, and the output function module also includes an extension in-position function module, an extension indication function module, a retraction in-position function module and a retraction indication function module. According to the target cylinder control function, a signal of enabling the corresponding input function module is input to control the switching of the reversing valve to the target state, and whether the state of the reversing valve is normal is output through the corresponding output function module. It also includes: inputting a signal enabling the extension and holding function module and a signal enabling the extension in-position detection function module, and when the extension in-position function module prompts that the cylinder is not extended in position, controlling the reversing valve to switch to the first conduction state until it is extended in position, and prompting the extension indication function module whether the reversing valve is in the first conduction state, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere; inputting a signal enabling the retraction and holding function module The control module inputs a signal and a signal that enables the retraction detection function module, and when the retraction function module prompts that the cylinder has not retracted to its position, controls the reversing valve to switch to the second conduction state until it retracts to its position, and prompts the retraction indication function module whether the reversing valve is in the second conduction state, wherein the second conduction state is that the upper cylinder of the cylinder is connected to the channel of the pressure pump and the lower cylinder of the cylinder is connected to the channel of the atmosphere; inputs a signal that enables the extended position holding function module and a signal that enables the extended position detection function module, and when the extended position function module prompts that the cylinder is extended to its position, controls the reversing valve to maintain the first conduction state, and prompts the extended indication function module whether the reversing valve is in the first conduction state; inputs a signal that enables the retraction holding function module and a signal that enables the retraction detection function module, and when the retraction function module prompts that the cylinder is retracted to its position, controls the reversing valve to maintain the second conduction state, and prompts the retraction indication function module whether the reversing valve is in the second conduction state.
[0009] Optionally, the input function module also includes an action monitoring time function module, and the output function module also includes an extension action timeout function module and an exit action timeout function module. According to the target cylinder control function, the input enables the signal of the corresponding input function module to control the reversing valve to switch to the target state, and outputs whether the state of the reversing valve is normal through the corresponding output function module. It also includes: input enables the signal of the action monitoring time function module, prompts the extension action timeout of the cylinder through the extension action timeout function module, or prompts the exit action timeout of the cylinder through the exit action timeout function module.
[0010] Optionally, the cylinder includes a lock valve, which is used to lock or unlock the piston of the cylinder. The input function module also includes an enable function module and a lock valve enable function module. The output function module also includes a lock valve function module. According to the target cylinder control function, the input enables the signal of the corresponding input function module to control the reversing valve to switch to the target state, and outputs whether the state of the reversing valve is normal through the corresponding output function module. It also includes: inputting a signal to enable the enable function module and a signal to enable the lock valve enable function module, and prompting that the lock valve is successfully unlocked through the lock valve function module.
[0011] Optionally, the input function module also includes an extension condition function module and a retraction condition function module, and the output function module also includes an action condition not satisfied function module. Before controlling the reversing valve to switch to the first conduction state, the method also includes: inputting a signal to enable the extension condition function module, and prompting that the action condition is satisfied through the action condition not satisfied function module; before controlling the reversing valve to switch to the second conduction state, the method also includes: inputting a signal to enable the retraction condition function module, and prompting that the action condition is satisfied through the action condition not satisfied function module.
[0012] According to another aspect of the present application, a universal control device for a reversing valve is provided, comprising: a setting unit, used to set a plurality of input function modules and a plurality of corresponding output function modules, the input function modules being at least used to control the reversing valve to realize the corresponding cylinder control function, the output function modules being at least used to prompt the state of the reversing valve, the cylinder control functions at least including cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position; a control unit, used to input a signal enabling the corresponding input function module according to a target cylinder control function, so as to control the reversing valve to switch to a target state, and output whether the state of the reversing valve is normal through the corresponding output function module, the target state being the state of the reversing valve to realize the target cylinder control function, and the target cylinder control function being any one of the cylinder control functions.
[0013] According to another aspect of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, any one of the methods described above is implemented.
[0014] According to another aspect of the present application, a cylinder control system is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.
[0015] By applying the technical solution of the present application, in the universal control method of the above-mentioned reversing valve, a set of universal input function modules and corresponding output function modules are set up, so that the function module can control the reversing valve to realize the corresponding cylinder control function, and output whether the state of the reversing valve is normal through the corresponding output function module to realize the control of the reversing valve. When different reversing valves realize the same cylinder control function, the same input function module is used to control the reversing valve and the same output function module is used to output whether the state of the reversing valve is normal, so that the universal control method can be applied to the control of different reversing valves on the cylinder. For example, different reversing valves all control the switching of different conduction states through the gain and loss of electricity of the coil, and the gain and loss of electricity of the corresponding coil is controlled by the input function module to realize functions such as controlling cylinder extension and cylinder retraction. The output function module feeds back the state of the reversing valve in the same way, which solves the problem in the prior art that the universal function block cannot realize the control function of different types of reversing valves on the cylinder. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A hardware structure block diagram of a mobile terminal for executing a general control method for a reversing valve provided in an embodiment of the present application is shown;
[0017] Figure 2 A schematic flow chart of a general control method for a reversing valve provided according to an embodiment of the present application is shown;
[0018] Figure 3 A schematic diagram of a two-position five-way dual-electrically controlled solenoid valve provided according to an embodiment of the present application is shown;
[0019] Figure 4 A schematic diagram of a three-position five-way solenoid valve provided according to an embodiment of the present application is shown;
[0020] Figure 5 A schematic diagram of a cylinder control function module provided according to an embodiment of the present application is shown;
[0021] Figure 6A schematic diagram of a flow chart of cylinder extension control provided according to an embodiment of the present application is shown;
[0022] Figure 7 A structural block diagram of a universal control device for a reversing valve provided according to an embodiment of the present application is shown.
[0023] The above drawings include the following reference numerals:
[0024] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms first, second, etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged in appropriate circumstances, so that the embodiments of the present application described here. In addition, the terms include and have and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0028] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0029] PLC: Programmable Logic Controller, which can internally execute user-oriented instructions such as logic operations, sequential control, timing, counting and arithmetic operations, and control various types of machinery or production processes through digital or analog input / output.
[0030] Cylinder: The cylinder converts the pressure energy of compressed gas into mechanical energy through the movement of the piston, thereby driving the mechanism to perform various movements, such as linear reciprocating motion, swinging and rotating motion, etc. In the production line, the cylinder is used to achieve various mechanical actions, such as opening and closing doors, carrying objects, etc.
[0031] Reversing solenoid valve: It is composed of an electromagnetic coil and a magnetic core. When the coil is energized or de-energized, the operation of the magnetic core will cause the gas to pass through the valve body or be cut off to achieve the purpose of changing the direction of the gas. It works together with actuators such as cylinders to achieve efficient and precise control of mechanical equipment.
[0032] As introduced in the background technology, the prior art cannot implement the control function of different types of reversing valves on cylinders by a general function block. To solve this technical problem, the embodiments of the present application provide a reversing valve control method, device, computer program product and cylinder control system.
[0033] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0034] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a control method for a reversing valve according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0035] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the reversing valve in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] In this embodiment, a control method for a reversing valve running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0037] Figure 2 FIG. 1 is a flow chart of a control method for a reversing valve according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0038] Step S201, setting a plurality of input function modules and a plurality of corresponding output function modules, wherein the input function modules are at least used to control the reversing valve to realize the corresponding cylinder control function, and the output function modules are at least used to prompt the state of the reversing valve, and the cylinder control function at least includes cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position;
[0039] Step S202, according to the target cylinder control function, input a signal to enable the corresponding input function module to control the reversing valve to switch to the target state, and output whether the state of the reversing valve is normal through the corresponding output function module. The target state is the state of the reversing valve to realize the target cylinder control function, and the target cylinder control function is any one of the cylinder control functions.
[0040] In the above-mentioned universal control method of the reversing valve, a set of universal input function modules and corresponding output function modules are set up, and the enabling function module controls the reversing valve to realize the corresponding cylinder control function, and outputs whether the state of the reversing valve is normal through the corresponding output function module to realize the control of the reversing valve. When different reversing valves realize the same cylinder control function, the same input function module is used to control the reversing valve and the same output function module is used to output whether the state of the reversing valve is normal, so that the universal control method can be applied to the control of different reversing valves on the cylinder. For example, different reversing valves all control the switching of different conduction states through the gain and loss of electricity of the coil. The gain and loss of electricity of the corresponding coil is controlled by the input function module to realize functions such as controlling the extension and retraction of the cylinder. The output function module feeds back the state of the reversing valve in the same way, which solves the problem in the prior art that the universal function block cannot realize the control function of different types of reversing valves on the cylinder.
[0041] It should be noted that different types of pneumatic reversing solenoid valves can be controlled by one function block to realize the control of different functions of the cylinder; for different cylinder controls, there is no need for repeated programming, and they can be called directly. The above function blocks are written based on the PLC IEC61131-3 writing standard and can be applied to any brand of PLC program writing based on this standard. The above function blocks are also applicable to hydraulic system cylinder control. Taking the two-position five-way valve and the three-position five-way valve as examples, the extension and retraction control process of the cylinder is divided into two stages: the action execution process and the cylinder static holding process. The action execution process requires the spool position of the reversing valve to be in a unidirectional conduction state. After the cylinder is in place and stationary, it is necessary to control whether the spool continues to maintain the unidirectional conduction state or put the spool in the middle position according to the actual situation. Therefore, the cylinder can be controlled by controlling the spool. The solenoid valve control is divided into two categories according to the power-on status of the reversing valve spool and the single-side solenoid valve: 1. The valve spool changes direction after the single end is energized, and the valve spool position remains unchanged after power failure, such as Figure 3 As shown, the two-position five-way double-electrically controlled solenoid valve belongs to this category; 2. The valve core changes direction after power is applied to one end, and the spring resets the valve core after power is cut off. The three-position five-way solenoid valve and the two-position five-way single-electrically controlled solenoid valve belong to this category. The three-position five-way solenoid valve with center sealing is as follows Figure 4As shown. The first conduction state of the reversing valve is that the air inlet P is connected to the air outlet A, and the air outlet B is connected to the exhaust port S, so that the pressurized gas enters the lower cylinder of the cylinder through the air inlet P and the air outlet A, and the gas in the upper cylinder of the cylinder is discharged into the atmosphere through the air outlet B and the exhaust port S, so that the cylinder is extended. The second conduction state of the reversing valve is that the air inlet P is connected to the air outlet B, and the air outlet A is connected to the exhaust port R, so that the pressurized gas enters the upper cylinder of the cylinder through the air inlet P and the air outlet B, and the gas in the lower cylinder of the cylinder is discharged into the atmosphere through the air outlet A and the exhaust port R, so that the cylinder is retracted. Therefore, the types of reversing valves can be distinguished according to the relationship between the position state of the valve core and the power-on state of the solenoid valve.
[0042] In addition, the general control method described above can also be applied to a two-position two-way valve, a two-position three-way valve and a two-position four-way valve. The two-position four-way valve has the same function as the two-position five-way valve, except that the two exhaust ports R and S are combined into one, and the same exhaust port is used for two positions. Four two-position two-way valves can achieve the same function as the two-position five-way valve. The on-off of the channel of a two-position two-way valve is equivalent to the on-off of the channel between the air inlet P and the air outlet A of the two-position five-way valve, the on-off of the channel of a two-position two-way valve is equivalent to the on-off of the channel between the air inlet P and the air outlet B of the two-position five-way valve, the on-off of the channel of a two-position two-way valve is equivalent to the on-off of the channel between the air outlet B and the exhaust port S of the two-position five-way valve, and the on-off of the channel of a two-position two-way valve is equivalent to the on-off of the channel between the air outlet B and the exhaust port S of the two-position two-way valve. The on-off of the channel of the two-way valve is equivalent to the on-off of the channel between the air outlet A and the exhaust port R of the two-position five-way valve. Two two-position three-way valves can achieve the same function as the two-position five-way valve. The switching of the channel of one two-position three-way valve is equivalent to the switching of the channel between the air inlet P and the air outlet A of the two-position five-way valve and the switching of the channel between the air inlet P and the air outlet B of the two-position five-way valve. The switching of the channel of the other two-position three-way valve is equivalent to the switching of the channel between the air outlet B and the exhaust port S of the two-position five-way valve and the switching of the channel between the air outlet A and the exhaust port R of the two-position five-way valve. Therefore, the general control method applicable to two-position five-way valves is also applicable to two-position two-way valves, two-position three-way valves and two-position four-way valves, and can achieve the same function.
[0043] In order to realize the extending and retracting functions, in an optional implementation, as Figure 5 As shown, the input function module includes an automatic function module, an automatic extension function module, an automatic retraction function module, an adjustment function module, a manual extension function module and a manual retraction function module, the output function module includes an extension indication function module and a retraction indication function module, and the step S202 includes:
[0044] Step S20201, inputting a signal enabling the automatic function module and a signal enabling the automatic extension function module, so that the PLC program controls the reversing valve to switch to the first conduction state, and prompts the extension indication function module whether the reversing valve is in the first conduction state, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the atmosphere;
[0045] Step S20202, inputting a signal enabling the automatic function module and a signal enabling the automatic retraction function module, so that the PLC program controls the reversing valve to switch to the second conduction state, and prompts the retraction indication function module whether the reversing valve is in the second conduction state, wherein the second conduction state is that the upper cylinder of the cylinder is connected to the channel of the pressure pump and the lower cylinder of the cylinder is connected to the channel of the atmosphere;
[0046] Step S20203, inputting a signal enabling the adjustment function module and a signal enabling the manual extension function module, so that the first button controls the reversing valve to switch to the first conduction state, and prompts the reversing valve whether it is in the first conduction state through the extension indication function module;
[0047] Step S20204, input a signal enabling the adjustment function module and a signal enabling the manual return function module, so that the second button controls the reversing valve to switch to the second conduction state, and prompts whether the reversing valve is in the second conduction state through the return indication function module.
[0048] In the above implementation, when the input of the automatic function module is TRUE, the automatic extension function module and the automatic retraction function module are effective in controlling the cylinder, and the equipment automatic operation control signal is accepted; when the input of the adjustment function module is TRUE, the manual extension function module and the manual retraction function module are effective in controlling the cylinder, and can be used for manual adjustment of the cylinder. The signals of the extension indication function module and the retraction indication function module are action indication signals, and a 1Hz pulse signal is output during the execution of the corresponding action, which flashes to indicate that the action is being executed, and the signal output is often TRUE after the action is executed.
[0049] In order to keep the cylinder in the initial state when starting, in an optional implementation, as Figure 5 As shown, the input function module further includes an initialization function module, an initial extension function module and an initial retraction function module, the output function module further includes an extension indication function module and a retraction indication function module, and the step S202 further includes:
[0050] Step S20205, inputting a signal enabling the initialization function module and a signal enabling the initial extension function module, controlling the reversing valve to switch to the first conduction state, and prompting the reversing valve whether it is in the first conduction state through the extension indication function module, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere;
[0051] Step S20206, input a signal enabling the above-mentioned initialization function module and a signal enabling the above-mentioned initial return function module, control the above-mentioned reversing valve to switch to the second conduction state, and prompt the above-mentioned retraction indication function module whether the above-mentioned reversing valve is in the above-mentioned second conduction state, and the above-mentioned second conduction state is that the upper cylinder of the above-mentioned cylinder is connected to the channel of the above-mentioned pressure pump and the lower cylinder of the above-mentioned cylinder is connected to the channel of the above-mentioned atmosphere.
[0052] In the above implementation manner, taking a two-position five-way valve and a three-position five-way valve as examples, both have two positions, which are respectively used to control the extension and retraction of the cylinder, and are therefore divided into an extension side solenoid valve and a retraction side solenoid valve. The extension side solenoid valve is energized to a first conduction state, and the retraction side solenoid valve is energized to a second conduction state. The initialization function module, the initial extension function module, and the initial retraction function module signals are cylinder initial state selection requirements after the system is powered off and restarted. When the initialization function module and the initial extension function module input are TRUE, the initialization function module and the initial extension function module are enabled, and the extension side solenoid valve is energized to control the above-mentioned reversing valve to switch to the first conduction state. In the on state, when the input of the initialization function module and the initial retraction function module is TRUE, the initialization function module and the initial retraction function module are enabled, and the solenoid valve on the retraction side is energized to control the above-mentioned reversing valve to switch to the second on state. When the input of the initialization function module is TRUE and the input of the initial extension function module and the initial retraction function module is FALSE, the initialization function module is enabled, and the initial extension function module and the initial retraction function module are not enabled. The current state of the cylinder is judged, and the extension of the cylinder is detected, and the solenoid valve on the extension side is energized. When the cylinder is detected to be retracted, the solenoid valve on the cylinder retraction side is energized. There is no in-position signal, and the valves on both sides are not energized. When the input of the initialization function module, the initial extension function module and the initial retraction function module are all FALSE, that is, they are all disabled and the cylinder has no action.
[0053] In order to realize the functions of cylinder extension holding, cylinder retraction holding, cylinder extension holding and cylinder retraction holding, in an optional implementation mode, as Figure 5As shown, the input function module further includes an extending and holding function module, an extending in-position detection function module, a retracting and holding function module, a retracting in-position detection function module, an extending in-position holding function module and a retracting in-position holding function module, the output function module further includes an extending in-position function module, an extending indicating function module, a retracting in-position function module and a retracting indicating function module, and the step S202 further includes:
[0054] Step S20207, inputting a signal enabling the extension holding function module and a signal enabling the extension in-position detection function module, and when the extension in-position function module indicates that the cylinder is not extended in-position, controlling the reversing valve to switch to the first conduction state until it is extended in-position, and indicating whether the reversing valve is in the first conduction state through the extension indication function module, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere;
[0055] Step S20208, inputting a signal enabling the above-mentioned retraction holding function module and a signal enabling the above-mentioned retraction in-position detection function module, and in the case where the above-mentioned retraction in-position function module indicates that the above-mentioned cylinder has not retracted in position, controlling the above-mentioned reversing valve to switch to the second conduction state until it retracts in position, and prompting the above-mentioned retraction indication function module whether the above-mentioned reversing valve is in the above-mentioned second conduction state, wherein the above-mentioned second conduction state is that the upper cylinder of the above-mentioned cylinder is connected to the channel of the above-mentioned pressure pump and the lower cylinder of the above-mentioned cylinder is connected to the channel of the above-mentioned atmosphere;
[0056] Step S20209, inputting a signal enabling the above-mentioned extended in-position holding function module and a signal enabling the above-mentioned extended in-position detection function module, and in the case where the above-mentioned extended in-position function module prompts that the above-mentioned cylinder is extended in the position, controlling the above-mentioned reversing valve to maintain the above-mentioned first conduction state, and prompting the above-mentioned reversing valve whether it is in the above-mentioned first conduction state through the above-mentioned extension indication function module;
[0057] Step S20210, input a signal enabling the above-mentioned retraction holding function module and a signal enabling the above-mentioned retraction detection function module, and when the above-mentioned retraction function module prompts that the above-mentioned cylinder has retracted into position, control the above-mentioned reversing valve to maintain the above-mentioned second conduction state, and prompt the above-mentioned retraction indication function module whether the above-mentioned reversing valve is in the above-mentioned second conduction state.
[0058] In the above implementation mode, if Figure 6As shown, the input of the extension holding function module and the extension in-position detection function module is TRUE, which controls the above-mentioned reversing valve to switch to the first conduction state, and outputs TRUE through the extension indication function module, indicating that the above-mentioned reversing valve is in the above-mentioned first conduction state, until the extension in-position function module outputs TRUE, so that the cylinder maintains the extended state until the extended in-position, that is, the solenoid valve on the extension side is continuously energized, and the cylinder continues to extend, otherwise the solenoid valve on the extension side is de-energized after the extension instruction is cancelled, and inching control is performed, the input of the retraction holding function module and the retraction in-position detection function module is TRUE, which controls the above-mentioned reversing valve to switch to the second conduction state, and outputs TRUE through the retraction indication function module, indicating that the above-mentioned reversing valve is in the above-mentioned second conduction state, until the retraction in-position function module outputs TRUE, so that the cylinder maintains the retraction state until the retraction in-position, that is, the solenoid valve on the retraction side is continuously energized, and the cylinder continues to retract, otherwise after the retraction instruction is cancelled The solenoid valve on the retraction side is powered off, and inching control is performed. The inputs of the extended position holding function module and the extended position detection function module are TRUE. If the extended position function module outputs TRUE, the above-mentioned reversing valve is controlled to maintain the first conduction state, so that the cylinder remains in the extended position state, that is, the solenoid valve on the extension side is continuously energized to achieve the cylinder extended position holding. Otherwise, the solenoid valve on the extension side is powered off. If it is a three-position five-way valve, the state is determined by the middle position skill. If it is a center-sealed type, the state before power failure remains unchanged. The inputs of the retraction position holding function module and the retraction position detection function module are TRUE. If the retraction position function module outputs TRUE, the above-mentioned reversing valve is controlled to maintain the second conduction state, so that the cylinder remains in the retraction position state, that is, the solenoid valve on the retraction side is continuously energized to achieve the cylinder retraction position holding. Otherwise, the solenoid valve on the retraction side is powered off. If it is a three-position five-way valve, the state is determined by the middle position skill. If it is a center-sealed type, the state before power failure remains unchanged.
[0059] In addition, the output function module also includes an extension valve function module and a retraction valve function module. When the extension valve function module outputs TRUE, the extension side solenoid valve is energized. When the retraction valve function module outputs TRUE, the retraction side solenoid valve is energized.
[0060] In order to realize the timeout abnormal alarm, in an optional implementation mode, Figure 5 As shown, the input function module further includes an action monitoring time function module, the output function module further includes an extension action timeout function module and an exit action timeout function module, and the step S202 further includes:
[0061] Step S20211, input a signal to enable the above-mentioned action monitoring time function module, and prompt the extension action timeout of the above-mentioned cylinder through the above-mentioned extension action timeout function module, or prompt the withdrawal action timeout of the above-mentioned cylinder through the above-mentioned withdrawal action timeout function module.
[0062] In the above implementation, the action monitoring time function module inputs TRUE to time the extending action and the retracting action, and the extending action timeout function module and the retracting action timeout function module output TRUE as an action execution timeout alarm signal.
[0063] In order to avoid the cylinder from being started accidentally, in an optional implementation, Figure 5 As shown, the cylinder includes a lock valve, and the lock valve is used to lock or unlock the piston of the cylinder, the input function module also includes an enable function module and a lock valve enable function module, the output function module also includes a lock valve function module, and the step S202 also includes:
[0064] Step S20212, inputting a signal to enable the enabling function module and a signal to enable the valve locking enabling function module, and prompting the valve locking function module that the valve locking is unlocked successfully.
[0065] In the above implementation, the enable function module signal is the basic condition for the cylinder to move. The enable signal must be input TRUE for the cylinder to move. When the lock valve enable function module inputs TRUE, the lock valve that locks the cylinder movement is opened before the cylinder moves, and then the corresponding action is performed, and the lock valve function module outputs TRUE.
[0066] In order to determine whether the action condition is met, in an optional implementation, Figure 5 As shown, the input function module further includes an extension condition function module and a retraction condition function module, and the output function module further includes an action condition not satisfied function module.
[0067] Before controlling the reversing valve to switch to the first conducting state, the method further includes:
[0068] Step S301, inputting a signal to enable the extension condition function module, and prompting that the action condition is met through the action condition unsatisfied function module;
[0069] Before controlling the reversing valve to switch to the second conducting state, the method further includes:
[0070] Step S302, input a signal to enable the above-mentioned return condition function module, and prompt that the action condition is met through the above-mentioned action condition unsatisfied function module.
[0071] In the above embodiment, the extension condition function module inputs TRUE, indicating that the extension condition is met, and the action condition is not met and the function module outputs FALSE. The retraction condition function module inputs TRUE, indicating that the retraction condition is met, and the action condition is not met and the function module outputs FALSE. Otherwise, the action condition is not met and the function module outputs TRUE, and the cylinder cannot move.
[0072] It should be noted that the pin definitions of the above functional modules are shown in Table 1.
[0073] Table 1
[0074]
[0075] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0076] The embodiment of the present application also provides a control device for a reversing valve. It should be noted that the control device for a reversing valve in the embodiment of the present application can be used to execute the control method for a reversing valve provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term module can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0077] The control device of the reversing valve provided in the embodiment of the present application is introduced below.
[0078] Figure 7 is a structural block diagram of a control device for a reversing valve according to an embodiment of the present application. Figure 7 As shown, the device comprises:
[0079] A setting unit 10 is used to set a plurality of input function modules and a plurality of corresponding output function modules, wherein the input function modules are at least used to control the reversing valve to realize the corresponding cylinder control function, and the output function modules are at least used to prompt the state of the reversing valve, and the cylinder control function at least includes cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position;
[0080] The control unit 20 is used to input a signal to enable the corresponding input function module according to the target cylinder control function to control the above-mentioned reversing valve to switch to the target state, and output whether the state of the above-mentioned reversing valve is normal through the corresponding output function module. The above-mentioned target state is the state of the above-mentioned reversing valve to realize the above-mentioned target cylinder control function, and the above-mentioned target cylinder control function is any one of the above-mentioned cylinder control functions.
[0081] In the universal control device of the above-mentioned reversing valve, a set of universal input function modules and corresponding output function modules are provided, so that the function module can control the reversing valve to realize the corresponding cylinder control function, and output whether the state of the reversing valve is normal through the corresponding output function module to realize the control of the reversing valve. When different reversing valves realize the same cylinder control function, the same input function module is used to control the reversing valve and the same output function module is used to output whether the state of the reversing valve is normal, so that the universal control method can be applied to the control of different reversing valves on the cylinder. For example, different reversing valves all control the switching of different conduction states through the gain and loss of electricity of the coil. The gain and loss of electricity of the corresponding coil is controlled by the input function module to realize functions such as controlling the extension and retraction of the cylinder. The output function module feeds back the state of the reversing valve in the same way, which solves the problem in the prior art that the universal function block cannot realize the control function of different types of reversing valves on the cylinder.
[0082] It should be noted that different types of pneumatic reversing solenoid valves can be controlled by one function block to realize the control of different functions of the cylinder; for different cylinder controls, there is no need for repeated programming, and they can be called directly. The above function blocks are written based on the PLC IEC61131-3 writing standard and can be applied to any brand of PLC program writing based on this standard. The above function blocks are also applicable to hydraulic system cylinder control. Taking the two-position five-way valve and the three-position five-way valve as examples, the extension and retraction control process of the cylinder is divided into two stages: the action execution process and the cylinder static holding process. The action execution process requires the spool position of the reversing valve to be in a unidirectional conduction state. After the cylinder is in place and stationary, it is necessary to control whether the spool continues to maintain the unidirectional conduction state or put the spool in the middle position according to the actual situation. Therefore, the cylinder can be controlled by controlling the spool. The solenoid valve control is divided into two categories according to the power-on status of the reversing valve spool and the single-side solenoid valve: 1. The valve spool changes direction after the single end is energized, and the valve spool position remains unchanged after power failure, such as Figure 3 As shown, the two-position five-way double-electrically controlled solenoid valve belongs to this category; 2. The valve core changes direction after power is applied to one end, and the spring resets the valve core after power is cut off. The three-position five-way solenoid valve and the two-position five-way single-electrically controlled solenoid valve belong to this category. The three-position five-way solenoid valve with center sealing is as follows Figure 4 As shown. The first conduction state of the reversing valve is that the air inlet P is connected to the air outlet A, and the air outlet B is connected to the exhaust port S, so that the pressurized gas enters the lower cylinder of the cylinder through the air inlet P and the air outlet A, and the gas in the upper cylinder of the cylinder is discharged into the atmosphere through the air outlet B and the exhaust port S, so that the cylinder is extended. The second conduction state of the reversing valve is that the air inlet P is connected to the air outlet B, and the air outlet A is connected to the exhaust port R, so that the pressurized gas enters the upper cylinder of the cylinder through the air inlet P and the air outlet B, and the gas in the lower cylinder of the cylinder is discharged into the atmosphere through the air outlet A and the exhaust port R, so that the cylinder is retracted. Therefore, the types of reversing valves can be distinguished according to the relationship between the position state of the valve core and the power-on state of the solenoid valve.
[0083] In addition, the general control method described above can also be applied to a two-position two-way valve, a two-position three-way valve and a two-position four-way valve. The two-position four-way valve has the same function as the two-position five-way valve, except that the two exhaust ports R and S are combined into one, and the same exhaust port is used for two positions. Four two-position two-way valves can achieve the same function as the two-position five-way valve. The on-off of the channel of a two-position two-way valve is equivalent to the on-off of the channel between the air inlet P and the air outlet A of the two-position five-way valve, the on-off of the channel of a two-position two-way valve is equivalent to the on-off of the channel between the air inlet P and the air outlet B of the two-position five-way valve, the on-off of the channel of a two-position two-way valve is equivalent to the on-off of the channel between the air outlet B and the exhaust port S of the two-position five-way valve, and the on-off of the channel of a two-position two-way valve is equivalent to the on-off of the channel between the air outlet B and the exhaust port S of the two-position two-way valve. The on-off of the channel of the two-way valve is equivalent to the on-off of the channel between the air outlet A and the exhaust port R of the two-position five-way valve. Two two-position three-way valves can achieve the same function as the two-position five-way valve. The switching of the channel of one two-position three-way valve is equivalent to the switching of the channel between the air inlet P and the air outlet A of the two-position five-way valve and the switching of the channel between the air inlet P and the air outlet B of the two-position five-way valve. The switching of the channel of the other two-position three-way valve is equivalent to the switching of the channel between the air outlet B and the exhaust port S of the two-position five-way valve and the switching of the channel between the air outlet A and the exhaust port R of the two-position five-way valve. Therefore, the general control method applicable to two-position five-way valves is also applicable to two-position two-way valves, two-position three-way valves and two-position four-way valves, and can achieve the same function.
[0084] In order to realize the extending and retracting functions, in an optional implementation, as Figure 5 As shown, the input function module includes an automatic function module, an automatic extension function module, an automatic retraction function module, an adjustment function module, a manual extension function module and a manual retraction function module, the output function module includes an extension indication function module and a retraction indication function module, and the control unit includes:
[0085] A first control module, used for inputting a signal enabling the automatic function module and a signal enabling the automatic extension function module, so that the PLC program controls the reversing valve to switch to a first conduction state, and prompts the reversing valve whether it is in the first conduction state through the extension indication function module, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere;
[0086] A second control module is used to input a signal enabling the automatic function module and a signal enabling the automatic retraction function module, so that the PLC program controls the reversing valve to switch to a second conduction state, and prompts the retraction indication function module whether the reversing valve is in the second conduction state, wherein the second conduction state is that the upper cylinder of the cylinder is connected to the channel of the pressure pump and the lower cylinder of the cylinder is connected to the channel of the atmosphere;
[0087] A third control module, used for inputting a signal enabling the adjustment function module and a signal enabling the manual extension function module, so that the first button controls the switching of the reversing valve to the first conduction state, and prompts the extension indication function module whether the reversing valve is in the first conduction state;
[0088] The fourth control module is used to input a signal enabling the above-mentioned adjustment function module and a signal enabling the above-mentioned manual return function module, so that the second button controls the above-mentioned reversing valve to switch to the second conduction state, and prompts the above-mentioned retraction indication function module whether the above-mentioned reversing valve is in the above-mentioned second conduction state.
[0089] In the above implementation, when the input of the automatic function module is TRUE, the automatic extension function module and the automatic retraction function module are effective in controlling the cylinder, and the equipment automatic operation control signal is accepted; when the input of the adjustment function module is TRUE, the manual extension function module and the manual retraction function module are effective in controlling the cylinder, and can be used for manual adjustment of the cylinder. The signals of the extension indication function module and the retraction indication function module are action indication signals, and a 1Hz pulse signal is output during the execution of the corresponding action, which flashes to indicate that the action is being executed, and the signal output is often TRUE after the action is executed.
[0090] In order to keep the cylinder in the initial state when starting, in an optional implementation, as Figure 5 As shown, the input function module further includes an initialization function module, an initial extension function module and an initial retraction function module, the output function module further includes an extension indication function module and a retraction indication function module, and the control unit further includes:
[0091] a fifth control module, for inputting a signal enabling the initialization function module and a signal enabling the initial extension function module, controlling the reversing valve to switch to a first conduction state, and prompting the reversing valve whether it is in the first conduction state through the extension indication function module, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the atmosphere;
[0092] The sixth control module is used to input a signal to enable the above-mentioned initialization function module and a signal to enable the above-mentioned initial return function module, control the above-mentioned reversing valve to switch to the second conduction state, and prompt the above-mentioned retraction indication function module whether the above-mentioned reversing valve is in the above-mentioned second conduction state, and the above-mentioned second conduction state is that the upper cylinder of the above-mentioned cylinder is connected to the channel of the above-mentioned pressure pump and the lower cylinder of the above-mentioned cylinder is connected to the channel of the above-mentioned atmosphere.
[0093] In the above implementation manner, taking a two-position five-way valve and a three-position five-way valve as examples, both have two positions, which are respectively used to control the extension and retraction of the cylinder, and are therefore divided into an extension side solenoid valve and a retraction side solenoid valve. The extension side solenoid valve is energized to a first conduction state, and the retraction side solenoid valve is energized to a second conduction state. The initialization function module, the initial extension function module, and the initial retraction function module signals are cylinder initial state selection requirements after the system is powered off and restarted. When the initialization function module and the initial extension function module input are TRUE, the initialization function module and the initial extension function module are enabled, and the extension side solenoid valve is energized to control the above-mentioned reversing valve to switch to the first conduction state. In the on state, when the input of the initialization function module and the initial retraction function module is TRUE, the initialization function module and the initial retraction function module are enabled, and the solenoid valve on the retraction side is energized to control the above-mentioned reversing valve to switch to the second on state. When the input of the initialization function module is TRUE and the input of the initial extension function module and the initial retraction function module is FALSE, the initialization function module is enabled, and the initial extension function module and the initial retraction function module are not enabled. The current state of the cylinder is judged, and the extension of the cylinder is detected, and the solenoid valve on the extension side is energized. When the cylinder is detected to be retracted, the solenoid valve on the cylinder retraction side is energized. There is no in-position signal, and the valves on both sides are not energized. When the input of the initialization function module, the initial extension function module and the initial retraction function module are all FALSE, that is, they are all disabled and the cylinder has no action.
[0094] In order to realize the functions of cylinder extension holding, cylinder retraction holding, cylinder extension holding and cylinder retraction holding, in an optional implementation mode, as Figure 5 As shown, the input function module further includes an extension holding function module, an extension in place detection function module, a retraction holding function module, a retraction in place detection function module, an extension in place holding function module and a retraction in place holding function module, the output function module further includes an extension in place function module, an extension indication function module, a retraction in place function module and a retraction indication function module, and the control unit further includes:
[0095] a seventh control module, for inputting a signal enabling the extension holding function module and a signal enabling the extension in-position detection function module, and, when the extension in-position function module indicates that the cylinder is not extended in-position, controlling the reversing valve to switch to the first conduction state until it is extended in-position, and indicating through the extension indication function module whether the reversing valve is in the first conduction state, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere;
[0096] an eighth control module, for inputting a signal enabling the retraction holding function module and a signal enabling the retraction in-position detection function module, and, when the retraction in-position function module indicates that the cylinder has not retracted in position, controlling the reversing valve to switch to a second conduction state until it retracts in position, and indicating through the retraction indication function module whether the reversing valve is in the second conduction state, wherein the second conduction state is that the upper cylinder of the cylinder is in conduction with the channel of the pressure pump and the lower cylinder of the cylinder is in conduction with the channel of the atmosphere;
[0097] A ninth control module, for inputting a signal enabling the above-mentioned extended in-position holding function module and a signal enabling the above-mentioned extended in-position detection function module, and controlling the above-mentioned reversing valve to maintain the above-mentioned first conduction state when the above-mentioned extended in-position function module prompts the above-mentioned cylinder to be extended in-position, and prompting the above-mentioned reversing valve whether it is in the above-mentioned first conduction state through the above-mentioned extension indication function module;
[0098] The tenth control module is used to input a signal enabling the above-mentioned retraction holding function module and a signal enabling the above-mentioned retraction detection function module, and when the above-mentioned retraction function module prompts that the above-mentioned cylinder has retracted into position, the above-mentioned reversing valve is controlled to maintain the above-mentioned second conduction state, and the above-mentioned retraction indication function module is used to prompt whether the above-mentioned reversing valve is in the above-mentioned second conduction state.
[0099] In the above implementation mode, if Figure 6As shown, the input of the extension holding function module and the extension in-position detection function module is TRUE, which controls the above-mentioned reversing valve to switch to the first conduction state, and outputs TRUE through the extension indication function module, indicating that the above-mentioned reversing valve is in the above-mentioned first conduction state, until the extension in-position function module outputs TRUE, so that the cylinder maintains the extended state until the extended in-position, that is, the solenoid valve on the extension side is continuously energized, and the cylinder continues to extend, otherwise the solenoid valve on the extension side is de-energized after the extension instruction is cancelled, and inching control is performed, the input of the retraction holding function module and the retraction in-position detection function module is TRUE, which controls the above-mentioned reversing valve to switch to the second conduction state, and outputs TRUE through the retraction indication function module, indicating that the above-mentioned reversing valve is in the above-mentioned second conduction state, until the retraction in-position function module outputs TRUE, so that the cylinder maintains the retraction state until the retraction in-position, that is, the solenoid valve on the retraction side is continuously energized, and the cylinder continues to retract, otherwise after the retraction instruction is cancelled The solenoid valve on the retraction side is powered off, and inching control is performed. The inputs of the extended position holding function module and the extended position detection function module are TRUE. If the extended position function module outputs TRUE, the above-mentioned reversing valve is controlled to maintain the first conduction state, so that the cylinder remains in the extended position state, that is, the solenoid valve on the extension side is continuously energized to achieve the cylinder extended position holding. Otherwise, the solenoid valve on the extension side is powered off. If it is a three-position five-way valve, the state is determined by the middle position skill. If it is a center-sealed type, the state before power failure remains unchanged. The inputs of the retraction position holding function module and the retraction position detection function module are TRUE. If the retraction position function module outputs TRUE, the above-mentioned reversing valve is controlled to maintain the second conduction state, so that the cylinder remains in the retraction position state, that is, the solenoid valve on the retraction side is continuously energized to achieve the cylinder retraction position holding. Otherwise, the solenoid valve on the retraction side is powered off. If it is a three-position five-way valve, the state is determined by the middle position skill. If it is a center-sealed type, the state before power failure remains unchanged.
[0100] In addition, the output function module also includes an extension valve function module and a retraction valve function module. When the extension valve function module outputs TRUE, the extension side solenoid valve is energized. When the retraction valve function module outputs TRUE, the retraction side solenoid valve is energized.
[0101] In order to realize the timeout abnormal alarm, in an optional implementation mode, Figure 5 As shown, the input function module further includes an action monitoring time function module, the output function module further includes an extension action timeout function module and an exit action timeout function module, and the control unit further includes:
[0102] The eleventh control module is used to input a signal enabling the above-mentioned action monitoring time function module, and prompt the extension action timeout of the above-mentioned cylinder through the above-mentioned extension action timeout function module, or prompt the withdrawal action timeout of the above-mentioned cylinder through the above-mentioned withdrawal action timeout function module.
[0103] In the above implementation, the action monitoring time function module inputs TRUE to time the extending action and the retracting action, and the extending action timeout function module and the retracting action timeout function module output TRUE as an action execution timeout alarm signal.
[0104] In order to avoid the cylinder from being started accidentally, in an optional implementation, Figure 5 As shown, the cylinder includes a lock valve, and the lock valve is used to lock or unlock the piston of the cylinder, the input function module also includes an enable function module and a lock valve enable function module, the output function module also includes a lock valve function module, and the control unit also includes:
[0105] The twelfth control module is used to input a signal enabling the enabling function module and a signal enabling the valve locking function module, and prompt the valve locking function module that the valve locking is unlocked successfully.
[0106] In the above implementation, the enable function module signal is the basic condition for the cylinder to move. The enable signal must be input TRUE for the cylinder to move. When the lock valve enable function module inputs TRUE, the lock valve that locks the cylinder movement is opened before the cylinder moves, and then the corresponding action is performed, and the lock valve function module outputs TRUE.
[0107] In order to determine whether the action condition is met, in an optional implementation, Figure 5 As shown, the input function module further includes an extension condition function module and a retraction condition function module, and the output function module further includes an action condition not satisfied function module.
[0108] The above device also includes:
[0109] A first prompting unit is used to input a signal enabling the extension condition function module before controlling the reversing valve to switch to the first conduction state, and prompt the action condition to be met through the action condition unsatisfied function module;
[0110] Before controlling the reversing valve to switch to the second conducting state, the method further includes:
[0111] The second prompting unit is used to input a signal to enable the above-mentioned return condition function module, and prompt that the action condition is met through the above-mentioned action condition unsatisfied function module.
[0112] In the above embodiment, the extension condition function module inputs TRUE, indicating that the extension condition is met, and the action condition is not met and the function module outputs FALSE. The retraction condition function module inputs TRUE, indicating that the retraction condition is met, and the action condition is not met and the function module outputs FALSE. Otherwise, the action condition is not met and the function module outputs TRUE, and the cylinder cannot move.
[0113] The control device of the reversing valve includes a processor and a memory. The setting unit and the control unit are stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0114] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem that the general function block cannot realize the control function of different types of reversing valves on cylinders in the prior art is solved by adjusting the kernel parameters.
[0115] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0116] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the control method of the reversing valve.
[0117] Specifically, the control method of the reversing valve includes:
[0118] Step S201, setting a plurality of input function modules and a plurality of corresponding output function modules, wherein the input function modules are at least used to control the reversing valve to realize the corresponding cylinder control function, and the output function modules are at least used to prompt the state of the reversing valve, and the cylinder control function at least includes cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position;
[0119] Step S202, according to the target cylinder control function, input a signal to enable the corresponding input function module to control the reversing valve to switch to the target state, and output whether the state of the reversing valve is normal through the corresponding output function module. The target state is the state of the reversing valve to realize the target cylinder control function, and the target cylinder control function is any one of the cylinder control functions.
[0120] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the control method of the reversing valve is executed when the program is run.
[0121] Specifically, the control method of the reversing valve includes:
[0122] Step S201, setting a plurality of input function modules and a plurality of corresponding output function modules, wherein the input function modules are at least used to control the reversing valve to realize the corresponding cylinder control function, and the output function modules are at least used to prompt the state of the reversing valve, and the cylinder control function at least includes cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position;
[0123] Step S202, according to the target cylinder control function, input a signal to enable the corresponding input function module to control the reversing valve to switch to the target state, and output whether the state of the reversing valve is normal through the corresponding output function module. The target state is the state of the reversing valve to realize the target cylinder control function, and the target cylinder control function is any one of the cylinder control functions.
[0124] An embodiment of the present invention provides a cylinder control system, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps are implemented:
[0125] Step S201, setting a plurality of input function modules and a plurality of corresponding output function modules, wherein the input function modules are at least used to control the reversing valve to realize the corresponding cylinder control function, and the output function modules are at least used to prompt the state of the reversing valve, and the cylinder control function at least includes cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position;
[0126] Step S202, according to the target cylinder control function, input a signal to enable the corresponding input function module to control the reversing valve to switch to the target state, and output whether the state of the reversing valve is normal through the corresponding output function module. The target state is the state of the reversing valve to realize the target cylinder control function, and the target cylinder control function is any one of the cylinder control functions.
[0127] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0128] Step S201, setting a plurality of input function modules and a plurality of corresponding output function modules, wherein the input function modules are at least used to control the reversing valve to realize the corresponding cylinder control function, and the output function modules are at least used to prompt the state of the reversing valve, and the cylinder control function at least includes cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position;
[0129] Step S202, according to the target cylinder control function, input a signal to enable the corresponding input function module to control the reversing valve to switch to the target state, and output whether the state of the reversing valve is normal through the corresponding output function module. The target state is the state of the reversing valve to realize the target cylinder control function, and the target cylinder control function is any one of the cylinder control functions.
[0130] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0131] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0132] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0133] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0135] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0136] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0137] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0138] It should also be noted that the terms include, contain or any other variation thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, an element defined by the phrase includes a ... does not exclude the presence of other identical elements in the process, method, commodity or device that includes the element.
[0139] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0140] 1) In the universal control method of the reversing valve of the present application, a set of universal input function modules and corresponding output function modules are set up, and the enabling function module controls the reversing valve to realize the corresponding cylinder control function, and outputs whether the state of the reversing valve is normal through the corresponding output function module to realize the control of the reversing valve. When different reversing valves realize the same cylinder control function, the same input function module is used to control the reversing valve and the same output function module is used to output whether the state of the reversing valve is normal, so that the universal control method can be applied to the control of different reversing valves on the cylinder. For example, different reversing valves all control the switching of different conduction states through the gain and loss of electricity of the coil. The gain and loss of electricity of the corresponding coil is controlled by the input function module to realize functions such as controlling the extension and retraction of the cylinder. The output function module feeds back the state of the reversing valve in the same way, which solves the problem in the prior art that the universal function block cannot realize the control function of different types of reversing valves on the cylinder.
[0141] 2) In the universal control device of the reversing valve of the present application, a set of universal input function modules and corresponding output function modules are provided, so that the function module can control the reversing valve to realize the corresponding cylinder control function, and output whether the state of the reversing valve is normal through the corresponding output function module to realize the control of the reversing valve. When different reversing valves realize the same cylinder control function, the same input function module is used to control the reversing valve and the same output function module is used to output whether the state of the reversing valve is normal, so that the universal control method can be applied to the control of different reversing valves on the cylinder. For example, different reversing valves all control the switching of different conduction states through the gain and loss of electricity of the coil. The gain and loss of electricity of the corresponding coil is controlled by the input function module to realize functions such as controlling the extension and retraction of the cylinder. The output function module feeds back the state of the reversing valve in the same way, which solves the problem in the prior art that the universal function block cannot realize the control function of different types of reversing valves on the cylinder.
[0142] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for a reversing valve, characterized in that: include: A plurality of input function modules and a plurality of corresponding output function modules are provided, wherein the input function module is at least used to control the reversing valve to realize the corresponding cylinder control function, and the output function module is at least used to prompt the state of the reversing valve, and the cylinder control function at least includes cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position; According to the target cylinder control function, a signal enabling the corresponding input function module is input to control the switching of the reversing valve to a target state, and whether the state of the reversing valve is normal is output through the corresponding output function module, wherein the target state is the state of the reversing valve realizing the target cylinder control function, and the target cylinder control function is any one of the cylinder control functions; The input function module includes an automatic function module, an automatic extension function module, an automatic retraction function module, an adjustment function module, a manual extension function module and a manual retraction function module, and the output function module includes an extension indication function module and a retraction indication function module. According to the target cylinder control function, a signal of the corresponding input function module is input to control the switching of the reversing valve to the target state, and the state of the reversing valve is output through the corresponding output function module. It includes: Input a signal enabling the automatic function module and a signal enabling the automatic extension function module, so that the PLC program controls the reversing valve to switch to a first conduction state, and prompts the reversing valve whether it is in the first conduction state through the extension indication function module, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere; Input a signal enabling the automatic function module and a signal enabling the automatic retraction function module, so that the PLC program controls the reversing valve to switch to the second conduction state, and prompts the retraction indication function module whether the reversing valve is in the second conduction state, wherein the second conduction state is that the upper cylinder of the cylinder is connected to the channel of the pressure pump and the lower cylinder of the cylinder is connected to the channel of the atmosphere; Input a signal enabling the adjustment function module and a signal enabling the manual extension function module, so that the first button controls the switching of the reversing valve to the first conduction state, and prompts the extension indication function module whether the reversing valve is in the first conduction state; A signal enabling the adjustment function module and a signal enabling the manual retraction function module are input, so that the second button controls the reversing valve to switch to the second conduction state, and prompts the retraction indication function module whether the reversing valve is in the second conduction state.
2. The method according to claim 1, characterized in that The input function module further includes an initialization function module, an initial extension function module and an initial retraction function module, and the output function module further includes an extension indication function module and a retraction indication function module. According to the target cylinder control function, a signal of the corresponding input function module is input to control the switching of the reversing valve to the target state, and outputs whether the state of the reversing valve is normal through the corresponding output function module. It also includes: Input a signal enabling the initialization function module and a signal enabling the initial extension function module, control the reversing valve to switch to a first conduction state, and prompt the extension indication function module whether the reversing valve is in the first conduction state, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere; Input a signal to enable the initialization function module and a signal to enable the initial retraction function module, control the reversing valve to switch to a second conduction state, and prompt the retraction indication function module whether the reversing valve is in the second conduction state, wherein the second conduction state is that the upper cylinder of the cylinder is connected to the channel of the pressure pump and the lower cylinder of the cylinder is connected to the channel of the atmosphere.
3. The method according to claim 1, characterized in that The input function module also includes an extension holding function module, an extension in place detection function module, a retraction holding function module, a retraction in place detection function module, an extension in place holding function module and a retraction in place holding function module. The output function module also includes an extension in place function module, an extension indication function module, a retraction in place function module and a retraction indication function module. According to the target cylinder control function, a signal of the corresponding input function module is input to enable the control valve to switch to the target state, and the state of the reversing valve is output through the corresponding output function module. It also includes: Input a signal enabling the extension holding function module and a signal enabling the extension in-position detection function module, and when the extension in-position function module indicates that the cylinder is not extended in-position, control the reversing valve to switch to the first conduction state until it is extended in-position, and indicate whether the reversing valve is in the first conduction state through the extension indication function module, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere; Input a signal enabling the retraction holding function module and a signal enabling the retraction in-position detection function module, and when the retraction in-position function module indicates that the cylinder has not retracted in position, control the reversing valve to switch to the second conduction state until it retracts in position, and indicate whether the reversing valve is in the second conduction state through the retraction indication function module, wherein the second conduction state is that the upper cylinder of the cylinder is connected to the channel of the pressure pump and the lower cylinder of the cylinder is connected to the channel of the atmosphere; Input a signal enabling the extended in-position holding function module and a signal enabling the extended in-position detection function module, and when the extended in-position function module prompts that the cylinder is extended in-position, control the reversing valve to maintain the first conducting state, and prompt the reversing valve whether it is in the first conducting state through the extension indication function module; A signal enabling the retraction holding function module and a signal enabling the retraction detection function module are input, and when the retraction function module prompts that the cylinder has retracted into position, the reversing valve is controlled to maintain the second conduction state, and the retraction indication function module is used to prompt whether the reversing valve is in the second conduction state.
4. The method according to any one of claims 1 to 3, characterized in that The input function module also includes an action monitoring time function module, and the output function module also includes an extension action timeout function module and an exit action timeout function module. According to the target cylinder control function, a signal of the corresponding input function module is input to control the switching of the reversing valve to the target state, and the state of the reversing valve is output through the corresponding output function module. It also includes: A signal enabling the action monitoring time function module is input, and the extension action timeout function module is used to prompt that the extension action of the cylinder has timed out, or the withdrawal action timeout function module is used to prompt that the withdrawal action of the cylinder has timed out.
5. The method according to any one of claims 1 to 3, characterized in that The cylinder includes a lock valve, and the lock valve is used to lock or unlock the piston of the cylinder. The input function module also includes an enable function module and a lock valve enable function module. The output function module also includes a lock valve function module. According to the target cylinder control function, a signal of the corresponding input function module is input to enable the corresponding input function module to control the switching of the reversing valve to the target state, and outputs whether the state of the reversing valve is normal through the corresponding output function module. It also includes: A signal to enable the enabling function module and a signal to enable the valve locking enabling function module are input, and the valve locking function module is prompted that the valve locking is successfully unlocked.
6. The method according to claim 2 or 3, characterized in that: The input function module also includes an extension condition function module and a retraction condition function module, and the output function module also includes an action condition not satisfied function module. Before controlling the reversing valve to switch to the first conducting state, the method further includes: Input a signal to enable the extension condition function module, and prompt that the action condition is met through the action condition unsatisfied function module; Before controlling the reversing valve to switch to the second conducting state, the method further includes: A signal enabling the return condition function module is input, and the action condition is not satisfied function module is prompted that the action condition is satisfied.
7. A control device for a reversing valve, characterized in that: include: A setting unit, used to set a plurality of input function modules and a plurality of corresponding output function modules, wherein the input function modules are at least used to control the reversing valve to realize the corresponding cylinder control function, and the output function modules are at least used to prompt the state of the reversing valve, and the cylinder control function at least includes cylinder extension, cylinder retraction, cylinder extension to a certain position and cylinder retraction to a certain position; a control unit, for inputting a signal enabling the corresponding input function module according to a target cylinder control function, so as to control the switching of the reversing valve to a target state, and outputting whether the state of the reversing valve is normal through the corresponding output function module, wherein the target state is the state of the reversing valve for realizing the target cylinder control function, and the target cylinder control function is any one of the cylinder control functions; The input function module includes an automatic function module, an automatic extension function module, an automatic retraction function module, an adjustment function module, a manual extension function module and a manual retraction function module; the output function module includes an extension indication function module and a retraction indication function module; and the control unit includes: A first control module, used for inputting a signal enabling the automatic function module and a signal enabling the automatic extension function module, so that the PLC program controls the switching of the reversing valve to a first conduction state, and prompts the extension indication function module whether the reversing valve is in the first conduction state, wherein the first conduction state is that the lower cylinder of the cylinder is connected to the channel of the pressure pump and the upper cylinder of the cylinder is connected to the channel of the atmosphere; A second control module is used to input a signal enabling the automatic function module and a signal enabling the automatic retraction function module, so that the PLC program controls the reversing valve to switch to a second conduction state, and prompts the retraction indication function module whether the reversing valve is in the second conduction state, wherein the second conduction state is that the upper cylinder of the cylinder is connected to the channel of the pressure pump and the lower cylinder of the cylinder is connected to the channel of the atmosphere; a third control module, used for inputting a signal enabling the adjustment function module and a signal enabling the manual extension function module, so that the first button controls the switching of the reversing valve to a first conduction state, and prompts the extension indication function module whether the reversing valve is in the first conduction state; The fourth control module is used to input a signal enabling the adjustment function module and a signal enabling the manual return function module, so that the second button controls the reversing valve to switch to the second conduction state, and prompts the reversing valve whether it is in the second conduction state through the return indication function module.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. A cylinder control system, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 6.
Citation Information
Patent Citations
Method for air cylinder action control
CN107939785A