CN112394705B - Method and device for processing exception of control program system parameters - Google Patents

Method and device for processing exception of control program system parameters Download PDF

Info

Publication number
CN112394705B
CN112394705B CN201910762334.5A CN201910762334A CN112394705B CN 112394705 B CN112394705 B CN 112394705B CN 201910762334 A CN201910762334 A CN 201910762334A CN 112394705 B CN112394705 B CN 112394705B
Authority
CN
China
Prior art keywords
parameter
zero
system parameters
parameters
mainboard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910762334.5A
Other languages
Chinese (zh)
Other versions
CN112394705A (en
Inventor
蒋浩
罗刚
雷朋飞
罗金星
陈学舒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong PHNIX Eco Energy Solution Ltd
Original Assignee
Guangdong PHNIX Eco Energy Solution Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong PHNIX Eco Energy Solution Ltd filed Critical Guangdong PHNIX Eco Energy Solution Ltd
Priority to CN201910762334.5A priority Critical patent/CN112394705B/en
Publication of CN112394705A publication Critical patent/CN112394705A/en
Application granted granted Critical
Publication of CN112394705B publication Critical patent/CN112394705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The embodiment of the application discloses a method and a device for processing exception of system parameters of a control program, electronic equipment and a storage medium. The method comprises the following steps: presetting a parameter bit which can not be zero in each system parameter in a control program as an identification parameter bit; when the mainboard is powered on, reading system parameters from a mainboard memory, and judging whether parameter values on the identification parameter bits in the system parameters are zero or not; restoring the system parameter with the parameter value of zero on the identification parameter bit to a default value, wherein the default value is stored in the mainboard memory; and synchronizing all system parameters to an external control end. According to the technical scheme, abnormal zero change of system parameters on the mainboard can be avoided, real-time response to control of each load of the heat pump system can be guaranteed, and the heat pump system can work normally.

Description

Method and device for processing exception of control program system parameters
Technical Field
The embodiment of the application relates to the technical field of heat pump control, in particular to an exception handling method and device for system parameters of a control program.
Background
In the daily use of a heat pump system, in order to facilitate management and maintenance of a control program, generally, a heat pump control program configures a machine controlled by the control program by setting system parameters (such as "system number", "fan type", and the like) in the control program, so that the control program can control a plurality of heat pump systems of the same type (such as a single-double system heat pump control program, which can control heat pumps of different system numbers and different fan types).
However, in the actual use process of the heat pump system, the system parameters are disturbed and tampered, which easily causes the abnormal program control, and further affects the normal use of the unit.
Disclosure of Invention
The embodiment of the application provides an exception handling method and device for system parameters of a control program, an electronic device and a storage medium, which can avoid the exception of the system parameters from becoming zero and better handle the system exception.
In a first aspect, an embodiment of the present application provides an exception handling method for a control program system parameter, which is applied to a main board of a heat pump system, and includes:
presetting a parameter bit which can not be zero in each system parameter in a control program as an identification parameter bit;
when the mainboard is powered on, reading system parameters from a mainboard memory, and judging whether parameter values on the identification parameter bits in the system parameters are zero or not;
restoring the system parameter with the parameter value of zero on the identification parameter bit to a default value, wherein the default value is stored in the mainboard memory;
and synchronizing all system parameters to an external control end.
Further, after the system parameter with a parameter value of zero at the identification parameter is restored to a default value, the method further includes:
and judging whether the system parameters on the identification parameter bits are zero or not at intervals of a set time period, and re-reading the corresponding system parameters from the mainboard memory for the identification parameter bits with the system parameters being zero.
Further, the synchronizing all system parameters to the external control end includes:
pushing all system parameters to an external control end;
judging whether communication abnormity occurs according to the response of the external control end;
when communication is abnormal, all system parameter setting times are pushed again until communication is normal.
Further, when communication is abnormal, the system parameter setting times are pushed again until the communication is normal, and if the communication is still abnormal after all the system parameter setting times are pushed again, the real-time state parameters of the heat pump system are directly pushed to the external control end.
Further, after synchronizing all system parameters to the external control end, the method further includes:
and receiving the parameter change information of the external control end corresponding to the identification parameter in real time, and not analyzing the parameter change information with a parameter change value of zero.
Further, after the receiving, in real time, the parameter change information of the external control end corresponding to the identification parameter, and not analyzing the parameter change information whose parameter change value is zero, the method further includes:
and if the parameter change value of the parameter change information corresponding to the identification parameter of the external control end is zero, synchronizing all current system parameters to the external control end again.
In a second aspect, an embodiment of the present application provides an exception handling method for controlling program system parameters, which is applied to an external control end of a heat pump system, and includes:
presetting a parameter bit which can not be zero in each system parameter in a control program as an identification parameter bit;
receiving all system parameters uploaded by a mainboard;
judging whether the system parameter on the identification parameter position is zero or not every other set time period;
and if the system parameters on the identification parameter bit are zero, reading all system delivery parameters stored in an external control end memory, and synchronizing the system delivery parameters to the mainboard.
In a third aspect, an embodiment of the present application provides an exception handling apparatus for controlling program system parameters, including:
the preset module is used for presetting the parameter bits which can not be zero of each system parameter in the control program as the identification parameter bits;
the judging module is used for reading system parameters from a mainboard memory when a mainboard is powered on and judging whether parameter values on the identification parameter bits in the system parameters are zero or not;
the recovery module is used for recovering the system parameter with the parameter value of zero on the identification parameter to a default value, and the default value is stored in the mainboard memory;
and the synchronization module is used for synchronizing all system parameters to the external control end.
In a fourth aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method of exception handling of control program system parameters as described in the first aspect.
In a fifth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the exception handling method for controlling program system parameters according to the first aspect.
In the embodiment of the application, the identification parameter position that the system parameter can not be zero is preset on the mainboard, when the mainboard is powered on, the system parameter is read from the mainboard memory, whether the parameter value on the identification parameter position in the system parameter is zero or not is judged, the system parameter with the parameter value on the identification parameter position being zero is recovered to a default value, and all the system parameters are synchronized to the control end, so that the abnormal zero change of the system parameter on the mainboard is avoided, the real-time response of the control on each load of the heat pump system is ensured, and the heat pump system works normally;
in addition, according to the embodiment of the application, the identification parameter bits with the system parameters which cannot be zero are preset at the external control end of the heat pump system, then whether the system parameters on the identification parameter bits are zero is judged in a circulating mode, if the identification parameter bits with the system parameters which are zero are judged to exist, all system delivery parameters stored in the storage are read, the system delivery parameters are synchronized to the main board, the condition that the system parameters of the external control end and the main board are abnormally zero is avoided, the external control end can normally control the heat pump system, real-time response to control of each load of the heat pump system is ensured, and use experience of a user is optimized.
Drawings
FIG. 1 is a flowchart illustrating a method for handling exception of system parameters of a control program according to an embodiment of the present disclosure;
FIG. 2 is a detailed flowchart of system parameter recovery according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating system parameter synchronization according to an embodiment of the present disclosure;
fig. 4 is a detailed flowchart of system parameter retransmission in the first embodiment of the present application;
FIG. 5 is a flowchart of another exception handling method for system parameters of a control program according to a second embodiment of the present application;
fig. 6 is a detailed flowchart of re-reading system parameters in the second embodiment of the present application;
FIG. 7 is a flowchart of another exception handling method for system parameters of a control program according to a third embodiment of the present application;
fig. 8 is a detailed flowchart of system parameter packet parsing in the third embodiment of the present application;
FIG. 9 is a flowchart of another exception handling method for system parameters of a control program according to a fourth embodiment of the present application;
fig. 10 is a detailed flowchart of factory parameter download restoration of the system in the fourth embodiment of the present application;
fig. 11 is a schematic structural diagram of an exception handling apparatus for controlling system parameters of a program according to a fifth embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application are described in detail below with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The exception handling method for the system parameters of the control program provided by the embodiment of the application aims to avoid the exception of some system parameters from becoming zero through exception handling. In the use process of the heat pump system, all loads (such as a compressor, a fan, a water pump, a four-way valve, an electronic expansion valve and the like) in the heat pump system need to be coordinated through a main board of the heat pump system. The main board is programmed with a heat pump control program, and the heat pump control program includes system parameters (such as fan parameters, system number, etc.) for controlling the operation of each load of the heat pump system. When the mainboard is powered on, the system parameters stored in the internal memory are read, and the system parameters are synchronized to the external control end. And the external control end is used for displaying system parameters and state parameters and realizing input control on the heat pump system. When some system parameters which cannot be zero in a heat pump control program are abnormal and change to zero, the control logic corresponding to '0' is not arranged in the mainboard, so that corresponding tasks cannot be executed, the response among all loads of the unit cannot be realized, and the unit is abnormally operated, so that the unit cannot work and is broken down. Obviously, the heat pump system may affect the operation of the machine when the system parameter becomes zero, and further affect the actual experience of the user. Therefore, the method for processing the abnormality of the system parameter of the control program in the embodiment of the application is provided to solve the problem that the normal operation of the heat pump system is affected due to the abnormal zero of the system parameter.
Implementing one step:
fig. 1 is a flowchart of an exception handling method for a control program system parameter according to an embodiment of the present application, where the exception handling method for a control program system parameter provided in this embodiment may be executed by an exception handling device for a control program system parameter, the exception handling device for a control program system parameter may be implemented in a software and/or hardware manner, and the exception handling device for a control program system parameter may be formed by two or more physical entities or may be formed by one physical entity. Generally, the abnormality processing device of the control program system parameter may be a main board of the heat pump system.
The following description will be made by taking a main board of the heat pump system as an example of a method for processing an abnormality that executes system parameters of a control program. Referring to fig. 1, the method for processing an exception of a system parameter of a control program specifically includes:
s110, presetting a parameter which can not be zero in each system parameter in a control program as an identification parameter;
s120, when the mainboard is powered on, reading system parameters from a mainboard memory, and judging whether parameter values on the identification parameter bits in the system parameters are zero or not;
s130, restoring the system parameter with the parameter value of zero on the identification parameter to a default value, wherein the default value is stored in the mainboard memory;
and S140, synchronizing all system parameters to an external control end.
For example, in order to accurately determine whether a parameter value that cannot be zero in a system parameter becomes zero, parameter bits that cannot be zero in each parameter value in the system parameter are identified in advance on the motherboard, and the parameter bits are set as identification parameter bits. The identification parameter digit is used for judging whether the parameter value on the identification parameter digit is zero or not when abnormality detection is carried out subsequently, so that whether the abnormal zero change of the system parameter occurs in the current heat pump system control program or not can be determined.
Referring to fig. 2, when the system parameters stored in the motherboard memory (EEPROM) are electrically read on the motherboard, the detection that the system parameters are abnormally zero is performed. And judging whether the parameter value on the identification parameter digit is zero or not based on the preset identification parameter digit. For example, the parameter value of the preset parameter digit "Y" cannot be set to zero, when the motherboard circularly reads the system parameter on the motherboard memory, the motherboard determines whether the parameter value of the parameter digit "Y" is zero, and if the parameter value of the parameter digit "Y" is not zero, the motherboard normally reads the system parameter information corresponding to the parameter digit "Y" from the memory; if the parameter value of the parameter bit "Y" is zero, it indicates that the parameter information stored in the parameter bit "Y" corresponding to the current motherboard memory is incorrect, and the motherboard directly extracts the default parameter value of the parameter bit "Y" from the motherboard memory, and restores the parameter value of the parameter bit "Y" to the default value. It should be noted that the main board memory stores the system parameters set by the heat pump system control program in daily use, and stores the system parameters initialized by the main board as default values of the system parameters. Finally, the parameter bit "Y" restores the system parameter value to a default value, and stores the default value in the system parameter of the motherboard memory, replaces the parameter value of which the parameter bit "Y" becomes zero, and uses the default value as the parameter value of the parameter bit "Y" in the system parameter.
After the mainboard reads all system parameters of the heat pump system control program from the memory, all the system parameters are synchronously displayed on the external control end, and meanwhile, the external control end can realize remote control of the heat pump system based on the system parameters.
Specifically, referring to fig. 3, the synchronization of the system parameters includes:
s1401, pushing all system parameters to an external control end;
s1402, judging whether communication abnormity occurs according to the response of the external control end;
and S1403, when communication is abnormal, pushing all system parameter setting times again until communication is normal.
When the mainboard pushes the system parameters to the external control end, the response made by the external control end according to the receiving result can be received in real time, if the response of the external control end is not received, the communication abnormity is considered to happen currently. In order to ensure that the external control end receives system parameter information as much as possible, and avoid the situation that the external control end becomes abnormally zero due to abnormal communication in the system parameter pushing process, a retransmission mechanism of the system parameters is triggered when the communication is abnormal, and all the system parameter setting times are pushed again until the communication is normal. The retransmission mechanism can effectively prevent the system parameter from changing to zero due to data frame loss, and reduce the probability of changing to zero when the system parameter is abnormal.
Taking parameter pushing between the motherboard and the line controller as an example, referring to fig. 4, when system parameters are synchronized, the motherboard pushes system parameter data to the line controller through a system parameter pushing instruction. When the system parameters are pushed, the system parameters are divided into a plurality of frame data, each frame data comprises 90 system parameters, and the system parameter data are sent frame by frame. If the line controller responds to each frame of system parameter data, the current communication is normal, and after the system parameter data is sent, the real-time state parameters of the current heat pump system are sent to the line controller, so that the line controller displays all state parameters of the heat pump system. If the mainboard does not receive the response of the wire controller corresponding to a certain frame of parameter data, namely the communication is abnormal, the mainboard retransmits the system parameter push instruction and pushes the frame of system parameter data. The mainboard repeats three times at most, and after the communication is abnormal and cannot be recovered temporarily, the mainboard directly sends the real-time state parameters of the current heat pump system.
In the above, by presetting the identification parameter bits, where the system parameter cannot be zero, on the motherboard, when the motherboard is powered on, the system parameter is read from the motherboard memory, and whether the parameter value on the identification parameter bit in the system parameter is zero is judged, the system parameter with the parameter value on the identification parameter bit being zero is restored to a default value, and all the system parameters are synchronized to the control end, so as to avoid abnormal zero change of the system parameter on the motherboard, ensure real-time response to control of each load of the heat pump system, and enable the heat pump system to work normally.
And when the system parameters of the main board are synchronized to the external control end, the response of the external control end is received in real time to judge whether the communication is abnormal or not, if the communication is abnormal, a retransmission mechanism of system parameter data is triggered, so that the situation that the external control end cannot receive the system parameter data is avoided as much as possible, and the situation that the system parameters cause the corresponding system parameters of the external control end to become zero due to data frame loss, and further the external control end cannot control the heat pump system is prevented.
Example two:
on the basis of the foregoing embodiment, fig. 5 is a flowchart of another exception handling method for system parameters of a control program according to a second embodiment of the present application. Referring to fig. 5, the method for processing an exception of a control program system parameter provided in this embodiment specifically includes:
s210, presetting a parameter bit, which is not zero in each system parameter in the control program, as an identification parameter bit;
s220, when the mainboard is powered on, reading system parameters from a mainboard memory, and judging whether parameter values on the identification parameter bits in the system parameters are zero or not;
s230, restoring the system parameter with the parameter value of zero on the identification parameter to a default value, wherein the default value is stored in the mainboard memory;
s240, judging whether the system parameter on the identification parameter digit is zero or not at intervals of a set time period, and reading the corresponding system parameter from the mainboard memory again for the identification parameter digit with the system parameter being zero;
and S250, synchronizing all system parameters to an external control end.
Illustratively, after the system parameters in the memory are electrically read on the motherboard, the loop judgment of the current system parameters is also performed. Due to artificial unreasonable operation, the abnormal conditions inside the main board and the like can cause the abnormal zero of the system parameters. Therefore, the system parameters on the motherboard need to be circularly detected, and whether the parameter values on the identification parameters are zero or not is judged. And if the corresponding identification parameter bit parameter value is zero, re-reading the corresponding system parameter from the mainboard memory.
Specifically, referring to fig. 6, based on the preset flag parameter, it is determined every 0.5s cycle whether the parameter value on the flag parameter is zero. If the parameter value on the identification parameter bit is zero, the data is judged to be abnormal, at the moment, the mainboard rereads all system parameters once from the memory, and then all the parameters of the mainboard are synchronously fed to the line controller once. If the parameter value on the identification bit is not zero, the data is judged to be normal, and the mainboard continues to perform circulating judgment. It should be noted that the cycle judgment of the system parameters by the motherboard is continuously performed after the motherboard is powered on, and after the system parameters are reread, the synchronization of the system parameters is performed by the motherboard every time the system parameters are reread in order to avoid the inconsistency of the system parameters synchronized to the line controller before.
According to the scheme, the system parameters on the main board are judged to become zero through circulation, re-reading of all the system parameters is triggered according to the condition that the system parameters are changed into zero abnormally, so that the main board system parameters are correct, the influence of the abnormal system parameters on the normal work of the heat pump system is avoided, and the use experience of a user on the heat pump system is further optimized.
Example three:
on the basis of the foregoing embodiments, fig. 7 is a flowchart of another exception handling method for system parameters of a control program according to a third embodiment of the present application. Referring to fig. 7, the method for processing an exception of a control program system parameter provided in this embodiment specifically includes:
s310, presetting a parameter which can not be zero in each system parameter in a control program as an identification parameter;
s320, when the mainboard is powered on, reading system parameters from a mainboard memory, and judging whether parameter values on the identification parameter bits in the system parameters are zero or not;
s330, restoring the system parameter with the parameter value of zero on the identification parameter to a default value, wherein the default value is stored in the mainboard memory;
s340, synchronizing all system parameters to an external control end;
s350, receiving parameter change information of the external control end corresponding to the identification parameter in real time, and not analyzing the parameter change information with a parameter change value of zero;
and S360, if the parameter change value of the parameter change information of the external control end corresponding to the identification parameter is zero, synchronizing all current system parameters to the external control end again.
For example, in the embodiment of the present application, after synchronizing the system parameters to the external control end, the parameter change information of the external control end on a certain system parameter is performed in real time. If the system parameter modified by the external control end does not belong to the identification parameter number, the parameter value on the corresponding parameter number is modified directly according to the parameter modification information. If the parameter value on the identification parameter bit is modified, it needs to be judged whether the parameter modification value of the identification parameter bit is 0, and the parameter modification information with the parameter modification value of zero is not analyzed.
Specifically, referring to fig. 8, taking the line controller as an example, when the line controller changes the parameter value of the identification parameter bit "Y" (at this time, the identification parameter bit "Y" is set to 1), the motherboard reads back the parameter packet of the changed identification parameter bit "Y" parameter value through the system parameter read-back command. Determining whether the parameter modification value for the identification parameter bit "Y" is zero or not corresponding to the parameter packet. At this time, if the parameter modification value is zero, the parameter packet is determined to be abnormal, and the parameter packet is not analyzed, and naturally the system parameter data storage of the main board memory is not triggered. And simultaneously, all parameters of the current mainboard are synchronously fed to the line controller at one time, so that the condition that the system parameters are abnormally changed to zero due to the fact that the line controller changes the parameter value of the identification parameter digit Y is avoided. And if the parameter modification value corresponding to the identification parameter bit Y is not zero, the parameter packet is judged to be normal, the data of the parameter packet is analyzed, and then the mainboard memory is triggered to store the system parameter data, so as to ensure that the modification of the related system parameters can be synchronized into the mainboard memory.
According to the scheme, the parameter change information for identifying the parameter is detected by the external control end, whether the parameter change value is zero or not is judged, and if the parameter change value is zero, the parameter change information is not analyzed. The abnormal change of the system parameters of the identification parameter digit caused by communication abnormity or error change of the system parameters by an external control end when the system parameters are read back by the mainboard is avoided, the normal response of the control of the heat pump system is ensured, and the use experience of a user is further optimized.
Example four:
on the basis of the foregoing embodiment, fig. 9 is a flowchart of another method for processing an exception of a system parameter of a control program according to a fourth embodiment of the present application. Referring to fig. 9, the exception handling method for system parameters of the control program provided in this embodiment may be executed by an external control end of the heat pump system, and generally, the external control end may be a control end such as a line controller (e.g., a display for human-computer interaction, such as a remote control, a color screen, an LED, an LCD), a centralized control end, or a DTU module.
The following description will be made by taking a line controller of a heat pump system as an example of a main body of an abnormality processing method for executing system parameters of a control program. Referring to fig. 9, the method for processing an exception of a control program system parameter specifically includes:
s410, presetting a parameter bit which can not be zero in each system parameter in a control program as an identification parameter bit;
s420, receiving all system parameters uploaded by the mainboard;
s430, judging whether the system parameter on the identification parameter is zero or not at intervals of a set time period;
and S440, if the system parameter on the identification parameter is zero, reading all system factory parameters stored in an external control end memory, and synchronizing the system factory parameters to the mainboard.
For example, in order to accurately determine whether a parameter value that cannot be zero in a system parameter changes to zero, parameter bits that cannot be zero in each parameter value in the system parameter are identified in advance on the line controller, and the parameter bits are set as identification parameter bits. The identification parameter digit is used for judging whether the parameter value on the identification parameter digit is zero or not when abnormality detection is carried out subsequently, so that whether the abnormal zero change of the system parameter occurs in the current heat pump system control program or not can be determined.
And then, the line controller receives all the system parameters synchronized by the mainboard, and judges the received system parameters by abnormal detection every set time period. And judging whether the parameter value on the identification parameter digit is zero or not based on the preset identification parameter digit. And considering that the system parameters on the current mainboard are abnormal under the condition that the parameter values on the identification parameter digits are zero, reading system factory parameters of a heat pump system control program stored in a memory (an EEPROM (electrically erasable programmable read-only memory)) of the line controller by the line controller, and sending the system factory parameters to the mainboard to replace the system parameters on the mainboard.
Specifically, referring to fig. 10, the line controller sets the parameter value of the parameter "Y" not to be zero in advance, and determines whether the parameter value of the parameter "Y" is zero every 0.2s cycle. When the parameter value of the parameter digit Y is detected to be zero, the line controller triggers a download recovery mechanism, reads all system delivery parameters once from a memory of the line controller, and synchronizes all system delivery parameters once to the mainboard. The system delivery parameters are stored in a memory of the online controller when the heat pump system is delivered, and the system delivery parameters can be restored to the mainboard through the online controller.
In addition, when receiving the system parameter data synchronized by the main board, the line controller can judge whether packet loss occurs in the current system parameter synchronization operation in real time, if the packet loss occurs, the main board is requested to resend all data, and the normal transmission of the system parameter data is ensured through a resending mechanism.
The identification parameter bits with the system parameters which cannot be zero are preset at the external control end of the heat pump system, then the system parameters on the identification parameter bits are judged to be zero or not in a circulating mode, if the identification parameter bits with the system parameters which are zero are judged to exist, all system delivery parameters stored in the storage are read, the system delivery parameters are synchronized to the mainboard, the condition that the system parameters of the external control end and the mainboard are abnormally changed into zero is avoided, the external control end can normally control the heat pump system, real-time response to control of each load of the heat pump system is guaranteed, and use experience of a user is optimized.
Example five:
on the basis of the foregoing embodiments, fig. 11 is a schematic structural diagram of an exception handling apparatus for controlling system parameters of a program according to an embodiment of the present application. Referring to fig. 11, the apparatus for processing an exception of a control program system parameter provided in this embodiment specifically includes: a presetting module 51, a judging module 52, a recovering module 53 and a synchronizing module 54.
The preset module 51 is configured to preset a parameter that each system parameter in the control program cannot be zero as an identification parameter;
the judging module 52 is configured to, when the motherboard is powered on, read a system parameter from the motherboard memory, and judge whether a parameter value on the identification parameter bit in the system parameter is zero;
the restoring module 53 is configured to restore the system parameter with a parameter value of zero in the identification parameter to a default value, where the default value is stored in the motherboard memory;
the synchronization module 54 is used to synchronize all system parameters to the external control end.
In the above, by presetting the identification parameter bits, where the system parameter cannot be zero, on the motherboard, when the motherboard is powered on, the system parameter is read from the motherboard memory, and whether the parameter value on the identification parameter bit in the system parameter is zero is judged, the system parameter with the parameter value on the identification parameter bit being zero is restored to a default value, and all the system parameters are synchronized to the control end, so as to avoid abnormal zero change of the system parameter on the motherboard, ensure real-time response to control of each load of the heat pump system, and enable the heat pump system to work normally.
Specifically, still include:
and the rereading module is used for judging whether the system parameters on the identification parameter bits are zero or not at intervals of a set time period, and rereading the corresponding system parameters from the mainboard memory for the identification parameter bits with the system parameters being zero.
And an analysis module. And the parameter change information is used for receiving the parameter change information of the external control end corresponding to the identification parameter bit in real time, and the parameter change information with a parameter change value of zero is not analyzed.
And the synchronization module is used for synchronizing all current system parameters to the external control end again when the parameter change value of the parameter change information corresponding to the identification parameter of the external control end is zero.
The exception handling device for the control program system parameters provided in the fifth embodiment of the present application may be used to execute the exception handling method for the control program system parameters provided in the first embodiment of the present application, and has corresponding functions and beneficial effects.
Example six:
an embodiment of the present application provides an electronic device, and with reference to fig. 12, the electronic device includes: a processor 61, a memory 62, and a communication module 63. The number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more. The processor 61, memory 62 and communication module 63 of the electronic device may be connected by a bus or other means.
The memory 62 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the exception handling method for controlling system parameters of a program according to any embodiment of the present application (for example, a preset module, a judgment module, a recovery module, and a synchronization module in an exception handling apparatus for controlling system parameters of a program). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication module 63 is used for data transmission.
The processor 61 executes various functional applications of the device and data processing, that is, implements the above-described exception handling method of the control program system parameters, by executing software programs, instructions, and modules stored in the memory.
The electronic device provided above can be used to execute the method for processing exception of control program system parameters provided in the first embodiment, and has corresponding functions and advantages.
Example seven:
the present application also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for exception handling of a control program system parameter, where the method for exception handling of the control program system parameter includes: presetting a parameter bit which can not be zero in each system parameter in a control program as an identification parameter bit; when the mainboard is powered on, reading system parameters from a mainboard memory, and judging whether parameter values on the identification parameter bits in the system parameters are zero or not; restoring the system parameter with the parameter value of zero on the identification parameter bit to a default value, wherein the default value is stored in the mainboard memory; and synchronizing all system parameters to an external control end.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the above-described exception handling method for controlling program system parameters, and may also perform related operations in the exception handling method for controlling program system parameters provided in any embodiment of the present application.
The exception handling apparatus, the storage medium, and the electronic device for controlling program system parameters provided in the foregoing embodiments may execute the exception handling method for controlling program system parameters provided in any embodiments of the present application, and refer to the exception handling method for controlling program system parameters provided in any embodiments of the present application without detailed technical details described in the foregoing embodiments.
The foregoing is considered as illustrative only of the preferred embodiments of the invention and the principles of the technology employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. An exception handling method for controlling program system parameters, comprising:
presetting a parameter bit which can not be zero in each system parameter in a control program as an identification parameter bit;
when a mainboard is powered on, reading system parameters from a mainboard memory, and judging whether parameter values on the identification parameter bits in the system parameters are zero or not;
restoring the system parameter with the parameter value of zero on the identification parameter bit to a default value, wherein the default value is stored in the mainboard memory;
and synchronizing all system parameters to an external control end.
2. The method of claim 1, wherein restoring the system parameter having a zero parameter value at the identification parameter location to a default value further comprises:
and judging whether the system parameters on the identification parameter bits are zero or not at intervals of a set time period, and re-reading the corresponding system parameters from the mainboard memory for the identification parameter bits with the system parameters being zero.
3. The method for processing the exception of the system parameter of the control program according to claim 1, wherein the synchronizing all the system parameters to the external control end comprises:
pushing all system parameters to an external control end;
judging whether communication abnormity occurs according to the response of the external control end;
when communication is abnormal, all system parameter setting times are pushed again until communication is normal.
4. The method as claimed in claim 3, wherein the system parameters are pushed again until the communication is normal when the communication is abnormal, and the real-time status parameters of the heat pump system are directly pushed to the external control end if the communication is abnormal after all the system parameters are pushed again.
5. The method for exception handling of system parameters of a control program according to claim 1, further comprising, after said synchronizing all system parameters to an external control end:
and receiving the parameter change information of the external control end corresponding to the identification parameter in real time, and not analyzing the parameter change information with a parameter change value of zero.
6. The method according to claim 5, wherein after the receiving, in real time, the parameter change information of the external control end corresponding to the identification parameter, and the analyzing of the parameter change information with a parameter change value of zero, the method further comprises:
and if the parameter change value of the parameter change information corresponding to the identification parameter of the external control end is zero, synchronizing all current system parameters to the external control end again.
7. An exception handling method for controlling program system parameters, comprising:
presetting a parameter bit which can not be zero in each system parameter in a control program as an identification parameter bit;
receiving all system parameters uploaded by a mainboard;
judging whether the system parameter on the identification parameter position is zero or not every other set time period;
and if the system parameters on the identification parameter bit are zero, reading all system factory parameters stored in an external control end memory, and synchronizing the system factory parameters to the mainboard.
8. An exception handling apparatus for controlling a program system parameter, comprising:
the preset module is used for presetting the parameter bits which can not be zero of each system parameter in the control program as the identification parameter bits;
the judging module is used for reading system parameters from a mainboard memory when a mainboard is powered on and judging whether parameter values on the identification parameter bits in the system parameters are zero or not;
the recovery module is used for recovering the system parameter with the parameter value of zero on the identification parameter to a default value, and the default value is stored in the mainboard memory;
and the synchronization module is used for synchronizing all system parameters to the external control end.
9. An electronic device, comprising:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of exception handling for control program system parameters of any of claims 1-6.
10. A storage medium containing computer-executable instructions for performing the method of exception handling of control program system parameters of any of claims 1 to 6 when executed by a computer processor.
CN201910762334.5A 2019-08-19 2019-08-19 Method and device for processing exception of control program system parameters Active CN112394705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910762334.5A CN112394705B (en) 2019-08-19 2019-08-19 Method and device for processing exception of control program system parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910762334.5A CN112394705B (en) 2019-08-19 2019-08-19 Method and device for processing exception of control program system parameters

Publications (2)

Publication Number Publication Date
CN112394705A CN112394705A (en) 2021-02-23
CN112394705B true CN112394705B (en) 2022-05-27

Family

ID=74603228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910762334.5A Active CN112394705B (en) 2019-08-19 2019-08-19 Method and device for processing exception of control program system parameters

Country Status (1)

Country Link
CN (1) CN112394705B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101006637A (en) * 2004-08-25 2007-07-25 Thk株式会社 Remote maintenance system
CN101435931A (en) * 2008-12-17 2009-05-20 福建捷联电子有限公司 Method for reducing LCD device development cycle
CN101486322A (en) * 2009-01-15 2009-07-22 天津市松正电动科技有限公司 Parameter setting system and method of electric bicycle controller
CN102122293A (en) * 2011-02-09 2011-07-13 浪潮集团山东通用软件有限公司 Method for flexibly setting system parameter in intensive or dispersed management
CN102169331A (en) * 2011-01-27 2011-08-31 东北大学 Intelligent electric operating mechanism
CN103064411A (en) * 2012-12-28 2013-04-24 四川九洲电器集团有限责任公司 One-dimensional monitoring and testing method for servo mechanism
CN103574765A (en) * 2012-07-30 2014-02-12 美的集团股份有限公司 Air conditioner system and system parameter changing method thereof
CN105759778A (en) * 2014-12-16 2016-07-13 青岛经济技术开发区海尔热水器有限公司 Heat-pump water heater control and debugging system and debugging method thereof
CN106856853A (en) * 2015-12-14 2017-06-20 北京奇虎科技有限公司 Automatic gathering honey control method, gathering honey equipment and intelligent terminal
CN109346389A (en) * 2018-10-22 2019-02-15 浙江正泰电器股份有限公司 The electronic breaker and Protection parameters custom-built system of customizable Protection parameters
CN109654679A (en) * 2018-11-15 2019-04-19 青岛海尔空调器有限总公司 Control method and device, the system, storage medium of air-conditioning

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7984445B2 (en) * 2005-02-25 2011-07-19 International Business Machines Corporation Method and system for scheduling jobs based on predefined, re-usable profiles
FR2917201B1 (en) * 2007-06-05 2009-09-25 Airbus France Sa METHOD AND DEVICE FOR MANAGING, PROCESSING AND CONTROLLING PARAMETERS USED ON AIRCRAFT
JP4953024B2 (en) * 2008-03-10 2012-06-13 横河電機株式会社 Parameter storage device and parameter storage method
US9108316B2 (en) * 2008-12-10 2015-08-18 Abb Research Ltd. Method and system for in-production optimization of the parameters of a robot used for assembly
CN102662397B (en) * 2012-05-23 2014-06-18 东方电气集团东风电机有限公司 Motor controller parameter modification system and method based on controller area network (CAN) bus
CN104346177A (en) * 2013-07-24 2015-02-11 杭州海康威视数字技术股份有限公司 Terminal configuration method and device
CN103676937B (en) * 2013-12-10 2017-05-10 中联重科股份有限公司 Method and device for processing control parameters in controller
EP3380903A1 (en) * 2015-11-26 2018-10-03 Wärtsilä Finland Oy Marine vessel performance monitoring
US10013270B2 (en) * 2015-12-03 2018-07-03 International Business Machines Corporation Application-level initiation of processor parameter adjustment
CN106949682B (en) * 2017-04-12 2020-05-12 广东芬尼克兹节能设备有限公司 Control method and device of heat pump system
CN107480001A (en) * 2017-06-21 2017-12-15 深圳市金立通信设备有限公司 System recovery method and device
CN108304280A (en) * 2018-01-30 2018-07-20 郑州云海信息技术有限公司 Control method, BMC and the device of isomery mixing memory system abnormal restoring

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101006637A (en) * 2004-08-25 2007-07-25 Thk株式会社 Remote maintenance system
CN101435931A (en) * 2008-12-17 2009-05-20 福建捷联电子有限公司 Method for reducing LCD device development cycle
CN101486322A (en) * 2009-01-15 2009-07-22 天津市松正电动科技有限公司 Parameter setting system and method of electric bicycle controller
CN102169331A (en) * 2011-01-27 2011-08-31 东北大学 Intelligent electric operating mechanism
CN102122293A (en) * 2011-02-09 2011-07-13 浪潮集团山东通用软件有限公司 Method for flexibly setting system parameter in intensive or dispersed management
CN103574765A (en) * 2012-07-30 2014-02-12 美的集团股份有限公司 Air conditioner system and system parameter changing method thereof
CN103064411A (en) * 2012-12-28 2013-04-24 四川九洲电器集团有限责任公司 One-dimensional monitoring and testing method for servo mechanism
CN105759778A (en) * 2014-12-16 2016-07-13 青岛经济技术开发区海尔热水器有限公司 Heat-pump water heater control and debugging system and debugging method thereof
CN106856853A (en) * 2015-12-14 2017-06-20 北京奇虎科技有限公司 Automatic gathering honey control method, gathering honey equipment and intelligent terminal
CN109346389A (en) * 2018-10-22 2019-02-15 浙江正泰电器股份有限公司 The electronic breaker and Protection parameters custom-built system of customizable Protection parameters
CN109654679A (en) * 2018-11-15 2019-04-19 青岛海尔空调器有限总公司 Control method and device, the system, storage medium of air-conditioning

Also Published As

Publication number Publication date
CN112394705A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
US6411857B1 (en) Redundant, multitasking industrial controllers with synchronized data tables
US8942834B2 (en) Method and apparatus for communicating transactions between an industrial controller and a programming interface
US20210208852A1 (en) Visual programming control apparatus, programming-controlled device and control method therefor, computer-readable storage medium, and programming control system
US20140123121A1 (en) Rack and method thereof for simultaneously updating basic input output systems
US8364291B2 (en) Method and apparatus for providing redundancy in an industrial control system
CN112199240B (en) Method for switching nodes during node failure and related equipment
CN101252640A (en) Method for writing sequence number to set top box
US9824229B2 (en) Controller with enhanced reliability
CN109634175B (en) Method and system for controlling dynamic verification of configuration program
CN112394705B (en) Method and device for processing exception of control program system parameters
US5418938A (en) Data management system having CPUs to each other via dual-port memory
CN112099881A (en) Pointer-based control program system parameter exception handling method and device
CN113535437A (en) Module data interaction method of robot, electronic equipment and storage medium
US6760863B1 (en) CPU unit and run alternative control method of programmable controller
CN112434044A (en) Industrial internet platform monitoring data transmission and exchange method and system
CN112286573A (en) Method, device and system for modifying configuration parameters of module controller
JP4711015B2 (en) Image processing apparatus and image processing system
WO2014141476A1 (en) Programmable display unit and program for same
CN111311471A (en) Batch picture segmentation, scheduling, processing and synthesizing system and method based on FPGA (field programmable Gate array) calculation
CN114442544B (en) Industrial equipment intelligent monitoring video acquisition method based on PLC
CN114978891B (en) Processing method, device and storage medium for BIOS configuration of network device
CN117435313A (en) Desktop screen capturing method, device, equipment and storage medium based on window filtering
US11226603B2 (en) Automation system for process automation and a corresponding method
CN116627764A (en) Deployment method, deployment device, computer equipment and storage medium
CN106445565A (en) Field programmable gate array (FPGA) upgrading method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant