Control method and device, electronic equipment, readable storage medium and chip

By acquiring mode information, determining the equipment body and control information in the valve control device, and realizing remote control of the valve through multi-bus communication, the problem that the valve control device in the prior art is solved, and the degree of automation and intelligence is improved.

CN119914737APending Publication Date: 2025-05-02CSSC SYST ENG RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411963323.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The existing valve control device cannot collect valve status information, and cannot realize remote control of the valve, and the degree of automation is low.

Method used

The mode information of the valve control device is obtained through the control panel, and the device main body receiving the control signal is determined. In response to the control signal sent by the device main body, the control information corresponding to each valve is determined, and control information is sent to each valve through the second bus to realize control.

Benefits of technology

It realizes the collection and remote control of valve status information, improves the degree of automation and intelligence in the refueling pipeline network, and reduces the work intensity of operators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119914737A_ABST
    Figure CN119914737A_ABST
Patent Text Reader

Abstract

The invention provides a control method and device, electronic equipment, a readable storage medium and a chip, and the method comprises the steps that mode information of a valve control device is obtained through a control panel, and the mode information comprises a remote mode and a local mode; determining an equipment main body for receiving the control signal according to the mode information; in response to a control signal sent by the equipment main body, control information corresponding to each valve is determined; and sending control information to each valve through the second bus so as to control the valve according to the control information. Remote control over the electric valve in the refueling pipe network can be achieved, the refueling efficiency is improved, the working intensity of operators is reduced, and the intelligent and automatic degree of refueling is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer instrumentation and control technology for a refueling pipe network, and in particular to a control method, device, electronic equipment, readable storage medium and chip. Background Art

[0002] At present, most valve control devices on the market are unable to provide valve status information such as the opening information and fault information of the controlled electric valve, and most valve control devices require operators to operate the device locally, and cannot achieve remote control, and have a low degree of automation. Summary of the invention

[0003] In view of this, the present invention aims to solve the problem that the valve control device is unable to collect valve status information and is unable to remotely control the valve.

[0004] Specifically, the present invention is achieved through the following technical solutions:

[0005] An embodiment of a first aspect of the present invention provides a control method.

[0006] An embodiment of the second aspect of the present invention provides a control device.

[0007] An embodiment of a third aspect of the present invention provides an electronic device.

[0008] An embodiment of a fourth aspect of the present invention provides a readable storage medium.

[0009] An embodiment of the fifth aspect of the present invention provides a chip.

[0010] The control method provided by the present invention includes: obtaining mode information of a valve control device through a control panel, wherein the mode information includes a remote mode and a local mode; determining a device body that receives a control signal according to the mode information; determining control information corresponding to each valve in response to a control signal sent by the device body; and sending control information to each valve through a second bus to control the valve according to the control information.

[0011] In some technical solutions, optionally, the device body receiving the control signal is determined according to the mode information, including: if the mode information is a remote mode, the device body is a superior device; if the mode information is a local mode, the device body is a control panel.

[0012] In some technical solutions, optionally, in response to a control signal sent by the device body, control information corresponding to each valve is determined, including: if the device body is an upper-level device, obtaining a message sent by the upper-level device through the first bus; and determining the control information corresponding to each valve based on the message.

[0013] In some technical solutions, optionally, in response to a control signal sent by a device body, control information corresponding to each valve is determined, and it also includes: if the device body is a control panel, local information sent by the control panel is obtained; and control information corresponding to each valve is determined based on the local information.

[0014] In some technical solutions, optionally, before responding to the control signal sent by the device body and determining the control information corresponding to each valve, it also includes: the valve control device obtains the status information of all valves through the second bus; the valve control device sends the status information to the device body; and determines the control signal sent by the device body to the valve control device based on the status information.

[0015] In some technical solutions, optionally, the valve control device is a PLC control device, the first bus is a CAN bus, and the second bus is an RS485 bus.

[0016] The second aspect of the present invention provides a control device for a valve control device, the valve control device includes a controller and a control panel, the valve control device is connected to an upper-level device via a first bus, and the valve control device is connected to multiple valves via a second bus, including: an acquisition module, used to obtain mode information of the valve control device through the control panel, wherein the mode information includes a remote mode and a local mode; a determination module, used to determine a device body receiving a control signal according to the mode information; the determination module is also used to determine the control information corresponding to each valve in response to the control signal sent by the device body; a sending module, used to send control information to each valve through the second bus to control the valve according to the control information.

[0017] An embodiment of the third aspect of the present invention provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the control method in the first aspect.

[0018] An embodiment of the fourth aspect of the present invention provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the control method in the first aspect are implemented.

[0019] An embodiment of the fifth aspect of the present invention provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the control method in the first aspect.

[0020] The technical solution provided by the present invention brings at least the following beneficial effects:

[0021] The invention provides a multi-bus, multi-communication protocol equipment solution for an intermediate execution device, which comprehensively considers the design difficulty, cost budget, performance parameters and other requirements, realizes the communication between the control device and the controlled electric valve through the RS485 bus, meets the wiring cost, communication distance, number of nodes, anti-interference and other requirements, realizes the communication between the control device and the upper-level equipment through the CAN bus, meets the communication interactivity, real-time and other requirements, and adopts a PLC processor to realize the parsing and conversion between the RS485 bus communication instructions and the CAN bus communication instructions, realizes the remote control of the electric valve in the refueling network, improves the refueling efficiency, reduces the work intensity of the operators, and further improves the intelligence and automation of refueling. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0024] Figure 1 A schematic diagram of a control method according to an embodiment of the present invention;

[0025] Figure 2 A schematic diagram of a control method according to an embodiment of the present invention;

[0026] Figure 3 A schematic diagram of a control method according to an embodiment of the present invention;

[0027] Figure 4 A schematic diagram of a control method according to an embodiment of the present invention;

[0028] Figure 5 A schematic diagram of a control method according to an embodiment of the present invention;

[0029] Figure 6 A schematic diagram of the structure of a control device provided by an embodiment of the present invention;

[0030] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;

[0031] Figure 8 A schematic diagram of the structure of a valve control device provided by an embodiment of the present invention;

[0032] Fig. 9A schematic diagram of the structure of a PLC device provided in an embodiment of the present invention;

[0033] Fig.10 A software flow diagram of a PLC device provided in an embodiment of the present invention.

[0034] The corresponding relationship between the component names and numbers in the figure is as follows:

[0035] 500: upper level device; 601: first bus; 602: second bus; 700: valve control device; 701: controller; 702: control panel; 801: valve; 900: control device; 901: acquisition module; 902: determination module; 903: sending module; 1000: electronic device; 1109: memory; 1110: processor. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] See also Figure 1 The first aspect of the present invention provides a control method, comprising the following steps:

[0038] Step S102: obtaining mode information of the valve control device through the control panel, wherein the mode information includes a remote mode and a local mode;

[0039] Step S104: determining the device body receiving the control signal according to the mode information;

[0040] Step S106: In response to the control signal sent by the device body, determine the control information corresponding to each valve;

[0041] Step S108: Send control information to each valve via the second bus to control the valve according to the control information.

[0042] According to the control method provided by the present invention, first, the valve control device needs to obtain mode information, so as to clarify the current working mode, so as to determine the source of the control instruction and the subsequent processing flow. The determination of the mode information is usually achieved through the control panel on the valve control device. The control panel is equipped with a human-computer interaction interface, and the user can select the working mode of the valve control device through physical buttons, knobs, touch screens, etc. When the user selects the remote mode, the controller in the valve control device will first receive the remote mode signal sent by the control panel, and switch its own state to the remote control mode, while suspending the processing of the local control signal. In the remote mode, the device body that the controller waits for to send the control signal is the upper device. It should be noted that the upper device is a device with higher control authority, management capabilities or logical levels relative to the current device, and usually plays the role of a system manager or coordinator. It is responsible for issuing control instructions to the lower devices, allocating tasks or resources, and receiving status information fed back by the lower devices to achieve coordination and optimization of the overall system. After determining that the main body of the device is the superior device, the controller will enter the listening state through the communication module of the first bus, waiting for the superior device to send a control instruction (message). After receiving the control instruction sent by the superior device, the controller will parse the message content, including the target valve identification, operation type (such as opening the valve, closing the valve or adjusting the opening) and related parameter information, and generate specific control information based on the above information, and finally send it to the target valve through the second bus to achieve control of the target valve. When the user selects the local mode, the controller in the valve control device will first receive the local mode signal sent by the control panel, and switch its own state to the local control mode, and at the same time suspend the processing of the control instruction sent by the superior device through the first bus. In the local mode, the main body of the device that the controller waits for to send the control signal is the control panel. The user can select the target valve and set the operation type and related parameters through the control panel. After the controller receives the operation instruction input by the user through the control panel, it parses the instruction content from the control panel, and generates specific control information according to the target valve identification and operation requirements, and finally sends it to the target valve through the second bus to achieve precise control of the target valve.

[0043] It should be noted that the first bus needs to have high real-time performance, high reliability and strong anti-interference ability, and can meet the high efficiency requirements of communication between the valve control device and the upper device, usually the CAN bus. The CAN bus can ensure that high-priority control instructions can be transmitted first through an arbitration mechanism based on identifiers, thereby achieving real-time response. At the same time, its built-in error detection mechanism and automatic retransmission function can effectively improve the reliability of data transmission and avoid information loss or errors caused by environmental interference or communication failures. Therefore, it is very suitable for scenarios that require high interactivity and high real-time performance, such as the control and status information exchange between the valve control device and the upper device. In addition, the second bus needs to have long-distance transmission capability, multi-point communication support, strong anti-interference performance and low cost, and generally meet the communication requirements between the valve control device and multiple electric valves, usually the RS485 bus. The RS485 bus can effectively resist electromagnetic interference in the industrial field through differential signal transmission, and supports connecting multiple devices through a simple master-slave architecture, which is very suitable for scenarios such as refueling pipelines where valves are widely distributed and numerous. It can be understood that the RS485 bus is usually combined with a standardized communication protocol, with a unified data format and command set. When there are multiple models of valves that need to be controlled, the RS485 bus can also independently address and operate each valve through the address recognition mechanism, without changing the bus structure or control logic due to different valve models.

[0044] It should be emphasized that after receiving the control instruction, the valve will not only perform the corresponding operation according to the instruction content, but also feedback the execution result, status information and fault information to the valve control device through the second bus. After receiving the feedback information of the valve, the valve control device can upload the status information to the upper device through the first bus as needed. After receiving the status information of the valve, the upper device will determine the control method of the valve according to the status information, and transmit the control instruction to the valve control device through the first bus to realize remote control of the valve, and finally form an accurate and efficient remote control link.

[0045] The following is a specific implementation case that can implement the present invention:

[0046] like Figure 8 As shown, a fueling network electric valve control device based on a multi-bus protocol is located between the upper device and the electric valve as an intermediate execution device. The device is mainly in the form of a box, and the device components are installed and fixed through the box shell and its accessories. The control device is installed as an intermediate device and can be installed in an equipment room at a certain distance from the fueling network. It is connected to the electric valve through the RS485 bus and connected to the upper device through the CAN bus to realize remote control of the valve. In the normal working mode, the electric valve can be remotely controlled by the upper device through the remote mode.

