The content of the invention
In view of the above-mentioned problems, the present invention provides a kind of real-time statistics side of the equipment running status based on comprehensive monitoring system
Method provides the online run time of the various states of equipment in real time and the statistics of switching times, can have to equipment running status
More fully understand, improve the level of fine-grained management, provide the foundation for equipment optimization operation.
To realize above-mentioned technical purpose and the technique effect, the invention is realized by the following technical scheme:
A kind of real-time statistical method of the equipment running status based on comprehensive monitoring system, which is characterized in that include the following steps:
The operating status of step 1, PLC system and subsystem collection site equipment, and it upload the data to comprehensive monitoring system;
The data of the equipment running status received are stored in the real-time data base of system by step 2, comprehensive monitoring system;
Step 3, real-time statistics module carry out logic judgment according to the attribute of equipment running status to the state of equipment, including stopping
Only, operation, unloaded, overload condition;
Step 4, real-time statistics module periodically integrate the duration of each state according to the state calculated, until reaching
The end time of setting or the state of equipment change, wherein, the cycle of integration is T, and real-time statistics module exists according to equipment
Switching between different conditions, switching times of the statistics equipment between each state;
Statistical information is stored in lane database by step 5, real-time statistics module.
It is preferred that initial time of the real-time statistics module according to setting, automatic clear counts or terminates statistics again.
It is preferred that T values are 1 second or 2 seconds or 3 seconds.
The beneficial effects of the invention are as follows:
Firstth, comprehensive monitoring system can only collect the partial information of equipment, such as starting state, halted state, but on reality
The operating status on border does not have then, and the present invention carries out comprehensive descision, obtain the detailed operation shape of equipment according to the operation attribute of equipment
The duration of state and state, operating status that can be current to equipment form more complete understanding, are the optimization of equipment
Operation provides the foundation.
Secondth, real-time statistics support counts at times, supports to work in three shifts, and day counts, and the moon counts, and different teams and groups is facilitated to supervise
Depending on the operating status of equipment, provide the foundation for fine-grained management.
3rd, the result of real-time statistics is also used as the factor, in the other advanced statistical analysis functions of using system.
The switching operation of equipment is such as carried out according to actual unloaded duration or overload duration, equipment is allowed to operate in normal fortune as far as possible
Row state or halted state.
4th, the result of real-time statistics is stored in inside database, and statistical result can be used for report displaying, while may be used also
For historical query, it can be found that more equipment moving laws and production law, provide for continuing to optimize for production process
Basis.
5th, real-time online statistical result and the offline statistical result of history are combined, and allow work team that can compare historical record,
Operation is optimized to current device, important basis is provided for fine-grained management.
Specific embodiment
Technical solution of the present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings, so that ability
The technical staff in domain can be better understood from the present invention and can be practiced, but illustrated embodiment is not as the limit to the present invention
It is fixed.
A kind of real-time statistical method of the equipment running status based on comprehensive monitoring system, includes the following steps:
Step 1, PLC system(Programmable Logic Controller, programmable controller)With subsystem collection site
The operating status of equipment, and it upload the data to comprehensive monitoring system;
The data of the equipment running status received are stored in the real-time data base of system by step 2, comprehensive monitoring system;
Step 3, real-time statistics module carry out logic judgment according to the attribute of equipment running status to the state of equipment, including stopping
Only, operation, unloaded, overload condition;
Step 4, real-time statistics module periodically integrate the duration of each state according to the state calculated, until reaching
The end time of setting or the state of equipment change, wherein, the cycle of integration is T, and real-time statistics module exists according to equipment
Switching between different conditions, switching times of the statistics equipment between each state;
Statistical information is stored in lane database by step 5, real-time statistics module.
It is preferred that initial time of the real-time statistics module according to setting, automatic clear counts or terminates statistics again.
As shown in Figure 1, PLC can collect live important equipment(Such as water supply pump, regulating valve, wind turbine)Real time execution
Status information, and can will be sent in these information in comprehensive monitoring system, subsystem(Screen door, gate system)It adopts
Collect field device(Shield door, gate etc.)Operating status, and upload the data to comprehensive monitoring system.
As shown in Fig. 2, for some equipment, the attribute for representing equipment running status is picked out, such as facility switching state, if
Standby size of current, the rotating speed of equipment, temperature of equipment etc., comprehensive descision go out the carrying out practically state of current device.According to
The attribute of equipment running status carries out the state of equipment logic judgment, and specific logic is needed to be determined according to the feature of equipment, patrolled
Editable is collected, for example, when switch is closed, it is believed that equipment is currently at halted state;It is opened when switch is in
When opening state, and the electric current of equipment be less than some threshold value when, it is believed that equipment is in light condition;When switch is in opening state
During state, and the electric current of equipment be more than some threshold value when, it is believed that equipment is in overload condition;When switch is in opening
When, and electric current is between two threshold values, it is believed that equipment is in normal operating condition.Example logic is all can be according to reality
What the attribute of border equipment was configured, inside database, we increase the attribute of carrying out practically state newly under the equipment, such as just
The attributes such as normal operation, stopping, overload, zero load.
Real-time statistics module monitors the real-time status of current device by way of poll, and the cycle is carried out to each attribute
Property duration add up, if current operating status is off, to stop duration accumulating;If current operating status
It is unloaded, then unloaded duration is accumulated;If current operating status is overload, overload duration is accumulated;Such as
Fruit is up, then normal operation duration is accumulated.Real-time statistics module is set by the method pair periodically integrated
Standby operation duration is accumulated, and the cycle T of integration can be 1 second, 2 seconds or 3 seconds, can sets itself.Cycle too conference causes
Error is larger, the cycle too it is small cause system calculating process it is too close, add the burden of system.
As shown in figure 3, real-time statistics module monitors the real-time status of current device by way of poll, if currently
It is from halted state to operating status, then the number of starts is accumulated 1 time;It is stopped process from operating status to halted state, then
Stopping time is accumulated 1 time.
Real-time statistics module supports real-time statistics function at times, is set according to the initial time of setting and measurement period pair
Standby operation duration and start-stop time is counted.The clearing time of one starting of system configuration, such as 0 daily o'clock sharp, then set
Put a clearing cycle, such as 12 hours.So system just resets statistics duration in daily 0 point, 12 points, thus can be with
Equipment is monitored in the real time execution duration information of each period and start and stop information, can be realized white in the case of double-shift work
Real time status information statistics when the real time status information and night shift of class.If will reset the cycle be arranged to 24 it is small when, count
Be exactly daily real time execution duration and start and stop information.
Comprehensive monitoring system can store statistical information into commercial storehouse, daily before then being shown by report
Statistical result supports the inquiry of historical data.
The beneficial effects of the invention are as follows:
Firstth, comprehensive monitoring system can only collect the partial information of equipment, such as starting state, halted state, but on reality
The operating status on border does not have then, and the present invention carries out comprehensive descision, obtain the detailed operation shape of equipment according to the operation attribute of equipment
The duration of state and state, operating status that can be current to equipment form more complete understanding, are the optimization of equipment
Operation provides the foundation.
Secondth, real-time statistics support counts at times, supports to work in three shifts, and day counts, and the moon counts, and different teams and groups is facilitated to supervise
Depending on the operating status of equipment, provide the foundation for fine-grained management.
3rd, the result of real-time statistics is also used as the factor, in the other advanced statistical analysis functions of using system.
The switching operation of equipment is such as carried out according to actual unloaded duration or overload duration, equipment is allowed to operate in normal fortune as far as possible
Row state or halted state.
4th, the result of real-time statistics is stored in inside database, and statistical result can be used for report displaying, while may be used also
For historical query, it can be found that more equipment moving laws and production law, provide for continuing to optimize for production process
Basis.
5th, real-time online statistical result and the offline statistical result of history are combined, and allow work team that can compare historical record,
Operation is optimized to current device, important basis is provided for fine-grained management.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure that bright specification and accompanying drawing content are made either equivalent process transformation or to be directly or indirectly used in other related
Technical field, be included within the scope of the present invention.