A distributed control method and system for multi-head air compressor

By introducing a multi-head air compressor distributed control method into the air compressor and using the communication link between the master controller and the slave controller, the problem that the existing air compressor controller can only control one air compressor is solved. , achieving convenient operation and cost-effectiveness when adding an air compressor.

CN118499230BActive Publication Date: 2024-10-01XIKUO ELECTRONIC TECH (TAIZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410961393.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-01
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

Existing air compressor controllers can only control one air compressor, which results in the need to repeatedly add controllers when increasing cylinder pressure in scenarios that require a large amount of compressed air, resulting in inconvenient operations for users and repeated investment in controller accessories.

Method used

Using the distributed control method of multi-head air compressor, a communication link is established between the main controller and the slave controller. The input buttons and display screen are set on the master controller, and the slave controller does not need to be set. The master controller analyzes and controls The slave controller realizes the management and data reading and writing of multiple slave controllers. The user only needs to operate in front of the master controller.

Benefits of technology

Air compressors can be added without adding a main controller, and controller accessories can be reused. Users only need to operate and view in front of one main controller, which improves operational convenience and cost-effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118499230B_ABST
    Figure CN118499230B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of air compressor control, and discloses a distributed control method and system for a multi-head air compressor, the method comprising: setting a master controller and a slave controller, and establishing a communication link between the master controller and the slave controller; inputting a control instruction to the master controller, and identifying the master instruction and the slave instruction from the control instruction; if the master instruction is identified, controlling the air compressor corresponding to the master controller according to the master instruction; if the slave instruction is identified, sending the slave instruction to the slave controller through the communication link; the slave controller controls the air compressor corresponding to the slave controller in response to the slave instruction, and returns a response signal through the communication link; querying the working parameters of the master controller and the slave controller in turn based on the communication link; displaying the working parameters of the master controller and the working parameters of the slave controller and the response signal in real time based on the results of the query in turn based on the master controller or based on the slave controller; and being able to reuse controller accessories when adding air compressors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of air compressor control, and in particular to a distributed control method and system for a multi-head air compressor. Background Art

[0002] An air compressor is a machine that compresses air into high-pressure gas. It is widely used in various industrial fields, such as manufacturing, construction, food processing, etc.

[0003] Each air compressor needs to be equipped with a controller so that the working state of the air compressor can be adjusted, for example, the working pressure and compression power of the air compressor. At present, the controller of the air compressor can only control one air compressor, so that the compressed gas in one cylinder drops below the working pressure in a relatively short time.

[0004] However, in work scenarios that require a large amount of compressed air, if you want to increase the cylinder pressure, you can only do so by adding air compressors and controllers. This repeated addition of controllers will result in repeated investment in key inputs and LCD displays on the controllers. In addition, users need to constantly move to each controller to operate and view, which brings great inconvenience to users. Summary of the invention

[0005] In order to increase the number of air compressors and reuse the controller accessories of the air compressors, the present application provides a distributed control method and system for a multi-head air compressor.

[0006] In the first aspect, the present application provides a distributed control method for a multi-head air compressor, which adopts the following technical solution:

[0007] A distributed control method for a multi-head air compressor comprises the following steps:

[0008] Provide a master controller and one or more slave controllers, and establish a communication link between the master controller and the slave controllers;

[0009] Initializing the master controller and the slave controller;

[0010] Inputting control instructions to the master controller, and identifying master instructions and slave instructions from the control instructions;

[0011] If the main instruction is identified, the air compressor corresponding to the main controller is controlled according to the main instruction;

[0012] If the slave instruction is identified, the slave instruction is sent to the slave controller through the communication link; the slave controller controls the air compressor corresponding to the slave controller in response to the slave instruction, and returns a response signal through the communication link;

[0013] querying the working parameters of the master controller and the slave controller in turn based on the communication link;

[0014] Based on the master controller or based on the slave controller, the working parameters of the master controller and the working parameters of the slave controller and the response signal are displayed in real time according to the result of the alternate query.

[0015] By adopting the above technical solution, when it is necessary to add an additional air compressor, there is no need to add a main controller, but a slave controller can be added. Multiple slave controllers can be added to the main controller through a communication link and the slave controllers can be controlled and data can be read and written. The main controller is provided with input buttons and a display screen, and there is no need to set input buttons and a display screen on the slave controller. Instructions are input by typing buttons, and the main controller analyzes the instructions and then controls the corresponding air compressor or the corresponding slave controller. The slave controller responds to the control and returns a response signal. The main controller can display the working parameters of the main controller and the working parameters of the slave controller and the response signal through the display screen; when adding an air compressor, the controller accessories of the air compressor can be reused, so that the user only needs to operate and view in front of one main controller.

[0016] Optionally, the step of establishing a communication link between the master controller and the slave controller further includes the following sub-steps:

[0017] The master controller has a first master protocol and a second master protocol built in, and the slave controller also has a first slave protocol and a second slave protocol built in;

[0018] The master controller performs handshake with the slave controller through the first master protocol; the slave controller responds to the handshake using the first slave protocol after detecting the change of the electrical signal on the communication link;

[0019] If the handshake of the first slave protocol is successful, the slave controller returns a handshake success signal to the master controller using the first slave protocol, and the master controller outputs communication establishment success information; if the handshake of the first slave protocol fails, the slave controller responds to the handshake using the second slave protocol; if the handshake of the second slave protocol is successful, the slave controller returns a handshake success signal to the master controller using the second slave protocol, and the master controller outputs communication establishment success information; if the handshake of the second slave protocol fails, a handshake failure signal is returned;

[0020] The master controller performs handshake with the slave controller through the second master protocol in response to the handshake failure signal; the slave controller responds to the handshake using the first slave protocol after detecting the change of the electrical signal on the communication link;

[0021] If the handshake of the first slave protocol is successful, the slave controller returns a handshake success signal to the master controller using the first slave protocol, and the master controller outputs communication establishment success information; if the handshake of the first slave protocol fails, the slave controller responds to the handshake using the second slave protocol; if the handshake of the second slave protocol is successful, the slave controller returns a handshake success signal to the master controller using the second slave protocol, and the master controller outputs communication establishment success information; if the handshake of the second slave protocol fails, a handshake failure signal is returned, and the master controller outputs a communication establishment failure signal.

[0022] By adopting the above technical solution, when the master controller does not know which built-in protocol the slave controller has, the master controller traverses the internal protocols and performs a handshake operation with the built-in protocol of the slave controller, thereby facilitating finding the corresponding communication protocol and establishing a communication link.

[0023] Optionally, the communication link includes an RS485 bus, a USB bus, an SPI bus, an I2C bus, an RS232 bus, an Ethernet bus, a Bluetooth bus and / or a Wi-Fi bus.

[0024] By adopting the above technical solution, multiple built-in protocols can establish multiple communication links, which is beneficial to improving the success rate of establishing communication links between the main controller and the slave controller, and also establishes a hardware foundation for subsequent screening of communication links with stronger connection strength.

[0025] Optionally, the communication link includes a wired link and a wireless link;

[0026] The method further comprises the steps of:

[0027] A wired link and a wireless link are established between the master controller and the slave controller; and a signal connection strength between the master controller and the slave controller is detected as a wired connection strength and a wireless connection strength;

[0028] If the wired connection strength is greater than the wireless connection strength, the wired link is used as the primary link and the wireless link is used as the secondary link; otherwise, the wireless link is used as the primary link and the wired link is used as the secondary link;

[0029] The number of the slave controllers mounted on the primary link is greater than the number of the slave controllers mounted on the secondary link.

[0030] By adopting the above technical solution, the signal connection strength can be communication attributes such as transmission rate, data packet loss rate or wireless signal strength. Selecting the primary link and the secondary link according to the communication data can make the communication link between the master controller and the slave controller more stable.

[0031] Optionally, the method further comprises the following steps:

[0032] The quantity ratio between the number of slave controllers on the primary link and the number of slave controllers on the secondary link is adjusted according to the positive correlation between the strength ratio of the wired connection strength and the wireless connection strength; the larger the strength ratio, the larger the quantity ratio, and the smaller the strength ratio, the smaller the quantity ratio.

[0033] By adopting the above technical solution, the quantity ratio is adjusted according to the strength ratio, and the distribution effect of the mounted load between the communication links is optimized, which can maximize the use of the communication resources of the communication links and improve the communication control effect.

[0034] Optionally, the method further comprises the following steps:

[0035] Some or all of the slave controllers are mounted on the main link;

[0036] When the signal strength of the primary link decreases by more than a preset interference value, all the slave controllers on the primary link are mounted on the secondary link;

[0037] Shut down the primary link and change the secondary link to the new primary link;

[0038] A new communication link is established, and the new communication link is used as the new secondary link.

[0039] By adopting the above technical solution, the mounted load on the main link is adjusted according to the degree of signal strength reduction, so that emergency operation can be performed when an abnormality occurs in the main link to ensure the communication stability between the main controller and the slave controller.

[0040] Optionally, the step of querying the working parameters of the master controller and the slave controller in turn further includes the following steps:

[0041] Acquiring the cylinder air pressures controlled by all the slave controllers;

[0042] Sorting the slave controllers according to the cylinder gas pressure to obtain a slave control sequence;

[0043] Query and control the slave controller corresponding to the control sequence according to a set query cycle, and automatically control the slave controller and update the displayed working parameters of the slave controller and the response signal each time the query is made;

[0044] Calculating the discrete degree value of the control sequence, the calculation formula of the discrete degree value is the standard deviation algorithm;

[0045] The query period is adjusted inversely according to the discrete degree value; the larger the discrete degree value is, the shorter the query period is, and the smaller the discrete degree value is, the longer the query period is.

[0046] By adopting the above technical solution, the query cycle is adjusted according to the discrete degree value of the control sequence. A large discrete degree value indicates that the quality error between the air compressors of the slave controller is large, thereby shortening the query cycle and being able to quickly and timely reflect the working conditions of the air compressors of the slave controller.

[0047] Optionally, the step of querying the working parameters of the master controller and the slave controller in turn further includes the following steps:

[0048] Obtaining the damping of the change of the cylinder air pressure controlled by all the slave controllers;

[0049] Sorting the slave controllers according to the variable damping to obtain a slave control sequence;

[0050] Query and control the slave controller corresponding to the control sequence according to a set query cycle, and automatically control the slave controller and update the displayed working parameters of the slave controller and the response signal each time the query is made;

[0051] Calculating the discrete degree value of the control sequence, the calculation formula of the discrete degree value is the average difference algorithm;

[0052] The query period is adjusted according to the positive correlation of the discrete degree value; the larger the discrete degree value is, the longer the query period is, and the smaller the discrete degree value is, the shorter the query period is.

[0053] By adopting the above technical solution, the larger the discrete value of the variable damping is, the more abnormally large the variable damping is in the control sequence. The larger the variable damping is, the longer the cycle is, and the lower the control frequency is, thereby preventing the control system from over-oscillation.

[0054] Optionally, the step of displaying the working parameters of the slave controller and the response signal further includes the following sub-steps:

[0055] The display process of the working parameters of the slave controller is set to fade in and fade out;

[0056] The fade-in and fade-out time is positively correlated with the weighted average value of all the working parameters of the corresponding slave controller. The larger the weighted average value, the longer the fade-in and fade-out time, and the smaller the weighted average value, the shorter the fade-in and fade-out time;

[0057] The working parameters include voltage value, current value and cylinder pressure value, and the corresponding weighted values ​​are a, b and c.

[0058] By adopting the above technical solution, the fade-in and fade-out time is changed by the working parameters, so that the change of the working parameters can be reflected in the display effect, which is conducive to observing the change trend of the working parameters of the slave controller.

[0059] In the second aspect, the present application provides a multi-head air compressor distributed control system, which adopts the following technical solution:

[0060] A multi-head air compressor distributed control system comprises a processor, wherein the processor runs a program of any one of the multi-head air compressor distributed control methods described above.

[0061] In summary, the present application includes at least one of the following beneficial technical effects: when it is necessary to add an additional air compressor, there is no need to add a main controller, but a slave controller can be added. The main controller can add multiple slave controllers through a communication link and control and read and write data to the slave controllers. The main controller is provided with input buttons and a display screen. There is no need to set input buttons and a display screen on the slave controller. Instructions are entered by typing buttons, the main controller analyzes the instructions and then controls the corresponding air compressor or the corresponding slave controller. The slave controller returns a response signal in response to the control. The main controller can display the working parameters of the main controller and the working parameters of the slave controller and the response signal through the display screen; when adding an air compressor, the controller accessories of the air compressor can be reused, so that the user only needs to operate and view in front of one main controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 The invention is a step diagram of a distributed control method for a multi-head air compressor.

[0063] Figure 2 This is a schematic diagram of an air pressure intelligent controller with one master and multiple slaves.

[0064] Figure 3 It is an air pressure intelligent controller with master and slave modes.

[0065] Figure 4 It is a diagram of the sub-steps for establishing a communication link between the master controller and the slave controller. DETAILED DESCRIPTION

[0066] Embodiments of the present application are described in detail below, examples of which are shown in the accompanying drawings.

[0067] In the description of this specification, the description with reference to the terms "certain embodiments", "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0068] The present application embodiment discloses a distributed control method for a multi-head air compressor, referring to Figure 1 and Figure 2 and Figure 3 , including the following steps:

[0069] A main controller and one or more slave controllers are provided, and a communication link is established between the main controller and the slave controller. Both the main controller and the slave controller are arranged in the head of the air compressor. The main controller is connected with a power module, a communication module and multiple sensor modules, and is also connected with input buttons and an LCD display, or is connected with a touch display. The communication module includes a wired communication module and a wireless communication module, which are used to establish multiple or multiple communication links. The communication link may include an RS485 bus, a USB bus, an SPI bus, an I2C bus, an RS232 bus, an Ethernet bus, a Bluetooth bus and / or a Wi-Fi bus. Built-in multiple protocols can establish multiple communication links, which is conducive to improving the success rate of establishing a communication link between the main controller and the slave controller, and also establishes a hardware foundation for the subsequent screening of communication links with stronger connection strength.

[0070] The main controller is equipped with air sensors, relays, control switches, and protection switches. The hardware of these units is existing technology and will not be described in detail in this article. Each air pressure main controller has independent inputs and outputs. These inputs are convenient for users to start and stop the air compressor, set the working air pressure, and even set the automatic or manual working mode; while the outputs are convenient for users to view the working parameters of the air compressor, such as the start and stop status, the current working voltage and current of the compressor, and the cylinder pressure. However, when it is necessary to increase the cylinder pressure, it is necessary to add an air compressor and an air compressor controller at the same time. Users need to check the working status of the air compressor and the cylinder and control the air pressure by operating and viewing the main controller in front of the main controller.

[0071] Initialize the master and slave controllers. After connecting the hardware, power on, start and initialize the master and slave controllers, and then establish a communication link between the master and slave controllers.

[0072] The master controller has a first master protocol and a second master protocol built in, and the slave controller also has a first slave protocol and a second slave protocol built in. For example, the first master protocol is the RS485 bus protocol, the second master protocol is the Bluetooth bus protocol; the first slave protocol is the RS485 bus protocol, and the second slave protocol is the Wi-Fi bus protocol.

[0073] The master controller shakes hands with the slave controller through the first master protocol; the slave controller uses the first slave protocol to respond to the handshake after detecting the change of the electrical signal on the communication link. For example, the master controller sends data to the RS485 bus through the built-in RS485 bus module. At this time, the slave controller receives the data on the RS485 bus through the built-in RS485 bus module and returns the correct response signal, which means the handshake is successful. Or if the slave controller does not have an RS485 bus module, it uses the built-in A / D module of the slave controller to collect the change of the electrical signal on the RS485 bus, and uses the pin to simulate the RS485 bus for the correct response, and returns the correct response signal, which means the handshake is successful. If the handshake of the first slave protocol is successful, the slave controller uses the first slave protocol to return the handshake success signal to the master controller, and the master controller outputs the communication establishment success information.

[0074] When the slave controller receives data on the RS485 bus through the built-in RS485 bus module, but does not return any data or does not return the correct response signal, the handshake fails. Or if the slave controller does not have an RS485 bus module, the built-in A / D module of the slave controller collects electrical signal changes on the RS485 bus, does not use pins to simulate the RS485 bus for correct response, and does not return the correct response signal, the handshake fails. If the first slave protocol handshake fails, the slave controller uses the second slave protocol to respond to the handshake; if the second slave protocol handshake succeeds, the slave controller uses the second slave protocol to return a handshake success signal to the master controller, and the master controller outputs a successful communication establishment message; if the second slave protocol handshake fails, a handshake failure signal is returned. The process of the second slave protocol handshake is the same as the process of the first slave protocol handshake, so this article will not repeat it.

[0075] Reference Figure 4 , the master controller responds to the handshake failure signal and shakes hands with the slave controller through the second master protocol; the slave controller detects the change of the electrical signal on the communication link and responds to the handshake using the first slave protocol. The process of the second master protocol is the same as the process of the first master protocol handshake, and will not be repeated in this article.

[0076] If the handshake of the first slave protocol is successful, the slave controller returns a handshake success signal to the master controller using the first slave protocol, and the master controller outputs a communication establishment success message; if the handshake of the first slave protocol fails, the slave controller responds to the handshake using the second slave protocol; if the handshake of the second slave protocol is successful, the slave controller returns a handshake success signal to the master controller using the second slave protocol, and the master controller outputs a communication establishment success message; if the handshake of the second slave protocol fails, a handshake failure signal is returned, and the master controller outputs a communication establishment failure signal.

[0077] After the above handshake process, when the master controller does not know which built-in protocol the slave controller has, the master controller traverses the internal protocols and performs handshake operations with the built-in protocol of the slave controller, thereby facilitating the search for the corresponding communication protocol and establishing a communication link. The master controller and the slave controller generally have multiple commonly used field bus protocols built in, so in actual use, one or more sets of master protocols can successfully handshake with the slave protocol.

[0078] The communication link includes a wired link and a wireless link, and a wired link and a wireless link are established between the master controller and the slave controller. The signal connection strength between the master controller and the slave controller is detected as the wired connection strength and the wireless connection strength. For example, the wired link is an RS485 bus link, and the wireless link is a Wi-Fi bus link. The wired connection strength of the wired link can be expressed as a transmission rate or a data packet loss rate, and the wireless connection strength of the wireless link can be expressed as a transmission rate, a data packet loss rate, or a wireless signal strength. The wired connection strength and the wireless connection strength are normalized before calculation. For example, the maximum value of the wired connection strength is set to 5, and the real-time wired connection strength can be 4.5. The maximum value of the wireless connection strength is set to 5, and the real-time wireless connection strength can be 4. The signal connection strength can be a communication attribute such as a transmission rate, a data packet loss rate, or a wireless signal strength. Selecting the primary link and the secondary link according to the communication data can make the communication link between the master controller and the slave controller more stable. In summary, this method realizes the master-slave mode through the cooperation of the master controller and the slave controller. With only a small increase in cost, it can multiply the cylinder pressure, maintain the use time of a cylinder of compressed gas for a longer time, and allow users to operate and view only in front of a master controller.

[0079] If the wired connection strength is greater than the wireless connection strength, the wired link is used as the primary link and the wireless link is used as the secondary link; for example, the wired connection strength is 4.5 and the wireless connection strength is 4. Otherwise, the wireless link is used as the primary link and the wired link is used as the secondary link; for example, the wired connection strength is 4 and the wireless connection strength is 4.5.

[0080] The number of slave controllers mounted on the primary link is greater than the number of slave controllers mounted on the secondary link; accordingly, the amount of data transmitted on the primary link is also greater than the amount of data transmitted on the secondary link.

[0081] According to the positive correlation between the strength ratio of the wired connection strength and the wireless connection strength, the quantity ratio between the number of slave controllers on the primary link and the number of slave controllers on the secondary link is adjusted; the larger the strength ratio, the larger the quantity ratio, and the smaller the strength ratio, the smaller the quantity ratio. For example, if the wired connection strength is 4.5 and the wireless connection strength is 3, the strength ratio is 1.5:1, and the quantity ratio is 3:1; if the wired connection strength is 4 and the wireless connection strength is 2, the strength ratio is 2:1, and the quantity ratio is 4:1. By adjusting the quantity ratio according to the strength ratio and optimizing the distribution effect of the mounted load between the communication links, the communication resources of the communication links can be maximized and the communication control effect can be improved. Among them, the wired connection strength and the wired connection strength are both unitless values, which are convenient for calculation.

[0082] In some other embodiments, some or all slave controllers are mounted on the primary link. When the signal strength of the primary link decreases by more than a preset interference value, all slave controllers on the primary link are mounted on the secondary link. For example, the primary link is a wired link, the secondary link is a wireless link, the wired connection strength decreases from 4.5 to 1.5 within 3 seconds, the signal strength decreases by 1 / second, and the preset interference value is 0.5 / second, then the signal strength decreases by more than the interference value, therefore, all slave controllers on the wired link are mounted on the wireless link.

[0083] Close the primary link and change the secondary link to the new primary link. Then, establish a new communication link and use the new communication link as the new secondary link. The specific principle of establishing a new communication link is the same as above. Adjust the load on the primary link according to the drop in signal strength. When an abnormality occurs in the primary link, emergency operations can be performed to ensure the stability of communication between the main controller and the slave controller.

[0084] The user inputs the control instruction to the main controller through the input button, and identifies the main instruction and the slave instruction from the control instruction. For example, the control instruction can be: Z#1708×C#0695, where the main instruction header Z, the slave instruction header C, the content separator #, and the instruction separator × can be found according to the template matching method, and the main instruction Z#1708 and the slave instruction C#0695 can be obtained.

[0085] If the main instruction is identified, the air compressor corresponding to the main controller is controlled according to the main instruction. For example, if the main instruction Z#1708 is identified, the working parameters of the corresponding air compressor are controlled according to the main instruction.

[0086] If a slave instruction is identified, the slave instruction is sent to the slave controller through the communication link. For example, if the slave instruction C#0695 is identified, the master controller sends the slave instruction to the slave controller through the communication link according to the slave instruction, and the slave controller controls the working parameters of the corresponding air compressor according to the slave instruction. The slave controller controls the air compressor corresponding to the slave controller in response to the slave instruction, and then the slave controller generates a response signal, and the slave controller returns the response signal to the master controller through the communication link.

[0087] The master controller or the remote background queries the working parameters of the master controller and the slave controller in turn based on the communication link. Only one display screen can be set on site. When the display screen is on the master controller, the master controller displays the working parameters of the master controller and the slave controller in real time according to the results of the query in turn, as well as the response signal. When the display screen is on the slave controller, the slave controller displays the working parameters of the master controller and the slave controller in real time according to the results of the query in turn, as well as the response signal.

[0088] When an additional air compressor needs to be added, there is no need to add a main controller, but a slave controller can be added. Multiple slave controllers can be added to the main controller through a communication link and the slave controllers can be controlled and data can be read and written. The main controller is provided with input buttons and a display screen, and there is no need to set input buttons and a display screen on the slave controller. Instructions are entered by typing buttons, and the main controller analyzes the instructions and then controls the corresponding air compressor or the corresponding slave controller. The slave controller responds to the control and returns a response signal. The main controller can display the working parameters of the main controller and the working parameters of the slave controller and the response signal through the display screen; when adding an air compressor, the controller accessories of the air compressor are reused, and the working parameters of the main controller and the slave controller are queried in turn, and displayed on the display screen connected to the main controller, so that the user only needs to operate and view in front of one main controller.

[0089] The step of displaying the working parameters and the response signal of the slave controller also includes the following sub-steps:

[0090] The display process of the working parameters of the slave controller is set to fade in and fade out. The fade-in and fade-out time is positively correlated with the weighted average value of all the working parameters of the corresponding slave controller. The larger the weighted average value, the longer the fade-in and fade-out time, and the smaller the weighted average value, the shorter the fade-in and fade-out time. The working parameters include voltage value U, current value I, cylinder pressure value P, and the corresponding weighted values ​​are a, b and c, then the weighted average value = a×U+b×I+c×P; among them, a, b and c are all less than 1, so that the time change difference of fade-in and fade-out under the influence of weighted average value can be perceived by the naked eye. By changing the fade-in and fade-out time through the working parameters, the change of working parameters can be reflected in the display effect, which is conducive to observing the change trend of the working parameters of the slave controller. For example, suppose: voltage value (U) = 10V; current value (I) = 2A; cylinder pressure value (P) = 100kPa; and set the weighted values ​​as: a = 0.3; b = 0.2; c = 0.5; Note: These weighted values ​​can be adjusted according to actual conditions to ensure that they can reflect the importance of each working parameter to the system performance. Use these values ​​to calculate the weighted average: weighted average = a × U + b × I + c × P = 0.3 × 10V + 0.2 × 2A + 0.5 × 100kPa; Since the units of voltage, current and pressure are different (V, A, kPa), in practical applications, we need to convert them to the same unit or perform dimensionless processing. But in this example, in order to simplify the calculation, we assume that they can be added directly. Continue to calculate: weighted average = 0.3 × 10 + 0.2 × 2 + 0.5 × 100 = 3 + 0.4 + 50 = 53.4; Note: This value has no unit because it is a weighted sum.

[0091] In some other specific implementations, the step of querying the working parameters of the master controller and the slave controller in turn further includes the following steps:

[0092] Get the air pressure Pn of all cylinders controlled by the slave controller.

[0093] The slave controllers are sorted according to the cylinder pressure to obtain a slave control sequence, for example, n slave controllers correspond to P1 to Pn respectively.

[0094] The corresponding slave controller in the control sequence is queried and controlled according to the set query cycle. Each time the query is made, the slave controller is automatically controlled and the displayed working parameters and response signals of the slave controller are updated.

[0095] Calculate the discreteness value of the control sequence. The discreteness value is calculated by the standard deviation algorithm. The discreteness value represents the degree of dispersion. The discreteness refers to the degree of difference between the values ​​of the randomly observed variables, which is used to measure the risk size. The risk size here can be simply used as the difference size. There are many indicators that can be used to measure the degree of difference between the observed variable values. The most commonly used ones in statistical analysis and inference are the range, mean difference and standard deviation. The standard deviation algorithm in the prior art is used here.

[0096] The query period is adjusted inversely according to the discreteness value; the larger the discreteness value, the shorter the query period, and the smaller the discreteness value, the longer the query period. For example, suppose a query period range is set from 5 seconds (shorter) to 20 seconds (longer). When the standard deviation is less than a certain threshold (such as 0.5kPa), the air pressure is considered to be very stable, and the query period can be set to the longest, that is, 20 seconds. When the standard deviation is greater than another threshold (such as 2kPa), the air pressure difference is considered to be large and more frequent monitoring is required, and the query period should be set to the shortest, that is, 5 seconds. Between these two thresholds, a linear or nonlinear mapping relationship can be set to adjust the query period. Adjust the query period according to the discreteness value: In this example, the standard deviation is 1.12kPa, which is between 0.5kPa and 2kPa. The query period can be set according to the mapping relationship. For simplicity, it is assumed that a linear mapping is used, and the query period is 20 seconds when the standard deviation is 0.5kPa, and the query period is 5 seconds when the standard deviation is 2kPa. From this, the query period T can be calculated: T=20-(SD-0.5)×(20-5) / (2-0.5)=20-(1.12-0.5)×15 / 1.5≈13 seconds.

[0097] The query cycle is adjusted according to the discrete value of the control sequence. A large discrete value means that the quality error of the compressed air between the air compressors of the slave controller may be large, thereby shortening the query cycle and being able to quickly and timely reflect the working conditions of the air compressors of the slave controller. A small discrete value means that the quality error of the compressed air between the air compressors of the slave controller may be small, thereby lengthening the query cycle and being able to reduce the communication load on the communication link and prevent communication congestion.

[0098] In some other specific implementations, the step of querying the working parameters of the master controller and the slave controller in turn further includes the following steps:

[0099] Get the damping Fn of the cylinder pressure changes controlled by all slave controllers.

[0100] The slave controllers are sorted according to the variable damping to obtain a slave control sequence, for example, n slave controllers, corresponding to F1 to Fn respectively.

[0101] The corresponding slave controller in the control sequence is queried and controlled according to the set query cycle. Each time the query is made, the slave controller is automatically controlled and the displayed working parameters and response signals of the slave controller are updated.

[0102] Calculate the discreteness value of the control sequence. The calculation formula of the discreteness value is the mean difference algorithm. The discreteness value represents the degree of discreteness. The discreteness refers to the degree of difference between the values ​​of the randomly observed variables, which is used to measure the risk size. The risk size here can be simply used as the difference size. There are many indicators that can be used to measure the degree of difference between the observed variable values. The most commonly used ones in statistical analysis and inference are the range, mean difference and standard deviation. The mean difference algorithm in the prior art is used here.

[0103] The query cycle is adjusted according to the positive correlation of the discreteness value. The larger the discreteness value, the longer the query cycle, and the smaller the discreteness value, the shorter the query cycle. The larger the discreteness value of the variation damping, the larger the variation damping, the longer the cycle, the lower the control frequency, and the control system is prevented from over-oscillation. The smaller the variation damping, the shorter the cycle, the higher the control frequency, and the better the control; improving the response speed of the control is conducive to improving the control effect. For example, suppose a query cycle range is set from 5 seconds (shorter) to 20 seconds (longer). A mapping relationship can be set; for example: when the average difference is less than 1, the query cycle is 5 seconds (very stable). When the average difference is between 1 and 3, the query cycle changes linearly between 5 seconds and 15 seconds. When the average difference is greater than 3, the query cycle changes linearly between 15 seconds and 20 seconds; according to the average difference of 2.5 calculated by us, it falls within the range of 1 to 3, so a linear mapping can be used to calculate the specific query cycle. For simplicity, assume that within this range, the query period increases by 5 seconds for every increase of 1 in the average difference: query period = 5 seconds + (2.5-1) × 5 seconds / unit = 5 seconds + 1.5 × 5 seconds = 5 seconds + 7.5 seconds = 12.5 seconds (rounded to the nearest integer second).

[0104] An embodiment of the present application further discloses a multi-head air compressor distributed control system, comprising a processor, wherein a program of any one of the multi-head air compressor distributed control methods described above is run on the processor.

[0105] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A distributed control method for multi-head air compressor, It is characterized in that The steps include: Provide a master controller and one or more slave controllers, and establish a communication link between the master controller and the slave controllers; Initializing the master controller and the slave controller; Inputting control instructions to the master controller, and identifying master instructions and slave instructions from the control instructions; If the main instruction is identified, the air compressor corresponding to the main controller is controlled according to the main instruction; If the slave instruction is identified, the slave instruction is sent to the slave controller through the communication link; the slave controller controls the air compressor corresponding to the slave controller in response to the slave instruction, and returns a response signal through the communication link; querying the working parameters of the master controller and the slave controller in turn based on the communication link; Based on the master controller or based on the slave controller, according to the result of the alternate query, the working parameters of the master controller and the working parameters of the slave controller and the response signal are displayed in real time; The step of querying the working parameters of the master controller and the slave controller in turn further includes the following steps: Obtaining the air pressure of all cylinders controlled by the slave controller; Sorting the slave controllers according to the cylinder gas pressure to obtain a slave control sequence; Query and control the slave controller corresponding to the control sequence according to a set query cycle, and automatically control the slave controller and update the displayed working parameters of the slave controller and the response signal each time the query is made; Calculating the discrete degree value of the control sequence, the calculation formula of the discrete degree value is the standard deviation algorithm; The query period is adjusted inversely according to the discrete degree value; the larger the discrete degree value is, the shorter the query period is, and the smaller the discrete degree value is, the longer the query period is.

2. The distributed control method for multi-head air compressor according to claim 1, It is characterized in that The step of establishing a communication link between the master controller and the slave controller further includes the following sub-steps: The master controller has a first master protocol and a second master protocol built in, and the slave controller also has a first slave protocol and a second slave protocol built in; The master controller performs handshake with the slave controller through the first master protocol; The slave controller uses the first slave protocol to respond to the handshake after monitoring the change of the electrical signal on the communication link; If the handshake of the first slave protocol is successful, the slave controller returns a handshake success signal to the master controller using the first slave protocol, and the master controller outputs communication establishment success information; If the handshake of the first slave protocol fails, the slave controller responds to the handshake using the second slave protocol; if the handshake of the second slave protocol succeeds, the slave controller returns a handshake success signal to the master controller using the second slave protocol, and the master controller outputs communication establishment success information; If the second slave protocol handshake fails, a handshake failure signal is returned; The master controller performs handshake with the slave controller through the second master protocol in response to the unable handshake signal; The slave controller uses the first slave protocol to respond to the handshake after monitoring the change of the electrical signal on the communication link; If the handshake of the first slave protocol is successful, the slave controller returns a handshake success signal to the master controller using the first slave protocol, and the master controller outputs communication establishment success information; If the handshake of the first slave protocol fails, the slave controller responds to the handshake using the second slave protocol; if the handshake of the second slave protocol succeeds, the slave controller returns a handshake success signal to the master controller using the second slave protocol, and the master controller outputs communication establishment success information; If the second slave protocol handshake fails, a handshake failure signal is returned, and the master controller outputs a communication establishment failure signal.

3. The distributed control method for multi-head air compressor according to claim 1, It is characterized in that The communication link includes an RS485 bus, a USB bus, an SPI bus, an I2C bus, an RS232 bus, an Ethernet bus, a Bluetooth bus and / or a Wi-Fi bus.

4. The distributed control method for multi-head air compressor according to claim 2, It is characterized in that The communication link includes a wired link and a wireless link; The method further comprises the steps of: A wired link and a wireless link are established between the master controller and the slave controller; and a signal connection strength between the master controller and the slave controller is detected as a wired connection strength and a wireless connection strength; If the wired connection strength is greater than the wireless connection strength, the wired link is used as a primary link and the wireless link is used as a secondary link; Otherwise, the wireless link is used as a primary link and the wired link is used as a secondary link; The number of the slave controllers mounted on the primary link is greater than the number of the slave controllers mounted on the secondary link.

5. The distributed control method for multi-head air compressor according to claim 4, It is characterized in that The method further comprises the steps of: The quantity ratio between the number of slave controllers on the primary link and the number of slave controllers on the secondary link is adjusted according to the positive correlation between the strength ratio of the wired connection strength and the wireless connection strength; the larger the strength ratio, the larger the quantity ratio, and the smaller the strength ratio, the smaller the quantity ratio.

6. The distributed control method for multi-head air compressor according to claim 4, It is characterized in that The method further comprises the steps of: Some or all of the slave controllers are mounted on the main link; When the signal strength of the primary link decreases by more than a preset interference value, all the slave controllers on the primary link are mounted on the secondary link; Shut down the primary link and change the secondary link to the new primary link; A new communication link is established, and the new communication link is used as the new secondary link.

7. The distributed control method for multi-head air compressor according to claim 1, It is characterized in that The step of querying the working parameters of the master controller and the slave controller in turn further includes the following steps: Obtaining the damping of the change of the cylinder air pressure controlled by all the slave controllers; Sorting the slave controllers according to the variable damping to obtain a slave control sequence; Query and control the slave controller corresponding to the control sequence according to a set query cycle, and automatically control the slave controller and update the displayed working parameters of the slave controller and the response signal each time the query is made; Calculating the discrete degree value of the control sequence, the calculation formula of the discrete degree value is the average difference algorithm; The query period is adjusted according to the positive correlation of the discrete degree value; the larger the discrete degree value is, the longer the query period is, and the smaller the discrete degree value is, the shorter the query period is.

8. The distributed control method for multi-head air compressor according to claim 1, It is characterized in that The step of displaying the operating parameters of the slave controller and the response signal further includes the following sub-steps: The display process of the working parameters of the slave controller is set to fade in and fade out; The fade-in and fade-out time is positively correlated with the weighted average value of all the working parameters of the corresponding slave controller. The larger the weighted average value, the longer the fade-in and fade-out time, and the smaller the weighted average value, the shorter the fade-in and fade-out time; The working parameters include voltage value, current value and cylinder pressure value, and the corresponding weighted values ​​are a, b and c.

9. A distributed control system for multi-head air compressors. It is characterized in that It comprises a processor, in which runs a program of a multi-head air compressor distributed control method as described in any one of claims 1-8.