[0047] like Fig. 9As shown, each PLC module is connected through the PLC9 slot backplane module. The power module uses IM30-P1AC220 to power other PLC modules. The working characteristics are rated 220VAC input, input frequency 47~63Hz, 24VDC output, output voltage accuracy ≤3%, and rated output power of 100W. It has input under-overvoltage protection, output overcurrent protection and output short-circuit protection, and provides power for other PLC modules. The CPU (central processing unit) module and the single-line electrical coupling module are the logic control and data processing cores, parsing and processing the message instructions of the CAN communication module and the RS485 communication module, collecting the input signal of the digital input module, and controlling the output signal of the digital output module. The CPU module is responsible for executing the working cycle of "reading input → program execution → processing communication request → self-diagnosis → writing output → reading input". The CPU module has a main frequency of 400MHz and supports the EtherCAT bus mode. The single-line electric coupling module connects other EtherCAT devices through single-mode communication to achieve expansion functions. The CPU module uses IM30-X1001 and the single-line electric coupling module uses IM30-1000. The digital input module realizes the function of panel device status acquisition. The 32-channel digital quantity signals on site enter the module through the field wiring terminal and are isolated from the site through the optical coupler. The module adopts a leakage input. When the input is 13V~30VDC, it is logic 1; when the input voltage is less than or equal to 5VDC, it is logic 0. The digital output module realizes the control function of the panel indicator light and the intermediate relay contact: the controller writes the process data to IM30-T2132 through the backplane bus EBUS, and realizes the output of logic high and low levels by controlling the closure of the 32-channel MOSFET electronic switch output. When the output signal is high, the solid-state power relay is turned on, the electronic switch is closed, and the digital quantity "1" output is realized. When the output signal is low, the solid-state power relay is turned off, the electronic switch is disconnected, and the digital quantity "0" output is realized. The digital input module uses IM30-T1032, and the digital output module uses IM30-T2132. The CAN communication module realizes the CAN message information interaction function with the upper device, realizes the conversion between EtherCAT bus protocol and CAN protocol, and performs EtherCAT communication through the backplane bus. It supports up to 16 CAN slave devices for connecting CAN slave devices to the EtherCAT bus network of the Chaoyu series PLC, and realizes the interconnection between CAN slave devices and Chaoyu series PLC. The CAN communication module uses IM30-E6200. The RS485 communication module realizes the RS485 bus message information interaction function with the electric valve, supports up to 32 Modbus slaves, and has an operating temperature of -40℃~+65℃. It realizes the conversion between EtherCAT bus protocol and RS485 protocol, and performs EtherCAT communication through the backplane bus.It is used to connect RS485 slave devices to the EtherCAT bus network of the Chaoyu series PLC to achieve the interconnection between RS485 slave devices and Chaoyu series PLC. The RS485 communication module uses IM30-E6030. The RS485 hub realizes the isolation function of each RS485 communication node to prevent the situation where all valve communication failures may occur due to a short circuit in a single bus control.

[0048] Fig.10 As shown, a PLC software flow chart of a fueling pipe network electric valve control device based on a multi-bus protocol includes:

[0049] Step S302: self-check;

[0050] Step S304: whether to adjust the valve;

[0051] Step S306: reading setting parameters;

[0052] Step S308: whether to control the valve;

[0053] Step S310: reading setting parameters;

[0054] Step S312: whether there is a control valve;

[0055] Step S314: output valve control instructions.

[0056] The control device can periodically complete the collection and processing of the status information of the remote control valve and upload it to the superior device. When the control device receives the parameter setting message from the superior device, it will solve the valve opening, valve opening time and other command information as the basis for subsequent valve control, and write it into the E2PROM inside the PLC; otherwise, it will read the setting parameters solidified in the E2PROM inside the PLC as the basis for valve control. Determine the working mode of the device. When it is in local mode: the control source is the status of the corresponding valve button on the panel. When the local valve opening command is detected, the intermediate relay contact of the corresponding emergency valve closing is controlled to close, and the control command is sent to the remote control valve through the RS485 bus. At the same time, the status of the valve indicator light on the corresponding panel should be controlled. The control process is until the valve moves to the target state of the control command. When in remote mode, the control command source is the CAN command message sent by the superior device, and the rest of the process is consistent with the local mode.

[0057] In some embodiments, optionally, Figure 2 As shown, according to the mode information, determining the device body receiving the control signal includes:

[0058] Step S1042: If the mode information is remote mode, the device body is the upper-level device;

[0059] Step S1044: If the mode information is the local mode, the device body is the control panel.

[0060] In this embodiment, when the user selects the remote mode on the control panel, that is, the mode information is the remote mode, the valve control device will switch its own state to the remote control mode, and the controller determines that the device body waiting to receive the control signal is the upper device, and suspends the processing of the local control signal to ensure the priority and execution accuracy of the remote command. Then, the valve control device establishes communication with the upper device through the first bus (usually the CAN bus), and starts to monitor and receive the control command message sent by the upper device. These messages contain important contents such as the identification of the target valve, the operation type (such as opening the valve, closing the valve or adjusting the opening), parameter information (such as the target opening value) and the check code. When the user selects the local mode on the control panel, that is, the mode information is the local mode, the user can directly operate through the control interface of the device itself. At this time, the control logic and operation instructions of the device mainly rely on the control panel, rather than the external system.

