Disclosure of Invention
In order to solve the problems of the prior art, a second breaker list is obtained in a first time window T; judging whether the number of the second circuit breakers is larger than a preset first number threshold value or not; when the number of the second circuit breakers is not larger than the first number threshold value, if abnormal circuit breakers exist in the second circuit breaker list, displaying an indicator on the first circuit breaker container, so that a first processing measure of the circuit breakers is executed according to an operation instruction corresponding to the indicator; when the number of the second circuit breakers is larger than the first number threshold value, and if abnormal circuit breakers exist in the second circuit breaker list, acquiring the number of the abnormal circuit breakers and an abnormal circuit breaker list; determining the indicator to be displayed on the first breaker container or the second breaker container according to the number of the abnormal breakers, so that a first processing measure of the breaker or a second processing measure of the breaker is executed according to an operation instruction corresponding to the indicator; the method can determine to reset the connection state of the circuit breakers according to the number of the circuit breakers and the number of the abnormal circuit breakers, ensure real-time monitoring of each circuit breaker, and avoid the influence on industrial production caused by the fact that the abnormal circuit breakers cannot be monitored and reconnected; the embodiment of the invention provides an industrial circuit breaker visualization system based on mobile equipment, which adopts the following technical scheme:
in one aspect, a mobile device based industrial circuit breaker visualization system, the system comprising: the mobile device is in communication connection with the gateway, and the gateway is in communication connection with both the first circuit breaker and the second circuit breaker;
the mobile device includes a memory and a processor, wherein,
a memory to store a first breaker icon and a second breaker icon;
a processor for executing any one of the instructions or programs, the steps of:
s101, in a specified time window T, acquiring a first breaker icon A0And a second breaker icon list a = (a)1,A2,A3,……,Am) M is the number of second breakers, wherein AiI =1 … … m, referring to the ith second breaker icon;
s103, obtaining A0Corresponding connection status information B0And a second breaker state list B = (B)1,B2,B3,……,Bm) Wherein B isiMeans A ofiCorresponding connection state information;
s105, comparing m with a preset first quantity threshold value g;
s107, when m is less than or equal to g, in A0Displaying an indicator on the display screen, and resetting the B according to an operation instruction of the indicator;
s109, when m > g, according to BiDetermining said BiThe corresponding second breaker is an abnormal breaker, and an abnormal breaker list C = (C) is obtained1,C2,C3,……,Cn) N is less than or equal to m, and n is the number of abnormal circuit breakers;
s1011, based on n, determining that the indicator is displayed in A0Upper or CxAnd executing corresponding processing measures according to the operation instruction of the indicator.
The invention provides an industrial circuit breaker visualization system based on mobile equipment, which has the following technical effects:
according to the method, a second breaker list is obtained in a first time window; judging whether the number of the second circuit breakers is larger than a preset first number threshold value or not; when the number of the second circuit breakers is not larger than the first number threshold value, if abnormal circuit breakers exist in a second circuit breaker list, displaying an indicator on the first circuit breaker container, so that a first processing measure of the circuit breakers is executed according to an operation instruction corresponding to the indicator; when the number of the second circuit breakers is larger than the first number threshold value, and if abnormal circuit breakers exist in the second circuit breaker list, acquiring the number of the abnormal circuit breakers and an abnormal circuit breaker list; determining the indicator to be displayed on the first breaker container or the second breaker container according to the number of the abnormal breakers, so that a first processing measure of the breaker or a second processing measure of the breaker is executed according to an operation instruction corresponding to the indicator; therefore, according to the technical scheme, the connection state of the circuit breakers can be determined to be reset according to the number of the circuit breakers and the number of the abnormal circuit breakers, real-time monitoring on each circuit breaker is guaranteed, the phenomenon that the abnormal circuit breakers cannot be monitored and reconnected due to the occurrence of the abnormal circuit breakers and industrial production is influenced is avoided, meanwhile, the setting position of the indicator can be determined according to the number of the circuit breakers and the number of the abnormal circuit breakers, reconnection on the abnormal circuit breakers is optimized, the transmission rate is improved, and real-time monitoring is guaranteed.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment provides an industrial circuit breaker visualization system based on mobile equipment, the system includes: the mobile device is in communication connection with the gateway, and the gateway is in communication connection with both the first circuit breaker and the second circuit breaker;
the mobile device includes a memory and a processor, wherein,
the device comprises a memory, a first circuit breaker icon and a second circuit breaker icon, wherein the memory is used for storing the first circuit breaker icon and the second circuit breaker icon, the first circuit breaker icon is an icon with a sequence number corresponding to a first circuit breaker, and the second circuit breaker icon is an icon with a sequence number corresponding to a second circuit breaker;
a processor, configured to execute any one of the instructions or programs, as shown in fig. 1, and specifically perform the following steps:
s101, acquiring first breaker icon information A in a specified time window T0And a second breaker icon list a = (a)1,A2,A3,……,Am) M is the number of second breakers, wherein AiIs the ith second breakerTwo breaker icons, i =1 … … m;
specifically, in the system, the first circuit breaker and m are connected in serial communication between the second circuit breaker, wherein the first circuit breaker with integrated structure between the gateway can practice thrift the space on the industrial production line, is convenient for install other equipment.
Specifically, the A is0Refers to the first breaker icon corresponding to the first breaker.
Preferably, the serial numbers in the second breaker icon are set according to the serial order of the second breakers.
S103, obtaining A0Corresponding connection status information B0And a second breaker state list B = (B)1,B2,B3,……,Bm) Wherein, said BiMeans A ofiCorresponding connection status information.
And S105, comparing m with a preset first quantity threshold value g.
In a specific embodiment, before the processor executes the step S105, the processor further executes the following steps:
judging whether the T is larger than a preset first time threshold T or not0;
If the T is greater than the T0If yes, executing step S103;
if said T is not greater than said T0Then judging whether T is larger than a preset second time threshold value D0;
If said T is not greater than said D0Then at said A0And displaying the indicator, and resetting the second breaker state list B according to the operation instruction of the indicator.
If the T is larger than the D0According to said BiDetermining said BiThe corresponding second breaker is an abnormal breaker, and an abnormal breaker list = (C) is obtained1,C2,C3,……,Cn),CxThe icon refers to the x-th abnormal breaker icon, x =1 … … n, n is less than or equal to m, and n is the number of the abnormal breakers;
displaying indicators on the C middle abnormal breaker icons, and according to the operation instruction of the indicator corresponding to each abnormal breaker icon, performing operation on each CxThe corresponding connection state information is reset.
In a specific embodiment, determining that the second breaker corresponding to Bi is an abnormal breaker further includes the following steps:
based on the BiTo obtain a corresponding state vector (B)i1,Bi2,Bi3……Bir) Wherein B isijMeans that said BiThe corresponding second breaker executes the state value of the jth connection procedure, j =1 … … r, r being the number of segments of the connection procedure;
traverse the state vector (B)i1,Bi2,Bi3……Bir) When said B isijAnd if the current is not less than 0, the second breaker corresponding to the Bi is an abnormal breaker.
Specifically, T satisfies the following condition:
T=m×t+(m-1)×d,
the t refers to the time when any second circuit breaker uploads connection state information;
d refers to the interval time between the uploading of the connection state information of the two adjacent second circuit breakers.
In particular, the T0In the range of 3-10min, preferably, T is0Is 3 min.
In particular, D is0In the range of 5-60s, preferably, D is0Is 60 s.
Specifically, the t and the d are uploaded to the processor through the gateway, and those skilled in the art can implement the t and the d by any method, which is not described herein again.
S107, when m is less than or equal to g, in A0Displaying an indicator on the display screen, and resetting the B according to an operation instruction of the indicator;
s109, when m > g, according to BiDetermining said BiThe corresponding second breaker is an abnormal breaker, and an abnormal breaker list C = (C)C1,C2,C3,……,Cn),CxThe icon refers to the x-th abnormal breaker icon, x =1 … … n, n is less than or equal to m, and n is the number of the abnormal breakers;
in a specific embodiment, said B is determinediThe corresponding second circuit breaker is an abnormal circuit breaker and further comprises the following steps:
based on the BiTo obtain a corresponding state vector (B)i1,Bi2,Bi3……Bir) Wherein B isijMeans that said BiThe corresponding second breaker executes the state value of the jth connection procedure, j =1 … … r, r being the number of segments of the connection procedure;
traverse the state vector (B)i1,Bi2,Bi3……Bir) When said B isijWhen =0, B isiThe corresponding second circuit breaker is an abnormal circuit breaker.
Specifically, the connection program refers to any one of the programs executed when the second circuit breaker completes connection, wherein when the second circuit breaker executes the connection program, the state value of the connection program is marked as 1; when the second circuit breaker does not execute the connection program or the connection program is executed abnormally, the state value of the connection program is marked as 0, for example, when the second circuit breaker executes the 4-segment connection program, a state vector (1, 0, 0, 0) is obtained, which indicates that the second circuit breaker is an abnormal circuit breaker.
S1011, based on n, determining that the indicator is displayed in A0Upper or CxAnd executing corresponding processing measures according to the operation instruction of the indicator.
Specifically, the processor executing the step S1011 further includes:
judging whether the number of the abnormal circuit breakers is larger than a preset second number threshold value or not;
if the number of abnormal circuit breakers is greater than the second number threshold, the indicator is displayed at the A0And operation according to said indicatorThe instruction is used for resetting the second breaker state list B;
if the number of abnormal circuit breakers is not greater than the second number threshold, each of the CxDisplaying the indicator on the display according to each CxOperation instruction of corresponding indicator, pair CxThe corresponding connection state information is reset.
Specifically, the steps S101 to S1011 are repeatedly executed, so that there is no abnormal breaker in B.
In a specific embodiment, the processor further performs the following:
when the number of the abnormal circuit breakers is not larger than the second number threshold, acquiring the number proportion S of the abnormal circuit breakers;
judging whether S is larger than a preset proportional threshold value S0;
If the S is larger than the S0Then the indicator is displayed at the A0Resetting B according to the operation instruction of the indicator;
if the S is not greater than the S0Then each C in said CxDisplaying the indicator according to each CxOperation instruction pair C of corresponding indicatorxThe corresponding connection state information is reset.
Specifically, S satisfies the following condition:
S=n/m。
specifically, the S0In the range of 0.7-1.0, preferably, S is0Is 0.8.
Specifically, in the steps S101 to S1011, the specific step of resetting the second breaker state list B is: and each second circuit breaker in the B sequentially executes a connection program according to the serial sequence of the second circuit breakers and executes the connection program in a circulating mode until no abnormal circuit breaker exists in the B.
Specifically, in the above steps S101-S1011, for each C of the C, CxThe specific step of resetting the corresponding connection state information is similar to the specific step of resetting the second breaker state list B, and is not described herein again.
Specifically, in the steps S101 to S1011, the indicator is an operation identifier used for re-executing the connection program for the first circuit breaker or the second circuit breaker to update the connection state information, and the operation command is a command for performing a click operation on the indicator.
In the embodiment, a second breaker list is obtained in a first time window T; judging whether the number of the second circuit breakers is larger than a preset first number threshold value or not; when the number of the second circuit breakers is not larger than the first number threshold value, if abnormal circuit breakers exist in the second circuit breaker list, displaying an indicator on the first circuit breaker container, so that a first processing measure of the circuit breakers is executed according to an operation instruction corresponding to the indicator; when the number of the second circuit breakers is larger than the first number threshold value, and if abnormal circuit breakers exist in the second circuit breaker list, acquiring the number of the abnormal circuit breakers and an abnormal circuit breaker list; according to the number of the abnormal circuit breakers, the indicator is determined to be displayed on the first circuit breaker container or the second circuit breaker container, so that a first processing measure of the circuit breakers or a second processing measure of the circuit breakers can be executed according to the operation instructions corresponding to the indicator, the connection state of the circuit breakers can be determined to be reset according to the number of the circuit breakers and the number of the abnormal circuit breakers, real-time monitoring on each circuit breaker is guaranteed, the phenomenon that the abnormal circuit breakers cannot be monitored and reconnected due to the fact that the abnormal circuit breakers appear is avoided, industrial production is affected, meanwhile, the setting position of the indicator can be determined according to the number of the circuit breakers and the number of the abnormal circuit breakers, reconnection on the abnormal circuit breakers is optimized, transmission rate is improved, and real-time monitoring is guaranteed.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.