Embodiment
The core of the application is to provide a kind of water pump control method and system, and this method need not increase special main control
Device, according to the exchange of the spontaneous carry out authority of default exchanged form between each controller, realize rotation as master controller so that
Each from fractional load and pressure is undertaken between controller, operation and maintenance cost are significantly reduced, eliminates while loses
The possibility of all water pump controls.
To make the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belong to the scope of the application protection.
Technical scheme aims to solve the problem that the control problem of water pump cluster, does not imply that technical scheme can not be real
Apply in single water pump.Although embodiment can be carried out to single water pump, the emphasis of single the technical program is not herein.Therefore,
Following examples refer both to tell about the water pump cluster with multiple water pumps.
It refer to Fig. 1, a kind of flow chart for water pump control method that Fig. 1 is provided by the embodiment of the present application.
In the present embodiment, there are multiple water pumps to need to be controlled operation, while corresponding each water pump is both provided with
Controller, controller form a controller node with water pump, can also be called website.In a website, controller has
Basic water pump control function, while the measurement data of sensor transmission can be received.Controller node is as a unit
It can receive and send corresponding data.
The water pump control method that the present embodiment provides, may comprise steps of:
S101, permission transform signal is received from controller, master controller is converted to by preset order;
Wherein, master controller is the BACnet controllers of high rights state, from the BACnet that controller is low rights state
Controller.
This step S101, it is intended to make in the cluster of controller node, holding has at least one master controller node, and
And the authority of this master controller node can accomplish to be changed with predetermined mode.Therefore, occur when master controller node
During failure, its control authority can be handover in next controller node, will not be gone out so as to the cluster of whole controller node
Existing out of control situation.
It should be noted that the control for cluster water pump is to need to participate in control by the decision-making of a control centre
Among overall regulation and control.For example, there is the situation of hypertonia in water pipe at one, it will usually the pressure feelings spread to around pipe network
Condition, that is to say, that the problem of hypertonia at one, what is reflected is the pressure condition of pipe network around.Likewise, the pressure at one
Power is too high to be alleviated by the water pump of pipe network around, and it is not accomplish to carry out stress reduction only by the water pump at this
's.And water pump control is carried out to pipe network around, it is difficult to realize by each individually controller node, therefore, it is necessary to one
Individual control centre is controlled according to pipe network interior joint feedack to the water pump of each node.Therefore, for the present embodiment
Select master controller node in a predetermined order in cluster controller node, be necessary.
Wherein, the rights state in cluster is divided into two-stage, that is, high rights state and low rights state, is in cluster
The controller of high rights state is unique, and the controller of other low rights states is controlled by high rights state controller.Low power
The controller of limit state is at least one, and the environment that can be applied by cluster does corresponding setting, specifically no longer limits.
Wherein, for master controller node to the authority change from controller node, become according to default order
Change, be in order to there is continually changing control centre in the cluster, with prevent control system occur control interrupt situation, its
The order of change can be random change or is changed according to default number order, no longer limit herein.
And what kind of change procedure is wherein specifically have passed through, certain information is in general transmitted in controller node cluster, makes control
Device node processed makes corresponding transformation, and certain information can be specific existing signal or the transition regime of acquiescence,
It is controller node is gone from the point of view of user, the transformation of its master slave relation is certain tacit agreement be present, is not in entanglement
Situation, concrete mode do not limit herein.
Certainly, wherein may inevitably there is some other processing operations, it is specifically limited herein and no longer, should
The corresponding place of the characteristics of changing depending on particular problem, processing environment and the pipe network streamflow regime faced in specific actual conditions selection
Reason operation and setting predetermined variation order.
S102, master controller calculate operation according to the current pressure values and preset pressure value perform prediction received, obtained
To operational factor;
On the basis of S101, this step is intended to receive the pressure value of current pipe network and default by master controller node
Pressure value, while state computation and prediction are carried out according to actual pressure value and preset pressure value, it is most appropriate to be drawn after discriminatory analysis
The operational factor of preceding water pump.Wherein, master controller node receives current pressure values it is conceivable that other from control
Device node is sent, and preset pressure value can be the parameter or a upper master set in master controller node
The parameter that controller node is sent.
Specifically, current pressure values are the equal of current pipe network state, preset pressure value is the equal of for pipe network
It is expected that running status.The variable quantity of pipe network streamflow regime is calculated according to current amount and expecting state, according to variable quantity combination phase
Water flow variation model in the pipe network answered obtains water pump operation variable quantity, and water pump is calculated according to the control algolithm of corresponding water pump
The operational factor of application.
That is, above-mentioned steps, according to current quantity of state and expected quantity of state, drawing needs how water pump runs
The operational factor of expected state can just be reached.Calculated and operated according to perform prediction, obtained operational factor, water pump can be made
Run in the best condition.
S103, operational factor is sent to from controller, each controller is according to operational factor to being set under each controller
Variable frequency pump unit is controlled.
On the basis of S102, this step is intended to send operational factor into other controller nodes, makes in the cluster
All controller nodes are controlled using the operational factor to the water pump in controller node.
From master controller node to the instruction of the transmission operational factor from controller node, it has been basically completed in cluster
The operation control operation of controller node, is observed in the cluster, is now control centre be present, and this control centre is to other
Control node is controlled operation.Meanwhile others receive access signal from controller node, are converted into master controller node
Controller node in cluster is controlled, observed in units of cluster, the equipment that control centre is not present in the cluster
It is achieved that the autonomy of controller cluster.
This process is similar in actual life:The system of the daily squad leader of implementation in class, the form master set wheel
The mode and order for length of changing shifts, when there is squad leader to ask for leave, claass management is just also carried out by next squad leader, and be unlikely to class
It is chaotic.If what is run is the system of normal squad leader, in the case that squad leader asks for leave, appointed immediately newly if the form master is no
Squad leader, also it is managed without replacement squad leader immediately, the state of no management will be absorbed in.Daily rotation squad leader be equivalent to according to
Predetermined way and order join the authority of master controller node, and the cluster of controller node is not in the case where needing control centre
Autonomy is realized, while when there is the situation that master controller node can not work, can also be run well.
Based on above-described embodiment, how the present embodiment is obtaining one of the permission transform aspect from controller node
Technology expands, and other steps are substantially the same with a upper embodiment, and same section can be found in an embodiment relevant portion, herein not
Repeat again.
It can include:
When triggering preparatory condition, master controller node is converted to from controller node, and to other from controller node
Sending permission conversion signal.
This step is intended to when triggering some preparatory condition, and the master controller node is converted into this from controller node,
And send the permission transform signal to other from controller node.
Wherein, one is allow to change the condition occurred as event condition or time conditions.Event condition can be with
More flexibly, certain particular case is set, principal and subordinate's rapid translating can be made into suitable controller node, to facilitate reply to become
Change.And with time conditions, it can prevent that conversion signal from sending situation about being obstructed, when arrival time event, from controller node
Acquiescence master controller node is had been converted into from controller node, master controller node is automatically converted to, without waiting for master before
Controller node sends conversion signal.
It should be noted that from controller node changed according to default order, so being not in who is received
Situation about just being changed to signal, therefore, master controller node can send conversion letter to every other from controller node
Number.So master controller node saves the hard of master controller node without knowing which next master controller node is
Part resource.
Based on above technical method, a kind of water pump control method of the application offer, it need not increase special main control
Device, according to the exchange of the spontaneous carry out authority of default exchanged form between each controller, realize rotation as master controller so that
Each from fractional load and pressure is undertaken between controller, operation and maintenance cost are significantly reduced, eliminates while loses
The possibility of all water pump controls.
It refer to Fig. 2, the flow chart in another water pump control method that Fig. 2 is provided by the embodiment of the present application.
The present embodiment is to be directed to how master controller node in a upper embodiment obtains the tool that preset pressure value is made
Body limits, and other steps are identical with upper embodiment answer, and same section can be found in an embodiment relevant portion, herein no longer
Repeat.
S201, state analysis is operated according to running status, obtains preset pressure value;
This step is intended to carry out a series of analysis operations to running status, obtains the preset pressure value for being adapted to current state.
Of course, it is possible to which the mode for obtaining preset pressure value is a lot, may additionally there are other processing when carrying out analysis operation and walk
Suddenly, it is specifically limited herein and no longer.
S202, preset pressure value is sent to master controller by controller route.
On the basis of S201, this step is intended to send by the preset pressure value that controller route obtains Treatment Analysis
Give master controller node, it is contemplated that in sub-controller cluster, controller is connected by route, completes control
The direct data transfer of device.Wherein, route refers to the transmission that data are completed in Internet.
It should be noted that in the present embodiment, using the 4th layer of osi model in BACnet agreements:Physical layer, number
According to link layer, Internet and application layer.Because the environment of application is not the application environment of terminal, comparatively network level compared with
Simply, the transmission speed simultaneously for data requires higher.Therefore, the present embodiment, the four layers of osi model selected after simplifying.
Corresponding, data transfer inside controller occurs in application layer, and the unit that controller is independent as one, between it
Data transfer occurs in Internet, and completes forwarding by route, can be that controller saves unnecessary network layer transport unit,
And when amount controller increases, the quantity of route also will not substantially increase, and reduce hardware cost.It is meanwhile single when occurring
During member damage, also beneficial to the maintenance of controller cluster.
In the controller cluster of route is provided with, due to the data of each controller need to be used just can be with by routing forwarding
Transmission, therefore, the connection of cluster is to be rendered as star topology, route the center for structure.Line between implementing to save
Road connects, while when circuit damages, is also easier to find out damaged location.
It is envisioned that the quantity routeing in the cluster can increase with the increasing for quantity of controller node, but
Remain that the quantity of route is less than the quantity of controller node.Its specific ratio for setting quantity, can be according to using ring
Border difference and equipment performances and set, do not limit herein.
Likewise it is preferred that, observed data can be provided for the controller cluster network in embodiment, collect data
Management platform.
At this point it is possible to by route to management platform send controller cluster data, and need not each controller to
Management platform is sent, and saves the line arrangement of implementation.
Certainly, may inevitably there are some processing operations during controller and route transmission data,
Herein and it is not specifically limited, the specific requirement in specific actual conditions should be regarded, then summation considers and selects corresponding processing to calculate
Method and step.
It refer to Fig. 3, the flow chart in another water pump control method that Fig. 3 is provided by the embodiment of the present application.
The present embodiment be the prediction being directed in a upper embodiment calculate operation make one it is specific limit, other steps with it is upper
One embodiment is substantially the same, and same section can be found in the relevant portion of an embodiment, no longer repeat herein.
It specifically may comprise steps of:
S301, master controller send query statement to from controller;
S302, the feedback data of sensor is inquired about according to query statement from controller, obtains current pressure values;
S303, sent from controller by current pressure values to master controller;
Step S301 and step S302, it is intended to which the current pressure for needing to judge is produced by the controller node in cluster
Value.Controller node receives instruction, by the sensor being arranged under node, collects related pressure value.
Based on above-mentioned steps, step S303 sends obtained pressure value to master controller node.
Certainly, the transmission and the transmission of current pressure values that are instructed at this and the route passed through in cluster are completed, in transmission
Also some processing operations are inevitably needed, suitable processing operation should be selected depending on current application situation, is not done herein superfluous
State.
S304, master controller node are predicted calculating operation according to current pressure values and preset pressure value, transported
Row parameter.
Based on step S303, this step is intended to by predicting that calculating operation obtains operational factor, its process above-described embodiment
In relate to, will not be described here.
, wherein it is desired to explanation, in the present embodiment, the network layer protocol of route are formed based on MSTP subnets, master control
Device node processed passes through from controller node and sends inquiry and control instruction.The corresponding finger based on application layer is received from controller node
Order, and send corresponding message.The instruction of its application layer can be such as:“ReadProperty”、
" ReadPropertyMultiple ", " WriteProperty ", " WritePropertyMultiple ", " Who-has " and " I-
Have ", " Who-is " and " I-am ", certainly, its title instructed, content and instruction format can be according to its concrete applications
Environment is designed, and the information feature transmitted between adaptive controller, is not limited herein.
Based on above technical method, a kind of water pump control method of the application offer, it need not increase special main control
Device, according to the exchange of the spontaneous carry out authority of default exchanged form between each controller, realize rotation as master controller so that
Each from fractional load and pressure is undertaken between controller, operation and maintenance cost are significantly reduced, eliminates while loses
The possibility of all water pump controls.
Below to the embodiment of the present application provide control system of water pump be introduced, control system of water pump described below with
Above-described water pump control method can be mutually to should refer to.
It refer to Fig. 4, a kind of structured flowchart for control system of water pump that Fig. 4 is provided by the embodiment of the present application.
The system can include:
N number of interconnection, operation is calculated according to the current pressure values perform prediction received and obtains operational factor, and sent
Operational factor;Control signal is sent according to operational factor;Rights state conversion is carried out when receiving permission transform signal
BACnet controllers 100;
Correspond and be connected with N number of BACnet controllers, receive and N number of frequency conversion of operation is adjusted according to control signal
Water pump assembly 200;
Correspond and be connected with N number of BACnet controllers, the real-time status for gathering water supply network obtains and sends current pressure
N number of sensor 300 of force value.
Wherein, it the preset order, can be that controller is numbered, be turned according to the order for numbering descending
Change;The time order and function of cluster network can also be added according to it as preset order, is changed.As long as turning in the cluster
The order changed is rational, and is not in repetition situation, can serve as preset order, does not limit herein.
It refer to Fig. 5, a kind of actual controller in a kind of control system of water pump that Fig. 5 is provided by the embodiment of the present application
Structure flow chart.
Specifically be made up of processor, button display module, MSTP modules and data input/output module, processor respectively with
Button display module, MSTP modules, data input/output module are connected;MSTP modules are respectively at processor and MSTP subnet phases
Even;Data input/output module respectively with the variable frequency pump unit and pressure sensor phase outside processor and BACnet controllers
Even.
Software section therein, comprising water pump model data library module, application process module, configuration management scheduler module and
Communication process module;Water pump model data library module is used to water pump operation parameter is estimated and predicted;Application process module
For calculating and controlling the rotating speed that variable frequency pump is run and the number of units that puts into operation;Configuration management scheduler module is used to configure BACnet controls
The parameter of device and variable frequency pump;Communication process module is realized between each BACnet controllers, BACnet controllers and control centre
Between and BACnet controllers and variable frequency pump between communicated.
When system operates, by the button display module of each BACnet controllers, to each BACnet controllers pair
As the attribute progress parameter configuration of example, the attribute of some of which object can be after example generation in configuration management process
Configured, can also be determined when generating example.
In the present embodiment, the controller of the BACnet agreements of selection belongs to information processing layer, and major function is to define pair
As model and agreement grammer, the semanteme of interoperability information is explained, and performs corresponding processing procedure.BACnet protocol definitions 35
Individual service, in this example the BACnet controllers based on control system of water pump using " ReadProperty ",
" ReadPropertyMultiple ", " WriteProperty ", " WritePropertyMultiple ", " Who-has " and " I-
Have ", " Who-is " and " I-am ", " ConfirmedCOVNotification " and
Application layer services such as " ConfirmedEventNotification ";By taking " ReadProperty " as an example, according to BACnet standards
Regulation, " ReadProperty " message APDU coding ASN.1 be defined as follows:
" service-request " is user data part, the context mark that its coded portion needs except each attribute
Note is outer, and others are to read " Object Identifier " (object identifier), " Property in attribute service primitive
Identifier " (attribute mark's symbol), " Property Array Index " (attribute array indexing);
Wherein, a BACnet application service from be generated to transmission must coding Jing Guo following steps:
(1) application layer protocol data cell APDU is encoded;
(2) Network layer Protocol Data unit NPDU is encoded;
(3) data link layer and physical layer protocol data unit coding (MSTP data frames);
Tables 1 and 2 is refer to, table 1 is BACnet Internets in a kind of control system of water pump that the embodiment of the present application provides
Protocol Data Unit forms table;Data link layer protocol in a kind of control system of water pump that table 2 is provided by the embodiment of the present application
Data cell coding composition table.
The BACnet Network layer Protocol Datas unit of table 1 forms table
Version |
1 byte |
Control |
1 byte |
DNET |
2 bytes |
DLEN |
1 byte |
DADR |
Variable byte |
SNET |
2 bytes |
SLEN |
1 byte |
SADR |
Variable byte |
Hop Count |
1 byte |
Message Type |
1 byte |
Vendor ID |
2 bytes |
NUD |
N number of byte |
The data link layer protocol data unit of table 2 coding composition table
Incorporated by reference to Fig. 6, a kind of practical structures schematic diagram for control system of water pump that Fig. 6 is provided by the embodiment of the present application.
This implementation can also include on the basis of other embodiments:
It is connected with each BACnet controllers, receives and forward the BACnet routers of presupposed information;With BACnet roads
It is connected by device, receives controller information and send the control centre of control information.
The control system of water pump that the technical program can provide, can by BACnet control centres, BACnet routers,
BACnet controllers, variable frequency pump unit, pressure detecting module composition;Wherein, BACnet control centres by BACnet/IP with
BACnet routers are connected, and BACnet routers are connected by BACnet/MSTP subnets with multiple BACnet controllers, each
BACnet controllers are connected by RS485 or digital analogue signal with variable frequency pump unit, variable frequency pump unit and water supply network
It is connected, each BACnet controllers detect the pressure of water supply network by pressure detecting module;Wherein each variable frequency pump unit
It is made up of frequency converter and water pump;BACnet controllers are realizing the rotating speed of control variable frequency pump unit and the variable frequency pump unit that puts into operation
Number of units while, pass through BACnet routers and BACnet control centres and carry out data exchange.
Formed according to said system, when system starts, into init state, by each BACnet controllers website and
BACnet routers website is added in MSTP network token logic boxs, and shows mould by the button of each BACnet controllers
Block, parameter configuration is carried out to each BACnet controllers, and distribute main website address.
Wherein, the configuration of object instance, 1 variable frequency pump unit 1 " Device " object instance, 1 are carried out to system
It is individual that " Analog Input " object instances, 1 " Analog Output " object instances, 1 " Analog Value " objects are real
Example, 1 " Binary Input " object instances, 1 " Binary Output " object instances, 1 " Calendar " object instance
" Event Enrollment " object instances represent with 1;BACnet control centres are configuring each object instance information from the background, and
It is associated with object identifier;
Wherein, by taking " Device " object instance as an example, can be defined using following structure:
Wherein, Device object instances property value setting can be such as table 3.
The Device object instance attribute value tables of table 3
Operational factor, the attribute of upgating object example, and control are obtained when master controller node calculates operation according to prediction
System instruction is sent to the variable frequency pump unit of each BACnet controllers control, changes in " AnalogOutput " object instance
The value of " Present_Value " attribute, frequency converter frequency is adjusted, reach the purpose of control motor speed.
The step of its specific control operating, it can include:
Step 1, when 1 variable frequency pump stable operation under the control of BACnet controllers, and water supply network pressure is kept
It is stable, go to step 5;
Step 2, when water consumption increase, when 1 variable frequency pump full speed running cannot guarantee that the pressure stability of pipe network, will become
Frequency water pump puts into power frequency operation, to keep the continuity of pressure, while sends message frame and is controlled to the BACnet of next website
Device, this variable frequency pump is put into operation, and adjust the frequency converter frequency of this variable frequency pump, until water supply network pressure is kept
It is stable, go to step 5;
Step 3, when water consumption continues to increase, and 2 variable frequency pump full speed runnings cannot guarantee that the pressure stability of pipe network,
This two variable frequency pumps are put into power frequency operation, to keep the continuity of pressure, while send message frame to next website
BACnet controllers, this variable frequency pump is put into operation, and adjust the frequency converter frequency of this variable frequency pump, until feed pipe
Net pressure remained steady, goes to step 5;
Step 4, when water consumption reduces, it is not necessary to which 3 water pump operations keep pressure stability, send message frame to run time
Most long BACnet controllers, this variable frequency pump of stopping transport, while the frequency converter frequency of this TV station variable frequency pump is adjusted, until supplying water
Ductwork pressure keeps stable, goes to step 5;
Step 5, when water consumption continues to reduce, it is not necessary to which 2 water pump operations keep pressure stability, send message frame to operation
The BACnet controllers of time length, this variable frequency pump of stopping transport, while the frequency converter frequency of this TV station variable frequency pump is adjusted, until supplying
Grid pressure remained steady, goes to step 5;
Step 6, the time for token being held when website does not reach setting time, or holds information and the instruction of token website
Still without being sent completely, then 2 are gone to step, token is otherwise transmitted to next website, and go to step 2.
Each embodiment is described by the way of progressive in specification, and what each embodiment stressed is and other realities
Apply the difference of example, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment
Speech, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration
.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description
And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These
Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty
Technical staff can realize described function using distinct methods to each specific application, but this realization should not
Think to exceed scope of the present application.
Specific case used herein is set forth to the principle and embodiment of the application, and above example is said
It is bright to be only intended to help and understand the present processes and its core concept.It should be pointed out that the ordinary skill for the art
For personnel, on the premise of the application principle is not departed from, some improvement and modification, these improvement can also be carried out to the application
Also fallen into modification in the application scope of the claims.
It should also be noted that, in this manual, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also other key elements including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including key element, method, article or equipment being also present.