[0061] In some embodiments, optionally, Figure 3 As shown, in response to the control signal sent by the device body, the control information corresponding to each valve is determined, including:

[0062] Step S1062: if the device body is an upper-level device, obtaining a message sent by the upper-level device through the first bus;

[0063] Step S1064: Determine the control information corresponding to each valve according to the message.

[0064] In this embodiment, when the device body is determined to be a superior device, the valve control device needs to receive control messages sent by the superior device through the first bus (which may be a communication protocol such as a CAN bus, a Modbus bus, etc.). These messages are generated by the superior device based on the valve status information, and contain operating instructions and related parameters about the valve. After receiving the message, the valve control device will parse its content and extract specific control information related to each valve, such as the valve number, target switch state, opening parameters, pressure control target value, etc. Subsequently, the valve control device determines the corresponding control information for each valve based on the parsed instructions to ensure that each valve is accurately adjusted to the state corresponding to the instructions of the superior device according to the control information.

[0065] In some embodiments, optionally, Figure 4 As shown, in response to the control signal sent by the device body, the control information corresponding to each valve is determined, and also includes:

[0066] Step S1063: If the device body is a control panel, obtain local information sent by the control panel;

[0067] Step S1065: Determine the control information corresponding to each valve based on local information.

[0068] In this embodiment, when the device body is determined to be a control panel, the valve control device obtains local information sent by the control panel through its local interface (such as a button, touch screen or knob). Local information usually includes operation instructions or parameter settings directly input by the user, such as the target switch state of the valve, the opening adjustment value, the flow or pressure target, etc. After receiving these local information, the valve control device will parse the specific instructions related to each valve, generate corresponding control information, and use it to guide the valve to perform the corresponding operation, ensuring that the device operates accurately according to the requirements set by the user through the control panel.

[0069] In some embodiments, optionally, Figure 5 As shown, before determining the control information corresponding to each valve in response to the control signal sent by the device body, it also includes:

[0070] Step S1052: the valve control device obtains status information of all valves through the second bus;

[0071] Step S1054: the valve control device sends status information to the device body;

[0072] Step S1056: Determine the control signal sent by the equipment body to the valve control device according to the status information.

[0073] In this embodiment, before determining the control information corresponding to each valve, the valve control device needs to obtain the status information of all valves in the system through the second bus. These status information are real-time feedback data of the current operating status of each valve, such as the switch status (open or closed), opening size, whether the operation is normal or whether there is a fault, etc. of each valve, which reflects the specific status of the valve in the current system operation. Next, the valve control device will send these acquired status information to the device body. After receiving these status information, the device body will analyze and process them to determine whether the valve needs to be regulated, thereby generating a specific control signal. The control signal is a clear instruction issued by the device body to the valve control device, which is used to instruct how the valve is operated, such as which valves need to be opened or closed, whether some valves need to adjust the opening, and adjust to a specific opening percentage. After the device body generates a control signal and sends it back to the valve control device through communication, the valve control device will further parse the specific control information of each valve according to the received control signal, thereby completing the control of the valve. It can be understood that in this process, a closed-loop control mechanism is formed through the feedback of status information and the generation of control signals. This mechanism ensures that the main body of the equipment can be dynamically adjusted according to the real-time status of the valve, thereby achieving precise and efficient control operations.

[0074] In some embodiments, optionally, the valve control device is a programmable logic controller (PLC) control device, the first bus is a controller area network bus (CAN), and the second bus is an RS485 bus (i.e., a bus with a serial communication standard of RS485).

[0075] In this embodiment, the valve control device is controlled by PLC, the first bus is CAN bus, and the second bus is RS485 bus. The purpose of this structural design is to give full play to the technical advantages of each communication bus, optimize system performance, and achieve efficient, reliable and flexible control. PLC (Programmable Logic Controller) as the core control unit has powerful logic processing and data computing capabilities, can stably execute complex control algorithms, and ensure accurate operation and rapid response of valves. The application of PLC improves the programmability and maintainability of the system, making subsequent function expansion and parameter adjustment more convenient.

[0076] As the first bus, CAN bus (Controller Area Network) has the characteristics of high-speed communication, strong anti-interference ability and multi-master communication. Its communication rate can reach 1Mbps, meeting the high requirements of real-time control. CAN bus adopts differential signal transmission mode, which can effectively resist electromagnetic interference in industrial environment and ensure the reliability of data transmission. In addition, CAN bus supports multi-master communication mode, and each node in the network can actively send and receive data, which improves the flexibility and fault tolerance of the system. Using CAN bus to connect valve actuators can realize real-time and efficient control and status monitoring of multiple valves, ensuring rapid response and stable operation of the system.

[0077] As the second bus, RS485 bus has the advantages of long-distance transmission and multi-point communication. Its communication distance can reach several thousand meters, supporting up to 32 nodes under the bus topology, and is suitable for long-distance communication needs. Using RS485 bus for communication with remote monitoring center or other peripheral equipment can realize remote monitoring, data collection and parameter setting of valve control devices. This design method enables the system to meet the needs of high-speed real-time control on site, while taking into account the needs of remote communication and management, improving the overall performance and scope of application of the system.

[0078] By using CAN and RS485 buses at the same time, the system realizes the organic combination of local high-speed real-time control and remote data transmission. The CAN bus is responsible for short-distance, high-speed data exchange to ensure the coordinated work and real-time response between field devices; the RS485 bus is responsible for long-distance data transmission to meet the needs of remote monitoring and data management. This dual-bus structure improves the reliability of the system and avoids the bottlenecks and risks that may be caused by a single communication method. The combined application of multiple communication methods makes the system more adaptable and stable in complex industrial environments.

[0079] The PLC controller is used to process the control instructions of the upper equipment and the control instructions of the panel components, process the working status of the controlled electric valve, generate the control instructions of the electric valve through digital calculation and logic calculation, and upload the working status information of the controlled electric valve;

[0080] CAN bus communication module, used for communication between PLC controller and upper equipment, collects electric valve control instructions of upper equipment through CAN bus and transmits the working status information of the controlled electric valve after collection and processing by the control device;

[0081] RS485 communication module, used for PLC controller and electric valve control communication, transmits the control device to the electric valve control instructions through RS485 communication line and collects the working status information fed back by the controlled electric valve;

[0082] RS485 hub is used to increase the number of RS485 communication nodes, realize signal isolation, improve communication anti-interference ability, and build a stable and reliable RS485 communication system.

[0083] Digital input and output module, used for information exchange between PLC controller and panel devices, collects panel control information through level changes, outputs PLC controller calculation and processing results, and realizes the interaction between panel commands and indications and PLC;

[0084] The panel device realizes the interaction between the control device and the operator, and mainly includes: a 2-position knob switch for switching the local / remote working mode of the control device; an indicator light for indicating the working status and fault information of the control device; a panel light switch for electric valve control and valve working status indication in local mode; among which, the 2-position knob switch can switch the working mode of the control device by rotating the knob. When the knob is in the local mode, the control device collects the control instructions of the panel device, performs logical operations, and controls the controlled electric valve; when the knob is in the remote working mode, the control device receives the CAN control instructions transmitted by the upper device, performs digital and logical operations, generates valve control instructions, and controls the controlled electric valve.

[0085] The products are mainly composed of panel devices, PLC and its components, power devices, cabinets and their accessories.

[0086] The panel components mainly include:

[0087] 1) 2-position switch knob: used to switch the remote working mode and local working mode of the control device, connected to the PLC digital input module, and transmits mode switching signals through high and low level signals;

[0088] 2) Valve control button (1# valve button ~ 24# valve button): used in the local working mode of the control device, sending valve control instructions locally in the control device, connected to the PLC digital input module, and realizing valve control through high and low levels and control logic design;

[0089] 3) Valve indicator light (1# valve indicator light ~ 24# indicator light): used to indicate valve status, connected to the PLC digital output module;

[0090] 4) Run button: used to control the power on and off, located between the filter power supply and the switching power supply and PLC power supply module, and realizes the power supply control of the equipment by controlling the on and off of the circuit;

