Vacuum collection box monitoring method and system
By using a variable slave address table and a fixed period update mechanism in the vacuum drainage system, the problem of timely provision of the fault location of the collection box and low communication efficiency in the system is solved, achieving efficient maintenance and expansion of the system, reducing the failure rate and cost.
Patent Information
- Application Number
- CN202410507722.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing vacuum drainage system, when the collection box fails, the fault location cannot be provided in time, and the polling communication mechanism and four-wire system of one master and multiple slaves result in complex wiring, high cost, high failure rate, and inconvenience for system expansion and maintenance.
A variable slave address table is used to automatically transfer the addresses of slaves with abnormal communication to the abnormal slave table. The host only accesses slaves with normal communication and updates the slave address table through a fixed period, simplifying wiring and improving system reliability. Maintainability and scalability.
It shortens the access time interval of normal communication slave machines, improves response timeliness, reduces system failure rate and maintenance costs, and facilitates system expansion and maintenance.
Smart Images

Figure CN118540243A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of vacuum drainage monitoring, and in particular relates to a vacuum collection box monitoring method and system. Background Art
[0002] In the daily operation of the vacuum drainage system, the vacuum angle seat valve in the collection box may not be opened or closed normally, resulting in the inability to drain the water from the collection box or a large amount of air entering the vacuum system, making the entire vacuum system unable to operate normally. Since there are many collection boxes in the vacuum drainage system, they are widely distributed and irregularly distributed. When a collection box fails, it is necessary to provide the maintenance personnel with the location of the failed collection box in a timely manner.
[0003] The inventor found that in vacuum drainage systems, a polling communication mechanism with one master and multiple slaves and a four-wire system with separate power supply and communication are usually used to monitor the collection box. The wiring of the communication system is relatively complex, and the cost and failure rate are relatively high. With a communication mechanism with one master and multiple slaves, the address range of the slaves that the host needs to access is fixed. When a slave in the system fails, the host will still access the slave, occupying the entire bus polling time and affecting the bus communication efficiency. In addition, when the system needs to remove or add a node, a specialized technician must modify the relevant parameters or programs to achieve this, which is inconvenient for bus expansion and later maintenance. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes a vacuum collection box monitoring method and system. The present invention adopts a variable slave address table. When one or more slaves have communication abnormalities, the slave addresses with communication abnormalities in the slave address table are automatically transferred to the abnormal slave table, so that the monitoring host only accesses slaves with normal communication, thereby shortening the time interval between two visits to each slave with normal communication, and improving the timeliness of the response of each slave; by accessing the abnormal slave table in a fixed period, the addresses of repaired or newly added slaves are automatically added to the slave address table, which facilitates the maintenance and expansion of the monitoring system, improves the maintainability and scalability of the bus, and meets the actual needs on site.
[0005] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0006] In a first aspect, the present invention provides a vacuum collection box monitoring method, comprising:
[0007] Obtaining a slave address table and an abnormal slave table; wherein the slave address table stores a plurality of slave addresses, and the initial state of the abnormal slave table is an empty table;
[0008] According to the addresses in the slave address table, the slaves are polled to monitor the vacuum collection box; slaves with abnormal communication in the slave address table are transferred to the abnormal slave table;
[0009] When the slave address table is not an empty table and the time for polling the slave is greater than a preset period, the slave is polled according to the address in the abnormal slave table until all abnormal slaves are accessed;
[0010] When the slave address table is empty, the slaves are polled and accessed according to the addresses in the abnormal slave table, and slaves with normal communication are transferred to the slave address table.
[0011] Furthermore, if the slave address table is not empty, the slaves are accessed in sequence according to the addresses in the slave address table, and the data returned by the slaves with normal communication are stored; the addresses of the slaves with abnormal communication are transferred from the slave address table to the abnormal slave table, and the pre-stored data of the abnormal slaves are all set to zero.
[0012] Further, when the slave address table is not an empty table and the accumulated time of accessing the slave is less than a preset period, the slave is continuously polled and accessed according to the address in the slave address table;
[0013] When the time for polling access to the slave is greater than or equal to the preset period, the slaves are accessed in sequence according to the addresses in the abnormal slave table, the data returned by the slaves with normal communication are stored, and the addresses of the slaves with normal communication are transferred from the abnormal slave table to the slave address table; if the communication with the abnormal slave is still abnormal, the access to the slave corresponding to the next address continues until all abnormal slaves are accessed. After the access is completed, the access time is reset.
[0014] Furthermore, when the slave address table is an empty table and the abnormal slave table is not an empty table, the slave is polled and accessed according to the address in the abnormal slave table: the slaves are accessed in turn according to the address in the abnormal slave table, the data returned by the slave with normal communication is stored, the address of the slave with normal communication is transferred from the abnormal slave table to the slave address table, and the address transfer flag from the abnormal slave table to the slave address table is set to 1; if the communication with the slave is abnormal, the access to the slave corresponding to the next address continues.
[0015] After accessing the last address, if the address transfer flag bit from the abnormal slave table to the slave address table is zero, the slave is continued to be polled and accessed according to the address in the abnormal slave table; if the address transfer flag bit from the abnormal slave table to the slave address table is 1, the slave is polled and accessed according to the address in the slave address table.
[0016] Furthermore, the power supply line and the communication line between the host and the slave adopt a two-core cable structure.
[0017] In a second aspect, the present invention further provides a vacuum collection box monitoring system, comprising:
[0018] The data acquisition module is configured to: obtain a slave address table and an abnormal slave table; wherein the slave address table stores a plurality of slave addresses, and the initial state of the abnormal slave table is an empty table;
[0019] The monitoring module is configured to: perform polling access to the slaves according to the addresses in the slave address table to realize monitoring of the vacuum collection box; transfer the slaves with abnormal communication in the slave address table to the abnormal slave table;
[0020] The first judgment module is configured to: when the slave address table is not an empty table and the time for performing polling access to the slave is greater than a preset period, perform polling access to the slave according to the address in the abnormal slave table until the access to all abnormal slaves is completed;
[0021] The second judgment module is configured to: when the slave address table is empty, perform polling access to the slaves according to the addresses in the abnormal slave table, and transfer the slaves with normal communication to the slave address table.
[0022] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the vacuum collection box monitoring method described in the first aspect.
[0023] In a fourth aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein when the processor executes the program, the steps of the vacuum collection box monitoring method described in the first aspect are implemented.
[0024] In a fifth aspect, the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the vacuum collection box monitoring method described in the first aspect are implemented.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] 1. In the present invention, a slave address table and an abnormal slave table are obtained; a slave is polled and accessed according to the address in the slave address table; a slave with abnormal communication in the slave address table is transferred to the abnormal slave table; when the slave address table is not an empty table and the time for polling and accessing the slave is greater than a preset period, a slave is polled and accessed according to the address in the abnormal slave table until all abnormal slaves are accessed; when the slave address table is an empty table, a slave is polled and accessed according to the address in the abnormal slave table, and the slave with normal communication is transferred to the abnormal slave table. The slaves with normal communication are transferred to the slave address table; a variable slave address table is used to automatically transfer the slave addresses with abnormal communication in the slave address table to the abnormal slave table, so that the monitoring host only accesses the slaves with normal communication, thereby shortening the time interval between two visits to each slave with normal communication, and improving the timeliness of the response of each slave; by accessing the abnormal slave table in a fixed period, the addresses of the repaired or newly added slaves are automatically added to the slave address table, which facilitates the maintenance and expansion of the monitoring system, improves the maintainability and scalability of the bus, and meets the actual needs on site.
[0027] 2. In the present invention, a two-core cable is used to construct a monitoring bus, realizing the dual functions of power supply and communication, making the wiring of the monitoring system simpler, and reducing the cost and bus failure rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The drawings in the specification that constitute a part of this embodiment are used to provide a further understanding of this embodiment. The schematic embodiments of this embodiment and their descriptions are used to explain this embodiment and do not constitute improper limitations on this embodiment.
[0029] Figure 1 is a flow chart of the method of embodiment 1 of the present invention;
[0030] Figure 2 This is a structural diagram of a vacuum collection box monitoring system according to Embodiment 1 of the present invention;
[0031] Figure 3 This is a schematic diagram of the vacuum collection box monitoring system and vacuum drainage system of Example 1 of the present invention;
[0032] Among them, 1. host monitoring module; 2. monitoring bus; 3. first slave monitoring module; 4. second slave monitoring module; 5. third slave monitoring module; 6. first vacuum collection box; 7. second vacuum collection box; 8. third vacuum collection box; 9. first sensor; 10. second sensor; 11. third sensor; 12. first vacuum branch pipeline; 13. second vacuum branch pipeline; 14. third vacuum branch pipeline; 15. vacuum main pipeline; 16. vacuum unit; 17. vacuum unit control system; 18. control cable; 19. communication cable. DETAILED DESCRIPTION
[0033] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0034] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0035] Embodiment 1:
[0036] The vacuum drainage system has been promoted and applied in rural domestic sewage collection projects and rainwater and sewage diversion projects in old towns and ancient towns due to its advantages such as not being restricted by terrain, being odor-proof, not easy to clog, convenient pipe network construction, and little impact on the surrounding environment. The vacuum drainage system mainly includes a vacuum unit, vacuum pipelines, collection boxes and monitoring systems. In the daily operation of the vacuum drainage system, the vacuum angle seat valve in the collection box cannot be opened or closed normally, resulting in the water in the collection box being unable to be discharged or a large amount of air entering the vacuum system, making the entire vacuum system unable to operate normally. Due to the large number of collection boxes in the system, their wide distribution range, and irregular distribution, when a collection box fails, it is very necessary to provide maintenance personnel with the location of the faulty collection box in a timely manner.
[0037] In the existing vacuum drainage system, a polling communication mechanism with one master and multiple slaves and a four-wire system with power supply and communication separated are usually used to monitor the collection box. The wiring of this communication system is relatively complex, and the cost and failure rate are relatively high. With a communication mechanism with one master and multiple slaves, the address range of the slaves that the host needs to access is fixed. When a slave in the system fails, the host will still access the slave, occupying the entire bus polling time and affecting the bus communication efficiency. In addition, when the system needs to remove or add a node, a specialized technician must modify the relevant parameters or programs to achieve it, which is inconvenient for the expansion and subsequent maintenance of the bus.
[0038] In response to the above problems, Figure 1As shown, the present embodiment provides a method for monitoring a vacuum collection box, which adopts a one-master-multiple-slave communication mechanism and a two-wire system integrating power supply and communication to realize collection box monitoring. The two-wire system integrating power supply and communication makes the wiring of the monitoring system simple, reliable and low-cost; the one-master-multiple-slave communication mechanism adopts a variable slave address table, and the monitoring host adopts a set communication strategy to automatically transfer the slave addresses with communication abnormalities in the slave address table to the abnormal slave table, so that the monitoring host only accesses slaves with normal communication, thereby shortening the time interval between two visits to each slave with normal communication, and improving the timeliness of the response of each slave. In addition, by accessing the abnormal slave table according to a fixed period, the addresses of repaired or newly added slaves are automatically added to the slave address table, which facilitates the maintenance and expansion of the monitoring system, improves the maintainability and scalability of the bus, and meets the actual needs on site. The main steps of the method are:
[0039] S1. Set the slave address table RA and the abnormal slave table RB, wherein the slave address table RA stores N slave addresses, the abnormal slave table RB stores abnormal slave addresses, and the initial state of the abnormal slave table RB is an empty table. Set the empty table flag RAF of the slave address table RA = 0; the empty table flag RBF of the abnormal slave table RB = 1; the address transfer flag RBAF of the abnormal slave table RB to the slave address table RA = 0. Set the slave information data storage area, and the information of each slave includes the slave address, slave data, and slave communication flag, etc. Optional, wherein N is a natural number less than 128.
[0040] S2. If the empty table flag RAF of the slave address table RA is 0, then the slaves are accessed in sequence according to the addresses in the slave address table RA, and the data returned by the slave with normal communication is stored in the corresponding slave information data storage area, and the communication flag of the slave is set to 0; the address of the slave with abnormal communication is transferred from the slave address table RA to the abnormal slave table RB, and the empty table flag RBF of the abnormal slave table RB is set to 0, and at the same time, in the data storage area corresponding to the slave, all the slave data are set to zero, and the slave communication flag is set to 1; when all the addresses in the slave address table RA are transferred to the abnormal slave table RB, the empty table flag RAF of the slave address table RA is set to 1. In this process, the cumulative time t of accessing the slave according to the slave address table RA is counted, and the unit of t is seconds.
[0041] S3. When the empty table flag RAF of the slave address table RA is 0 and the accumulated time t of accessing the slave is less than T, step S2 is repeated; when the accumulated time t of accessing the slave is greater than or equal to T, step S5 is executed. T is a preset period, a time value set according to actual conditions, and the unit of T is seconds.
[0042] S4. When the empty table flag RAF of the slave address table RA=1, and the empty table flag RBF of the abnormal slave table RB=0, execute step S6.
[0043] S5. According to the address in the abnormal slave table RB, the slaves are accessed in sequence, the data returned by the slaves with normal communication is stored in the corresponding slave information data storage area, the communication flag of the slave is set to 0, and the slave address is transferred from the abnormal slave table RB to the slave address table RA; if the communication with the abnormal slave is still abnormal, the next slave corresponding to the address is accessed. After the access to all abnormal slaves is completed, t=0 is set and step S3 is executed.
[0044] S6. According to the address in the abnormal slave table RB, access the slaves in sequence, store the data returned by the slaves with normal communication in the corresponding slave information data storage area, set the slave communication flag to 0, and transfer the slave address from the abnormal slave table RB to the slave address table RA, and set the abnormal slave table RB to the slave address table RA transfer address flag RBAF = 1; if the communication with the slave is abnormal, continue to access the slave corresponding to the next address. After accessing the last address, if the abnormal slave table RB to the slave address table RA transfer address flag RBAF = 0, repeat S6; if the abnormal slave table RB to the slave address table RA transfer address flag RBAF = 1, set the slave address table RA empty table flag RAF = 0, set the abnormal slave table RB to the slave address table RA transfer address flag RBAF = 0, and execute step S2.
[0045] In some embodiments, the power supply line and communication line between the host and the slave adopt a two-core cable structure; a two-core cable is used to construct a monitoring bus to achieve dual functions of power supply and communication, making the wiring of the monitoring system simpler and reducing costs and bus failure rates.
[0046] In some embodiments, a variable slave address access sequence is adopted, and the monitoring host adopts an existing communication strategy to automatically remove slave addresses with abnormal communication in the slave address access sequence, so that the monitoring host only accesses slaves with normal communication, thereby shortening the time interval between two visits to each slave and improving the timeliness of each slave's response. A variable slave address access sequence and an existing communication strategy of the monitoring host are adopted to automatically add the repaired or newly added slave addresses to the slave address access sequence, which facilitates the maintenance and expansion of the monitoring system and improves the maintainability and scalability of the bus.
[0047] The present embodiment also provides a vacuum collection box monitoring system, and the working method is the same as the monitoring method in the present embodiment. Optionally, the monitoring system is used in conjunction with a vacuum drainage system to monitor the status of the vacuum collection box in the vacuum drainage system, and communicate with the vacuum unit control system in the vacuum drainage system to realize data exchange. The status data of the collection box can be displayed on the touch screen of the vacuum unit control system or transmitted to the cloud server via a wireless network. Maintenance personnel can view the status data of each vacuum collection box at the pump station or through a mobile phone APP.
[0048] Specifically, the vacuum collection box monitoring system includes a host monitoring module, a slave monitoring module and a monitoring bus. The host monitoring module is connected to the slave monitoring module via the monitoring bus, and polls the slave monitoring module and collects data through the above-mentioned monitoring method, and stores the collected data in the corresponding storage area.
[0049] In some embodiments, optionally, the host monitoring module includes a power interface, a bus interface, and a communication interface. The power interface is connected to an external power supply to obtain the power required for the normal operation of the host monitoring module from the external power supply. The bus interface has the dual functions of power supply and communication. It is connected to the monitoring bus, provides power for the monitoring bus, and realizes polling access to the slave monitoring module through the monitoring bus. The communication interface is connected to the vacuum pump station control system to realize data exchange with the vacuum pump station control system.
[0050] In some embodiments, optionally, the slave monitoring module includes a bus interface, a digital quantity acquisition interface, an analog quantity acquisition interface and a communication interface. The digital quantity acquisition interface is connected to the liquid level status detection sensor and the valve switch status detection sensor in the vacuum collection box through a cable to realize the collection of the liquid level and valve status data in the vacuum collection box. The analog quantity acquisition interface is connected to the vacuum sensor in the vacuum collection box to realize the collection of vacuum data at the location of the vacuum collection box. The communication interface can communicate with an external handheld device to modify the relevant parameters of the slave monitoring module. The bus interface is connected to the monitoring bus, and while obtaining power from the monitoring bus, it also realizes communication with the host monitoring module through the monitoring bus. There can be multiple slave monitoring modules.
[0051] In some embodiments, optionally, the monitoring bus includes a two-core cable having dual functions of power supply and communication.
[0052] Specifically, the vacuum drainage system includes a vacuum unit, a vacuum pipeline, a vacuum collection box and a vacuum unit control system. The vacuum unit is connected to the vacuum collection box through a vacuum pipeline. There are multiple vacuum collection boxes, which are irregularly distributed. The vacuum collection box is equipped with a liquid level status detection sensor, a valve switch status detection sensor and a vacuum sensor. The vacuum unit control system controls the automatic operation of the vacuum unit, so that the vacuum drainage system works in a reasonable negative pressure range and discharges the collected sewage into the municipal pipe network. The vacuum unit control system collects the status data of each collection box in the collection box monitoring system, displays the data on the vacuum unit control system touch screen or transmits it to the cloud server through a wireless network. Maintenance personnel can view the status data of each vacuum collection box at the pump station or through a mobile phone APP.
[0053] Embodiment 2:
[0054] like Figure 2 and Figure 3 As shown, this embodiment provides a vacuum collection box monitoring system, such as Figure 2 , Figure 3 As shown in the figure, the vacuum collection box monitoring system monitors the status of the collection box of the vacuum drainage system through the monitoring bus. The vacuum collection box monitoring system is connected to the vacuum unit control system through a communication cable. The vacuum unit control system reads the data of the vacuum collection box monitoring system through the set communication protocol, and displays these data on the touch screen of the vacuum unit control system or transmits them to the cloud server through the wireless network. Maintenance personnel can view the status data of each vacuum collection box at the pump station or through the mobile phone APP.
[0055] Specifically, the vacuum collection box monitoring system includes a host monitoring module 1, a monitoring bus 2, a first slave monitoring module 3, a second slave monitoring module 4, and a third slave monitoring module 5; the host monitoring module 1, the first slave monitoring module 3, the second slave monitoring module 4, and the third slave monitoring module 5 are all connected to the monitoring bus 2. The first slave monitoring module 3, the second slave monitoring module 4, and the third slave monitoring module 5 obtain power for their normal operation from the monitoring bus 2, and communicate with the host monitoring module 1 through the monitoring bus 2 to exchange data.
[0056] Optionally, the vacuum drainage system includes a vacuum unit 16, a vacuum unit control system 17, a control cable 18, a vacuum main line 15, a first vacuum branch line 12, a second vacuum branch line 13, a third vacuum branch line 14, a first vacuum collection box 6, a second vacuum collection box 7, a third vacuum collection box 8, a first sensor 9, a second sensor 10, and a third sensor 11. The first vacuum collection box 6, the second vacuum collection box 7, and the third vacuum collection box 8 are connected to the vacuum main line 15 through the first vacuum branch line 12, the second vacuum branch line 13, and the third vacuum branch line 14, respectively. The vacuum main line 15 is connected to the vacuum unit 16, and the vacuum unit control system 17 is connected to the vacuum unit 16 through the control cable 18 to control the normal operation of the vacuum unit.
[0057] In some embodiments, the first vacuum collection box 6 includes a first sensor 9, a second sensor 10 and a third sensor 11, the first sensor 9 can detect the vacuum value of the position of the first vacuum collection box 6, the second sensor 10 can detect the switch state of the discharge valve of the first vacuum collection box 6, and the third sensor 11 can detect the liquid level state of the first vacuum collection box 6. Optionally, the second vacuum collection box 7 and the third vacuum collection box 8 are exactly the same as the first vacuum collection box 6, and are not described here.
[0058] In some embodiments, the first slave module 3 is connected to the first sensor 9, the second sensor 10 and the third sensor 11 through signal cables to collect the vacuum value of the vacuum collection box, the drain valve switch state signal and the liquid level state signal in the vacuum collection box. The second slave module 4 and the third slave module 5 adopt the same method to collect the vacuum value of the second vacuum collection box 7 and the third vacuum collection box 8, and the drain valve switch state signal and the liquid level state signal in the vacuum collection box.
[0059] In some embodiments, the host monitoring module 1 reads the signals collected by the first slave module 3, the second slave module 4, and the third slave module 5 through the monitoring bus, thereby realizing the monitoring of the vacuum collection box. The monitoring method is the same as the vacuum collection box monitoring method of Example 1, and will not be repeated here.
[0060] In some embodiments, the vacuum unit control system 17 is connected to the communication interface of the host monitoring module 1 via a communication cable 19. The vacuum unit control system 17 reads the status data of each vacuum collection box in the host monitoring module 1 through a communication protocol, and displays the data on the vacuum unit control system touch screen or transmits it to the cloud server via a wireless network. Maintenance personnel can view the status data of each vacuum collection box on site or through a mobile phone APP.
[0061] In some embodiments, the working method of the system adopts the vacuum collection box monitoring method in Example 1, which will not be repeated here.
[0062] Embodiment 3:
[0063] This embodiment provides a vacuum collection box monitoring system, including:
[0064] The data acquisition module is configured to: obtain a slave address table and an abnormal slave table; wherein the slave address table stores a plurality of slave addresses, and the initial state of the abnormal slave table is an empty table;
[0065] The monitoring module is configured to: perform polling access to the slaves according to the addresses in the slave address table to realize monitoring of the vacuum collection box; transfer the slaves with abnormal communication in the slave address table to the abnormal slave table;
[0066] The first judgment module is configured to: when the slave address table is not an empty table and the time for performing polling access to the slave is greater than a preset period, perform polling access to the slave according to the address in the abnormal slave table until the access to all abnormal slaves is completed;
[0067] The second judgment module is configured to: when the slave address table is empty, perform polling access to the slaves according to the addresses in the abnormal slave table, and transfer the slaves with normal communication to the slave address table.
[0068] The working method of the system is the same as the vacuum collection box monitoring method in Example 1, and will not be repeated here.
[0069] Embodiment 4:
[0070] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the vacuum collection box monitoring method described in Embodiment 1 are implemented.
[0071] Embodiment 5:
[0072] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the program, the steps of the vacuum collection box monitoring method described in Example 1 are implemented.
[0073] Embodiment 6:
[0074] This embodiment provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the vacuum collection box monitoring method described in Example 1 are implemented.
[0075] The above description is only a preferred embodiment of the present embodiment and is not intended to limit the present embodiment. For those skilled in the art, the present embodiment may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present embodiment shall be included in the protection scope of the present embodiment.
Claims
1. A vacuum collection box monitoring method, characterized in that: include: Obtaining a slave address table and an abnormal slave table; wherein the slave address table stores a plurality of slave addresses, and the initial state of the abnormal slave table is an empty table; According to the addresses in the slave address table, the slaves are polled to monitor the vacuum collection box; slaves with abnormal communication in the slave address table are transferred to the abnormal slave table; When the slave address table is not an empty table and the time for polling the slave is greater than a preset period, the slave is polled according to the address in the abnormal slave table until all abnormal slaves are accessed; When the slave address table is empty, the slaves are polled and accessed according to the addresses in the abnormal slave table, and slaves with normal communication are transferred to the slave address table.
2. A vacuum collection box monitoring method as claimed in claim 1, characterized in that: If the slave address table is not empty, the slaves are accessed in sequence according to the addresses in the slave address table, and the data returned by the slaves with normal communication are stored; the addresses of the slaves with abnormal communication are transferred from the slave address table to the abnormal slave table, and the pre-stored data of the abnormal slaves are all set to zero.
3. A vacuum collection box monitoring method as claimed in claim 1, characterized in that: When the slave address table is not an empty table and the accumulated time of accessing the slave is less than a preset period, continue to perform polling access to the slave according to the address in the slave address table; When the time of polling access to the slave is greater than or equal to the preset period, the slaves are accessed in sequence according to the addresses in the abnormal slave table, the data returned by the slaves with normal communication are stored, and the addresses of the slaves with normal communication are transferred from the abnormal slave table to the slave address table; If the communication with the abnormal slave is still abnormal, the access to the slave corresponding to the next address will continue until the access to all abnormal slaves is completed. After the access is completed, the access time is reset.
4. A vacuum collection box monitoring method as claimed in claim 1, characterized in that: When the slave address table is empty and the abnormal slave table is not empty, the slave is polled according to the address in the abnormal slave table: the slaves are accessed in sequence according to the address in the abnormal slave table, the data returned by the slave with normal communication is stored, the address of the slave with normal communication is transferred from the abnormal slave table to the slave address table, and the flag bit of the transfer address from the abnormal slave table to the slave address table is set to 1; If the communication with the slave is abnormal, continue to access the slave corresponding to the next address.
5. A vacuum collection box monitoring method as claimed in claim 4, characterized in that: After accessing the last address, if the address flag bit of the abnormal slave table to the slave address table is zero, the slave will continue to be polled according to the address in the abnormal slave table; If the address flag bit of the abnormal slave table to the slave address table is 1, the slave is polled and accessed according to the address in the slave address table.
6. A vacuum collection box monitoring method as claimed in claim 1, characterized in that: The power supply line and communication line between the host and the slave adopt a two-core cable structure.
7. A vacuum collection box monitoring system, characterized in that: include: The data acquisition module is configured to: obtain a slave address table and an abnormal slave table; wherein the slave address table stores a plurality of slave addresses, and the initial state of the abnormal slave table is an empty table; The monitoring module is configured to: perform polling access to the slaves according to the addresses in the slave address table to realize monitoring of the vacuum collection box; transfer the slaves with abnormal communication in the slave address table to the abnormal slave table; The first judgment module is configured to: when the slave address table is not an empty table and the time for performing polling access to the slave is greater than a preset period, perform polling access to the slave according to the address in the abnormal slave table until the access to all abnormal slaves is completed; The second judgment module is configured to: when the slave address table is empty, perform polling access to the slaves according to the addresses in the abnormal slave table, and transfer the slaves with normal communication to the slave address table.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the vacuum collection box monitoring method according to any one of claims 1 to 6 are implemented.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the program, the steps of the vacuum collection box monitoring method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the vacuum collection box monitoring method according to any one of claims 1 to 6 are implemented.
