Invention content
In order to overcome the above-mentioned deficiencies of the prior art, the full adaptation integration based on object-oriented that the present invention provides a kind of
Power Supply Monitoring man-machine interface design method is established according to integrated power source apparatus master configuration file containing system type, system
Number, device type, device address, interior serial number, the information such as type of alarm forwarding list file, man-machine interface is according to object-oriented
Corresponding class formation is all designed in the interface of every set power supply by thought, by data organization class read the corresponding telemetering of forwarding list file,
The classification informations such as remote signalling, remote control often cover the telemetering on the interface of power supply, remote signalling data information calls connecing for data organization class example
It mouthful obtains, which need to only obtain corresponding data buffer storage according to system type, system number, device type, device address,
It is shown on corresponding Power Interface, calls Modbus stipulations to be communicated with slave computer by man-machine interface, obtained logical
Letter data refreshes in real time on interface;The present invention can be according to forwarding table be freely configured on local computing, configuration improves and delivers
Afterwards, corresponding forwarding list file is established, forwarding list file is sent in man-machine interface, restarting man-machine interface can complete to phase
The measuring point information displaying answered, reduces maintenance work, and adapts to the measuring point displaying and monitoring of all equipment series of integrated power supply.
The technical solution adopted in the present invention is:
A kind of full adaptation integrated power source apparatus man-machine interface design method based on object-oriented, includes the following steps:
Step 1:Corresponding forwarding list file is established according to integrated power source apparatus master configuration file;
Step 2:The forwarding list file is read, checks whether the forwarding table file format is correct;If correct, by telemetering, distant
Letter data is read into the caching of data organization class, and loads stipulations dynamic library file;
Step 3:The communication between host computer and slave computer is established, checks whether communication succeeds, if success, judgement are currently
It is no to there is alarm, if there is alarm, corresponding warning message is shown in history alert data list;If there is no alarm,
Enter step 4;
Step 4:Corresponding class formation is arranged to each Power Interface, by the data organization class in class formation from forwarding table
The telemetering, remote signalling, remote information of each power supply are obtained in file, and are shown in the corresponding interface of upper computer end;
Step 5:Judge whether the information that upper computer end is shown meets the specific requirements of substation, if not satisfied, then entering
Step 6 reconfigures system information;
Step 6:System information is reconfigured in upper computer end, configures the information of each power supply according to demand, and will be described
Configuration information is saved in integrated power source apparatus master configuration file;
Step 7:And the data information configured is sent to slave computer, restart slave computer, configuration process terminates.
Further, the forwarding list file includes telemetering, remote signalling and remote information, wherein the telemetering, remote signalling, distant
It includes system type, system number, device type, device address, interior serial number to control information;Remote signalling information further includes type of alarm.
Further, described that corresponding class formation is arranged to each Power Interface, pass through the data organization class in class formation
The telemetering, remote signalling, remote information of each power supply are obtained from forwarding list file, and is shown in the corresponding interface of upper computer end
Show, including:
Corresponding class formation is arranged to AC power, DC power supply, communication power supply and ups power interface,
AC power, DC power supply, communication are obtained respectively from forwarding list file by the data organization class in class formation
Power supply and the corresponding telemetering of ups power, remote signalling, remote-control data, and shown in each Power Interface;
According to telemetering, remote signalling and the type for being remotely controlled measuring point, data acquisition interface corresponding with data organization class is called, is led to
Cross data-interface according to system type, system number, device type, device address from each Power Interface respectively obtain with it is all types of
Measuring point all data accordingly, and shown respectively in the telemetering of host computer, remote signalling and remote control interface;
Judged again currently with the presence or absence of alarm, if there is alarm, corresponding report is shown in history alert data list
Alert information.
Further, the judgement is currently with the presence or absence of alarm, if there is alarm, is shown in history alert data list
Corresponding warning message, including:
It judges whether to alarm according to the remote signalling information in forwarding list file;
If remote signalling value changes, history alert interface is automatically switched to, is shown in history alert data list corresponding
Warning message.
Further, the host computer is integrated supply unit man-machine interface, and the slave computer is that integrated power supply fills
It sets, the integrated power source apparatus man-machine interface is communicated with integrated power source apparatus by network interface or serial ports.
Further, reconfigured in the step 6 system information include user configuration, it is AC power supply system information, straight
Galvanic electricity source system information, power supply system for communications information, ups power information, serial ports configuration and network interface configuration.
Further, the user configuration includes configuring IP address, the addresses Mac and the time of host computer and slave computer network interface
Information;
Serial ports configuration include connect under each serial ports of configuration integration supply unit supply unit type, initial address,
The enabling state of number of modules, baud rate and the serial ports, and specified first serial ports is to upper PORT COM, remaining serial ports
For the communication port of slave computer and other equipment;
The network interface configuration includes port numbers, protocol type, communication point table and net of configuration integration supply unit
The enabling state of mouth.
Further, the AC power supply system information includes that AC power analog quantity, ATS information, alarm are opened into, feeder line
It threads off and feeder line status information;
The DC power system information includes the main operating status of DC power supply, power module, state of insulation, battery electricity
Pressure, alarm are opened threads off and feeder line status information into, feeder line;
The power supply system for communications information includes that the main operating status of communication power supply, power module, cell voltage, alarm are opened
Enter, feeder line is threaded off and feeder line state;
The ups power information includes that the main operating status of ups power, alarm are opened and threaded off into, feeder line and feeder line state;
Further, after the completion of configuration, the AC power supply system can show ATS number of modules, into line number, busbar number and
Present number of lines information;The DC power supply Monitor And Control Subsystem can show battery number, power module number, feedback number of lines and association
Pattern information;The power supply system for communications can show battery number, power module number, feedback number of lines information;The ups power
System can show the number and UPS capacity of UPS module.
Further, when showing remote information in remote control interface, if being remotely controlled operation, remote control message is issued, is read
It takes remote control to return to school, if returning to school success, executes or cancel remote control;Otherwise terminate straighforward operation.
Compared with prior art, the beneficial effects of the invention are as follows:
(1) present invention is according to integrated power source apparatus master configuration file, it is established that contains system type, system number, equipment
The forwarding list file of the information such as type, device address, interior serial number, type of alarm, by host computer read the forwarding list file into
Row shows corresponding measuring point information, reduces maintenance work, and adapts to the measuring point displaying of all equipment series of integrated power supply
And monitoring;
(2) man-machine interface that the present invention designs is that the interface of every each power supply is all arranged accordingly according to Target-oriented thought
Data organization class, the classification informations such as the corresponding telemetering of forwarding list file, remote signalling, remote control, Mei Ge electricity are read by data organization class
Telemetering, remote signalling on the interface in source, remote-control data information call in data organization class corresponding interface to obtain, which only needs
Corresponding data buffer storage is obtained according to system type, system number, device type, device address, is shown on corresponding interface
Out, it calls Modbus stipulations to be communicated with slave computer by man-machine interface main program, obtains communication data in real time, realize
Real-time refresh data on interface.
Specific implementation mode
It is noted that following detailed description is all illustrative, it is intended to provide further instruction to the application.Unless another
It indicates, all technical and scientific terms used herein has usual with the application person of an ordinary skill in the technical field
The identical meanings of understanding.
It should be noted that term used herein above is merely to describe specific implementation mode, and be not intended to restricted root
According to the illustrative embodiments of the application.As used herein, unless the context clearly indicates otherwise, otherwise singulative
It is also intended to include plural form, additionally, it should be understood that, when in the present specification using term "comprising" and/or " packet
Include " when, indicate existing characteristics, step, operation, device, component and/or combination thereof.
As background technology is introduced, exist in the prior art startup slowly, the response time is long, forwarding table design is ineffective
Living, the big deficiency of maintenance workload, in order to solve technical problem as above, it is complete suitable based on object-oriented that present applicant proposes a kind of
Answer integrated power source apparatus man-machine interface design method.
In a kind of typical embodiment of the application, as shown in Figure 1, providing a kind of full adaptation based on object-oriented
Integrated power source apparatus man-machine interface design method, includes the following steps:
Step 101:Corresponding forwarding list file is established according to integrated power source apparatus master configuration file;
Step 102:The forwarding list file is read, checks whether the forwarding table file format is correct;If correct, by telemetering,
Remote signalling data is read into the caching of data organization class, and loads stipulations dynamic library file;
Step 103:The communication between host computer and slave computer is established, checks whether communication succeeds, if success, is judged current
With the presence or absence of alarm, if there is alarm, corresponding warning message is shown in history alert data list;If there is no alarm,
Then enter step 104;
Step 104:Corresponding class formation is arranged to each Power Interface, by the data organization class in class formation from forwarding
The telemetering, remote signalling, remote information of each power supply are obtained in list file, and are shown in the corresponding interface of upper computer end;
Step 105:Judge whether information that upper computer end is shown meets the specific requirements of substation, if not satisfied, then into
Enter step 106 and reconfigures system information;
Step 106:System information is reconfigured in upper computer end, configures the information of each power supply according to demand, and by institute
Configuration information is stated to be saved in integrated power source apparatus master configuration file;
Step 107:And the data information configured is sent to slave computer, restart slave computer, configuration process terminates.
The full adaptation integrated power source apparatus man-machine interface design method based on object-oriented that the embodiment of the present invention proposes,
According to integrated power source apparatus master configuration file, establish containing system type, system number, device type, device address, interior sequence
Number, the forwarding list files of the information such as type of alarm, man-machine interface is all to be set at the interface of every set power supply according to Target-oriented thought
Corresponding class formation is counted, the classification informations such as the corresponding telemetering of forwarding list file, remote signalling, remote control are read by data organization class, are often covered
Telemetering, remote signalling data information on the interface of power supply call the interface of data organization class example to obtain, which only needs basis
System type, system number, device type, device address obtain corresponding data buffer storage, show on corresponding Power Interface
Out, it calls Modbus stipulations to be communicated with slave computer by man-machine interface, obtains communication data, brushed in real time on interface
Newly;The present invention after configuration improvement is delivered, can establish corresponding forwarding table text according to forwarding table is freely configured on local computing
Forwarding list file is sent in man-machine interface by part, and restarting man-machine interface can complete to show corresponding measuring point information, reduce
Maintenance work, and adapt to the measuring point displaying and monitoring of all equipment series of integrated power supply.
In order to make those skilled in the art be better understood by the present invention, a more detailed embodiment is set forth below,
It is set as shown in Fig. 2, the embodiment of the present invention proposes a kind of full adaptation integrated power source apparatus man-machine interface based on object-oriented
Meter method, includes the following steps:
Step 201:Corresponding forwarding list file is established according to integrated power source apparatus master configuration file.
First, corresponding forwarding list file is established according to integrated power supply forwarding table master configuration file, by forwarding table text
Part is named as transfile1.inf.
The forwarding list file includes telemetering, remote signalling and remote information, wherein the telemetering, remote signalling, remote information include being
System type, system number, device type, device address, interior serial number etc.;The remote signalling information needs that type of alarm is arranged.I.e. telemetering,
Remote signalling and remote information correspond to respective system type, system number, device type, device address respectively, subsequently can be according to system
Type, system number, device type, device address obtain telemetering, remote signalling and remote-control data.
Step 202:The forwarding list file is read, checks whether the forwarding table file format is correct;If correct, by telemetering,
Remote signalling data is read into the caching of data organization class, and loads stipulations dynamic library file.
Step 203:The communication between host computer and slave computer is established, checks whether communication succeeds, if success, is judged current
With the presence or absence of alarm, if there is alarm, corresponding warning message is shown in history alert data list;If there is no alarm,
Then basis will check that the telemetering, remote signalling, remote control of each power supply enter in corresponding Power Interface.
The communication between host computer and slave computer is established, whether is succeeded into host computer main interface inspection communication, if success,
Communication icon connection status is shown successfully, and judges, currently with the presence or absence of alarm, if there is alarm, there is the alarm in remote signalling information
Amount variation, is not 0, then automatically switches to history alert interface, and corresponding warning message is shown in history alert data list;
If there is no alarm, basis will check that the telemetering, remote signalling, remote control of each power supply enter in corresponding Power Interface.
Step 204:Corresponding class formation is arranged to each Power Interface, by the data organization class in class formation from forwarding
The telemetering, remote signalling, remote information of each power supply are obtained in list file, and are shown in the corresponding interface of upper computer end.
Herein, step 204 may be used such as under type, as shown in figure 3, including:
Step 2041:For AC power, DC power supply, communication power supply and ups power, corresponding class formation is set;
By taking AC power as an example, AC power class formation, including the file preserved when data organization class, acquisition system configuration
Class, telemetering, remote signalling data table displaying function define, obtain telemetering that communication obtains in real time and remote signalling data value function is fixed
Justice calls remote signalling and telemetering message function, real-time refresh function definition;Wherein, data organization class is exactly to define a data group
The variable of type is knitted, the data of corresponding measuring point are then obtained;It is exactly to obtain ATS modules to obtain the files classes preserved when system configuration
Number, control module into line number, control module busbar number, feedback number of lines, interconnection switch number.Other power supply class formations with exchange
Power supply class formation is similar, and the content only obtained is different.
Step 2042:Pass through AC power, the data of DC power supply, communication power supply and ups power interface class formation respectively
Class is organized to obtain AC power, DC power supply, communication power supply and the corresponding telemetering of ups power, remote signalling, distant from forwarding list file
Data are controlled, and are shown in a Power Interface;
Wherein, AC power showing interface AC power analog quantity, ATS information, alarm open thread off into, feeder line, feeder line shape
The information such as state;
The main operating status of DC power supply showing interface DC power supply, power module, state of insulation, cell voltage, alarm are opened
Enter, feeder line dropout, the information such as feeder line state;
The main operating status of communication DC showing interface communication power supply, power module, cell voltage, alarm are opened de- into, feeder line
The information such as button, feeder line state;
Exchange UPS interfaces, the main operating status of displaying DC power supply, alarm are opened into information such as, feeder line dropout, feeder line states.
Step 2043:If Power Interface measuring point type is YC, as telemetering, data acquisition is called to connect according to data organization class
Mouthful, institute is obtained from each Power Interface according to system type, system number, device type, device address by data acquisition interface
There is telemetry intelligence (TELINT), and telemetry intelligence (TELINT) is shown in telemetry interface;The telemetry intelligence (TELINT) include AC power analog quantity, DC power supply and
Power module, cell voltage and the DC power supply and state of insulation of communication power supply;
If Power Interface measuring point type is YX, as remote signalling, data acquisition interface is called according to data organization class, passes through number
All remote signalling letters are obtained from each Power Interface according to system type, system number, device type, device address according to interface is obtained
Breath, and in remote signalling showing interface telemetry intelligence (TELINT);The telemetry intelligence (TELINT) includes the ATS information of AC power, the main fortune of DC power supply
Row state, the main operating status of communication power supply, the main operating status of ups power and AC power, DC power supply, communication power supply and
The alarm of ups power is opened takes off mouth and feeder line status information into, feeder line;
If Power Interface measuring point type is YK, as it is remotely controlled, data acquisition interface is called according to data organization class, passes through number
All remote signalling letters are obtained from each Power Interface according to system type, system number, device type, device address according to interface is obtained
Breath, and show remote information in remote control interface, the remote information includes the charging of the ATS information, DC power supply of AC power
Machine fills/the power module machine open/close information of floating charge information and communication power supply;And carry out straighforward operation.
As shown in figure 4, when being remotely controlled operation, remote control message is issued, waits for that remote control is returned to school, success of returning to school is executed or taken
Free and unfettered control, on the contrary remote control terminates.
Step 205:Judge whether the information that upper computer end is shown meets the specific requirements of substation, if not satisfied, then weighing
New configuration system information.
The information reconfigured includes user configuration, AC power supply system information, DC power system information, communication power supply
System information, ups power information, serial ports configuration and network interface configuration.
Wherein, the user configuration includes the IP address for configuring host computer and slave computer network interface, the addresses Mac and time letter
Breath;
The AC power supply system information includes that AC power analog quantity, ATS information, alarm are opened and threaded off into, feeder line and feedback
Line status information;
The DC power system information includes the main operating status of DC power supply, power module, state of insulation, battery electricity
Pressure, alarm are opened threads off and feeder line status information into, feeder line;
The power supply system for communications information includes that the main operating status of communication power supply, power module, cell voltage, alarm are opened
Enter, feeder line is threaded off and feeder line state;
The ups power information includes that the main operating status of ups power, alarm are opened and threaded off into, feeder line and feeder line state;
Serial ports configuration include connect under each serial ports of configuration integration supply unit supply unit type, initial address,
The enabling state of number of modules, baud rate and the serial ports, and specified first serial ports is to upper PORT COM, remaining serial ports
For the communication port of slave computer and other equipment;
The network interface configuration includes port numbers, protocol type, communication point table and net of configuration integration supply unit
The enabling state of mouth.
Step 206:System information is reconfigured in upper computer end, configures the configuration for often covering power supply according to demand, and by institute
Configuration information is stated to be saved in integrated power source apparatus configuration file;And the data information configured is sent to slave computer, weight
Slave computer is opened, configuration process terminates.
After the completion of configuration, the AC power supply system can show ATS number of modules, into line number, busbar number and feedback number of lines
Information;The DC power supply Monitor And Control Subsystem can show battery number, power module number, feedback number of lines and association mode letter
Breath;The power supply system for communications can show battery number, power module number, feedback number of lines information;The ups power system energy
Enough show the number and UPS capacity of UPS module.
The full adaptation integrated power source apparatus man-machine interface design method based on object-oriented that the embodiment of the present invention proposes,
According to integrated power source apparatus master configuration file, establish containing system type, system number, device type, device address, interior sequence
Number, the forwarding list files of the information such as type of alarm, man-machine interface is all to be set at the interface of every set power supply according to Target-oriented thought
Corresponding class formation is counted, the classification informations such as the corresponding telemetering of forwarding list file, remote signalling, remote control are read by data organization class, are often covered
Telemetering, remote signalling data information on the interface of power supply call the interface of data organization class example to obtain, which only needs basis
System type, system number, device type, device address obtain corresponding data buffer storage, show on corresponding Power Interface
Out, it calls Modbus stipulations to be communicated with slave computer by man-machine interface, obtains communication data, brushed in real time on interface
Newly.
Above-mentioned, although the foregoing specific embodiments of the present invention is described with reference to the accompanying drawings, not protects model to the present invention
The limitation enclosed, those skilled in the art should understand that, based on the technical solutions of the present invention, those skilled in the art are not
Need to make the creative labor the various modifications or changes that can be made still within protection scope of the present invention.