[0091] 5) Indicator lights (power indicator light, operation indicator light, self-test indicator light, fault indicator light): used to control the device status display. The power indicator light is connected to the main circuit breaker. When the main power is turned on, the indicator light lights up; the operation indicator light is connected to the switching power supply. After the switching power supply is powered, the operation indicator light lights up; the self-test indicator light and the fault indicator light are connected to the corresponding control relays, and the control relays are connected to the PLC digital output module. The corresponding indications are realized through control logic design.

[0092] PLC and its accessories mainly include:

[0093] 1) PLC power supply module: used to power each PLC module and connected to the power supply interface of each CPU module;

[0094] 2) Digital input module: collects level signals, connects to the switch power supply, valve control button, 2-position switch knob, and CPU module;

[0095] 3) Digital output module: outputs level signals, connected to control relays, power relays, and valve indicator lights, outputs corresponding levels according to control signals processed by the CPU, and realizes valve status indication, control and other functions;

[0096] 4) CAN communication module: used to realize communication with the upper-level equipment, connected to the upper-level equipment through the CAN bus, receiving valve control instructions and uploading valve status information, connected to the CPU module, and realizing information interaction between the CPU and the CAN bus;

[0097] 5) RS485 module: used to realize communication with the controlled electric valve, connected to the CPU, connected to each controlled electric valve through the RS485 bus, and realize information exchange between the CPU and the controlled electric valve;

[0098] 6) RS485 hub: used for RS485 communication node expansion, isolation protection, level adjustment and other functions, receives the signal output by the RS485 module, distributes, transfers and isolates it through the hub, and outputs it to the electric valve actuator;

[0099] 7) CPU module: used to realize data processing and logic operation of the control device, connected with RS485 module, CAN communication module, digital input module and digital output module to realize control logic.

[0100] Power devices include:

[0101] 1) Main circuit breaker: used to control the total power supply of the equipment;

[0102] 2) Circuit breaker (control power): used to control the control power of the control device, connected to the filter;

[0103] 3) Circuit breaker (valve power supply): used to control the valve power supply, connected to the power relay;

[0104] 4) Filter: used to improve the power quality, connect the operation button, and supply power to the control device switch power supply and PLC power supply module;

[0105] 5) Switching power supply: convert 220VAC to 24VDC, provide high level for PLC digital output module, etc.;

[0106] 6) Control relay: used to control the on / off of the indicator light circuit, located between the indicator light and the digital output module;

[0107] 7) Power relay: used to control the valve power supply, located between the digital output module and the power supply interface of the controlled electric valve.

[0108] like Figure 6 As shown, the second aspect of the present invention provides a control device 900, which is used for a valve control device 700. The valve control device includes a controller 701 and a control panel 702. The valve control device 700 is connected to an upper device 500 through a first bus 601. The valve control device 700 is connected to a plurality of valves 801 through a second bus 602. The control device 900 includes:

[0109] The acquisition module 901 is used to acquire the mode information of the valve control device through the control panel, wherein the mode information includes a remote mode and a local mode; the determination module 902 is used to determine the device body receiving the control signal according to the mode information; the determination module 902 is also used to determine the control information corresponding to each valve in response to the control signal sent by the device body; the sending module 903 is used to send the control information to each valve through the second bus to control the valve according to the control information.

[0110] like Figure 7 As shown, the third aspect of the present invention provides an electronic device 1000, including a processor 1110, a memory 1109, and a program or instruction stored in the memory 1109 and executable on the processor 1110. When the program or instruction is executed by the processor 1110, the various processes of the embodiment of the above-mentioned control method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0111] Among them, the processor 1110 is used to obtain mode information of the valve control device through the control panel, wherein the mode information includes a remote mode and a local mode; determine the device body that receives the control signal according to the mode information; determine the control information corresponding to each valve in response to the control signal sent by the device body; and send the control information to each valve through the second bus to control the valve according to the control information.

