A kind of module machine system control method based on the group-net communication mode
Technical field
The present invention relates to the modular novel wind-heat pump assembly Compressor Technology of air-conditioning control, particularly relate to a kind of module machine system control method based on the group-net communication mode.
Background technology
During air-conditioning heating, gas refrigerant is pressurizeed by compressor, becomes high temperature and high pressure gas, enters the heat exchanger (being condenser this moment) of indoor set, and the condensation liquefaction heat release becomes liquid, simultaneously with the room air heating, thereby reaches the purpose that improves indoor temperature.Liquid refrigerant reduces pressure through throttling arrangement, enters the heat exchanger (being evaporimeter this moment) of off-premises station, and evaporation gasification heat absorption becomes gas, simultaneously the heat (it is colder that outdoor air becomes) of suction chamber outer air.The cold-producing medium that becomes gas enters the next circulation of compressor starts again.
During air conditioner refrigerating, gas refrigerant is pressurizeed by compressor, becomes high temperature and high pressure gas, enters the heat exchanger (being condenser this moment) of off-premises station, and the condensation liquefaction heat release becomes liquid, and heat discharges to atmosphere simultaneously.Liquid refrigerant reduces pressure through throttling arrangement, enters the heat exchanger (being evaporimeter this moment) of indoor set, and evaporation gasification heat absorption becomes gas, draws simultaneously the heat of room air, thereby reaches the purpose that reduces indoor temperature.The cold-producing medium that becomes gas enters the next circulation of compressor starts again.
The process of liquefaction and gasification by above cold-producing medium, heat is drawn at the evaporimeter place, transfers to the condenser place and discharges, thereby realize the transfer of heat, reaches the purpose that heats, freezes.
Module refers to have certain refrigeration or heats parameter or air-conditioning system that the unit of allomeric function forms, the user can large freedom in minor affairs select needed air conditioner load according to the configuration of whole air-conditioning system, be in operation and select to require the mode of operation of one or more while unit operations according to functional need, play energy-conservation purpose.The characteristics of module machine maximum can be carried out module combinations according to the actual load needs exactly, then can open the different unit of quantity according to the actual load needs in use.
Fig. 1 is conventional module machine communication scheme, and as shown in the figure, the conventional module communication mode adopts the host computer polls mode to control each submodule was exported and inquired about to submodule current set state and fault message.Module host needs man-to-man mode that each module handset is inquired about, and each module handset also needs man-to-man mode to feed back to module host.When running into that information content is large, number of modules is more and requirement of real-time when higher, the processing of conventional method is just aobvious helpless.And roll off the production line on existing each submodule of module machine identification and hour of log-on are generally 3-10 minute, and the speed of Refresh Data is very slow, can not satisfy the requirement of real-time query at all.
And in the conventional module machine system, main frame is fixing or only has a backup host.Under main frame and backup host failure conditions, whole system just can't normally be opened, and affects the operating efficiency of whole system.
Summary of the invention
The objective of the invention is to be the shortcoming for prior art, and a kind of module machine system control method based on the group-net communication mode is provided, can shorten each submodule query time to 10 of module machine second, and can improve efficient and the stability of whole system operation.
Technical scheme of the present invention: a kind of module machine system control method based on the group-net communication mode comprises the steps:
S1 disposes a module host, and this module host and one or more module handset are formed bus-network by twisted-pair feeder;
S2, module host is to registering in the wire module handset or the off-line module handset is nullified, and according to the running time in the wire module handset module handset being carried out prioritization;
S3, according to this prioritization and actual demand, module host is to carrying out load or unload in the wire module handset.
Among the present invention, in execution in step S2 and S3 process, also comprise:
S4, the reaching the standard grade and rolling off the production line of module host Real-Time Monitoring module handset registered the module handset of reaching the standard grade and it come the minimum position of priority, and the module handset that rolls off the production line is nullified its log-on message.
Among the present invention, among the step S2, module host comprises the step of registering in the wire module handset:
S21, module host is at first to the bus order that initiates a message, and this command format comprises and sends object, receives object, data and verification;
S22, all the module handsets on the bus are all received the information order that module host is sent, and send next bar information order according to this command format to bus by the reception object of this information order appointment;
S23, if in Preset Time, module host does not receive the presetting module handset and issues the information order of next module handset by bus, then judges this presetting module handset off-line, is sent to bus by module host to receive object and be the information order of this next module handset again;
S24 sends when receiving object and being the information order of module host to bus when last module handset, and module host is finished the online registration to all module handsets in the system.
Among the present invention, among the step S23, if judge this presetting module handset off-line, then module host is nullified the log-on message of the module handset of this off-line.
Among the present invention, step S3 specifically comprises:
S31, when the system load scarce capacity, the module handset of lowest priority just is allowed to load;
S32, when system need to unload, the module handset of lowest priority was at first unloaded.
Among the present invention, system carries out load or unload control according to the difference of Current Temperatures and design temperature to online module handset.
Among the present invention, the parameter detecting of module host comprises the parameter detecting to environment temperature, inner disc temperature, wind pushing temperature and return air temperature.
Among the present invention, the parameter detecting of module handset comprises the parameter detecting to module low pressure, module outer disk temperature and high and low voltage switch state.
Among the present invention, in system, set up loading zone, holding area and unload zone, each cycle loads a compressor in loading zone, keeps the duty when the front module handset in holding area, unloads a compressor every one-period in unload zone.
The beneficial effect that the present invention has: adopt the module machine system control method based on the group-net communication mode of the present invention, control cycle can be foreshortened to half of prior art, and greatly improved the adaptability of system; And have the short response time, guarantee to greatest extent Systems balanth.
Description of drawings
Fig. 1 is conventional module machine communication scheme;
Fig. 2 is module machine communication scheme of the present invention;
Fig. 3 forms the bus-network schematic diagram by twisted-pair feeder between module host of the present invention and a plurality of module handset;
Fig. 4 is the schematic diagram that module host of the present invention is registered to the module handset;
Fig. 5 is the schematic diagram of command format of the present invention;
Fig. 6 is the schematic diagram of control interval in the logic control stage of the present invention;
Fig. 7 is the present invention increases log-on message and its log-on message of cancellation automatically for the module handset schematic diagram.
The specific embodiment
Further understand and understanding for making architectural feature of the present invention and the effect reached had, cooperate detailed explanation in order to preferred embodiment and accompanying drawing, be described as follows:
Fig. 2 is module machine communication scheme of the present invention, as shown in the figure.Traditional module host needs man-to-man mode that each module handset is inquired about, and each module handset also needs man-to-man mode to feed back to module host.And module machine of the present invention system adopts the advanced communication of algorithms, module host is inquired about each module handset by the mode ground of one-to-many, therefore so that the control cycle of module machine of the present invention system foreshortens to original half, greatly improved the adaptability of system.
Module machine of the present invention system mainly comprises two or more modules, wherein must have a module to be configured to module host, and at least one module is configured to the module handset.Shown in Fig. 3 is to form the bus-network schematic diagram by twisted-pair feeder between a module host and a plurality of module handset, but the present invention is not limited to this.
But module host and module handset can be switched arbitrarily under pre-conditioned, that is to say the operational blocks which partition system handset in the system, through all can be used as module host control after the configuration.For example, can namely ought open a gauge tap by a gauge tap so that module host and module handset are switched, this module handset namely can be used as module host, and when shutting this gauge tap, this module handset can only be as module host.But the present invention is not limited to come handover module main frame and module handset by this gauge tap, can also realize by alternate manner.
In the conventional module machine system, main frame is fixing or only has a backup host.Under main frame and backup host failure conditions, whole system just can't normally be opened; And in module machine of the present invention system, realize the module indifference, after losing efficacy appearred in main backup module, configurable arbitrarily online module was used as module host, continued the normal operation of control whole system.
Have the detection of some systematic parameters on the module host, such as environment temperature, the inner disc temperature, wind pushing temperature, and return air temperature etc.The module handset only detects and changes the module relevant parameter, such as the module low pressure, and module outer disk temperature, high and low voltage switch state etc.
Fig. 4 is the schematic diagram that module host of the present invention is registered to the module handset, and as shown in the figure, behind the power-up initializing, module host communicates by the order of module handset shown in Figure 4, and online module handset is registered, and its step is as follows:
Main frame is at first to the bus order that initiates a message, and command format comprises sending object, receiving object, data and verification as shown in Figure 5:
Send object: module host;
Receive object: module handset 1;
After module handset 1 receives this message, same on the bus message of this command format of transmission;
Send object: module handset 1;
Receive object: module handset 2;
In Preset Time (for example 60 milliseconds in), if module host receives the information order of module handset 1, then module host thinks that module handset 1 is online; If module host does not receive the order that module handset 1 is issued module handset 2, then module host sends this format command again on bus, but while judge module handset 1 off-line.
Send object: module host;
Receive object: module handset 2;
The information order that last module handset sends;
Send object: module handset N;
Receive object: module host;
So circulation, module host can be finished all the module handsets in the system are carried out online registration.
Not the control deviation that said process can not produce in real time because of message master control system.Module host is after the registration of finishing whole module handsets, module host at first sorts to chartered module handset, sort the running time by the module handset from short to long, and the preferential operation that the time is short is with the running time of each module handset of balance whole system.
The module handset that success is registered in module host could be in the running of system, and being called loads or unloading.The member of new registration is configured to the minimum module handset of running priority level, this principle has guaranteed only in the situation of original system load capacity deficiency, this new registration module handset just is allowed to load, and when system enters unload zone, then this new registration module handset is at first unloaded, to guarantee that the member who namely newly adds can not have influence on the running status of each submodule of original system, guarantees Systems balanth to greatest extent.
After main frame is finished the prioritization of registered module handset, enter the logic control stage.The control stage is poor to control temperature and design temperature, and control interval is divided into loading zone, holding area, and unload zone, as shown in Figure 6:
Loading zone: each cycle loads a compressor;
Holding area: keep the duty when the front module handset, namely neither loading does not unload yet;
Unload zone: every compressor of one-period unloading.
In the whole process of operation, module host can realize certainly nullifying function from registration to the Real-Time Monitoring of reaching the standard grade and roll off the production line of module handset, does not affect the operation of whole system, namely in the running of system, accomplishes the warm connection function of modules in system.
After module host recognized certain module handset and forwards off-line state to from presence, module host can be nullified its log-on message automatically.After module host recognized certain module handset and forwards presence to from off-line state, module host can receive the information of this module handset, and was that this module handset increases system registry information automatically.Equally, system also can come the module handset of reaching the standard grade the minimum position of priority.For example, as shown in Figure 7, after module handset 2 rolled off the production line, module host can be nullified the log-on message of module handset 2 automatically; After module handset 2 was reached the standard grade, module host can increase the log-on message of module handset 2 automatically, and module handset 2 is come the minimum position of priority.
Hence one can see that, adopt the module machine system control method based on the group-net communication mode of the present invention, can shorten the whole system modules (comprises between module host and the module handset, between module handset and the module handset) the message passing time, and upper down status that can real-time judge module handset, and according to the difference of Current Temperatures and design temperature online module handset is carried out load or unload control.
In sum, it only is preferred embodiment of the present invention, be not to limit scope of the invention process, all equalizations of doing according to the described shape of claim scope of the present invention, structure, feature and spirit change and modify, and all should be included in the claim scope of the present invention.