[0112] Optionally, the processor 1110 is further configured to: if the mode information is a remote mode, the device body is a superior device; if the mode information is a local mode, the device body is a control panel.

[0113] Optionally, the processor 1110 is configured to obtain a message sent by the upper-level device through the first bus if the device body is an upper-level device; and determine control information corresponding to each valve according to the message.

[0114] Optionally, the processor 1110 is further configured to obtain local information sent by the control panel if the device body is a control panel; and determine control information corresponding to each valve based on the local information.

[0115] Optionally, the processor 1110 is also used for the valve control device to obtain status information of all valves through the second bus; the valve control device sends the status information to the device body; and according to the status information, determines the control signal that the device body sends to the valve control device.

[0116] The fourth aspect of the present invention provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the embodiment of the above-mentioned control method are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0117] The methods may be implemented in a variety of different ways depending on the specific features and / or example applications. For example, the methods may be implemented by a combination of hardware, firmware, and / or software. For example, in a hardware implementation, the processor may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, electronic devices, other device units for performing the above functions, and / or combinations thereof.

[0118] A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above devices, but is not limited thereto. A non-exhaustive list of more specific examples of computer readable storage media includes: portable computer floppy disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory card, floppy disk, encoding mechanical device (such as a punch card or a groove with a raised structure with instructions recorded) and any suitable combination of the above devices. The computer readable storage medium used herein should not be understood as a transmission signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium, or an electrical signal transmitted through a wire, etc.

[0119] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0120] The fifth aspect of the present invention provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the embodiments of the above-mentioned control method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0121] Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although the features may work as above in certain combinations and even initially claim protection, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.

[0122] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.

[0123] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.

[0124] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0125] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A control method, characterized in that: Used for a valve control device, the valve control device includes a controller and a control panel, the valve control device is connected to a superior device via a first bus, the valve control device is connected to a plurality of valves via a second bus, and the control method includes: Acquiring mode information of the valve control device through the control panel, wherein the mode information includes a remote mode and a local mode; Determining a device subject receiving a control signal according to the mode information; In response to a control signal sent by the device body, determining control information corresponding to each of the valves; The control information is sent to each of the valves through the second bus to control the valve according to the control information.

2. The control method according to claim 1, characterized in that: The step of determining a device subject receiving a control signal according to the mode information includes: If the mode information is the remote mode, the device body is the upper-level device; If the mode information is the local mode, the device body is the control panel.

3. The control method according to claim 2, characterized in that: The step of determining control information corresponding to each valve in response to a control signal sent by the device body includes: If the device body is the upper-level device, obtaining a message sent by the upper-level device through the first bus; According to the message, control information corresponding to each of the valves is determined.

4. The control method according to claim 2, characterized in that: The step of determining the control information corresponding to each valve in response to the control signal sent by the device body further comprises: If the device body is the control panel, obtaining local information sent by the control panel; The control information corresponding to each of the valves is determined according to the local information.

5. The control method according to claim 1, characterized in that: Before determining the control information corresponding to each valve in response to the control signal sent by the device body, the method further includes: The valve control device obtains status information of all the valves through the second bus; The valve control device sends the status information to the equipment body; A control signal sent by the device body to the valve control device is determined according to the status information.

6. The control method according to claim 1, characterized in that: The valve control device is a PLC control device, the first bus is a CAN bus, and the second bus is an RS485 bus.

7. A control device, characterized in that: Used in a valve control device, the valve control device includes a controller and a control panel, the valve control device is connected to a superior device through a first bus, and the valve control device is connected to a plurality of valves through a second bus, including: An acquisition module, configured to acquire mode information of the valve control device through the control panel, wherein the mode information includes a remote mode and a local mode; A determination module, used to determine a device body receiving a control signal according to the mode information; The determination module is further used to determine the control information corresponding to each valve in response to the control signal sent by the device body; A sending module is used to send the control information to each valve through the second bus so as to control the valve according to the control information.

8. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the control method as claimed in any one of claims 1 to 6.

9. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the control method according to any one of claims 1 to 6 are implemented.

10. A chip, characterized in that: The chip includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the steps of the control method according to any one of claims 1 to 6.