Disclosure of Invention
Aiming at the technical problems, the invention adopts the following technical scheme:
the embodiment of the invention provides a tower lamp-based equipment fault identification system, which comprises the following components: the system comprises a processor and a database which are in communication connection, wherein the processor is in communication connection with controllers of n tower lamps in a target monitoring area, the controller of any tower lamp is connected with corresponding monitored equipment, the height of any tower lamp is smaller than a preset height, and the system comprises m display areas arranged along the vertical direction; the database stores n equipment failure information tables, a basic color information table and a reference color information table, and the ith row of the equipment failure information table comprises (F) r1 ,F r2 ,…,F rs ,…,F rf(r) ,f(r)),F rs The method comprises the steps that the value of s is 1 to f (r) for the s-th fault state in the r-th fault type corresponding to the i-th monitored equipment, f (r) is the number of fault states in the r-th fault type corresponding to the i-th monitored equipment, the value of r is 1 to h (i), and h (i) is the number of fault types corresponding to the i-th monitored equipment; the basic color information table includes (C 1 ,C 2 ,…,C j ,…,C m ),C j For the jth basic color, j has a value of 1 to m, m > 3; the reference color information table includes (CB 1 ,CB 2 ,…,CB u ,…,CB z ),CB u For the u-th reference color, u has a value of 1 to z, z being the number of reference colors, CB u ∈(C 1 ,C 2 ,…,C j ,…,C m ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein f (1) is less than or equal to f (2) is less than or equal to …, f (r) is less than or equal to …, and f (h (i)) is less than or equal to z; h (i) is less than or equal to w, and w is the set quantity.
The processor is configured to execute a computer program to implement the steps of:
s100, dividing m basic colors into z color groups based on the basic color information table and the reference color information table; wherein the u-th color group includes (CB u ,CBR u1 ,CBR u2 ,…,CBR uv ,…,CBR u(w-1) ),CBR uv Is in combination with CB u Associated v-th associated color, v has a value of 1 to (w-1), CBR uv One of (m-z) basic colors other than z basic colors among the m basic colors; d (D) u1 <D u2 <…<D uv <…<D u(w-1) ≤D0,D uv Is CB u And CBR uv The distance between the two is D0 which is a preset color distance threshold value, and the value of u is 1 to z; z=w=m.
S200, generating a reference display lamp table of each tower lamp based on z color groups, wherein the reference display lamp table comprises z display area groups arranged along the vertical direction, each display area group comprises w display areas, the z display area groups form m display areas corresponding to the tower lamps, and the u-th display area group of the reference display lamp table is used for displaying CB u ,CBR u1 ,CBR u2 ,…,CBR uv ,…,CBR u(w-1) 。
S300, generating a color display information table of the ith tower lamp based on the ith equipment fault information table and the corresponding reference display lamp table, and sending the color display information table to a corresponding controller; the ith column lamp includes a color display information table (F r ,G r ),F r Fault status information for the (r) th fault type of the (i) th monitored equipment, F r =(F r1 ,F r2 ,…,F rs ,…,F rf(r) ),G r For displaying F in the ith tower light r Position information of display area G r =(G r1 ,G r2 ,…,G rs ,…,G rf(r) ),G rs To display F rs Is provided.
The controller of the ith tower light is used for: and in response to detecting the fault type of the ith equipment, controlling the ith tower lamp to display the corresponding color in the corresponding display area based on the color information table of the ith tower lamp.
The invention has at least the following beneficial effects:
according to the equipment fault identification system based on the tower lamp, the display colors are grouped according to the distance, and then the plurality of insertion groups are formed based on the color grouping, and each insertion group is used for inserting one type of fault type, so that each fault state is displayed in different colors, the displayed state of each color can be known as accurately as possible, faults can be recorded in real time, and the fault detection efficiency is improved.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
Fig. 1 is a schematic structural diagram of a tower lamp-based equipment fault recognition system according to an embodiment of the present invention. Fig. 2 is a flowchart of a method implemented when a tower-lamp-based equipment fault recognition system executes a computer program according to an embodiment of the present invention.
An embodiment of the present invention provides a tower lamp-based equipment fault recognition system, as shown in fig. 1, where the system may include: a communicatively coupled processor 1 and a database 2, said processor 1 being communicatively coupled to a controller of n headlamps 3 (only 3 headlamps are shown in fig. 1) within a target surveillance zone. The controller of any tower lamp is connected with the corresponding monitored equipment, the height of any tower lamp is smaller than the preset height, and the controller comprises m display areas arranged along the vertical direction, wherein m is more than 3.
In an embodiment of the present invention, the processor may be disposed at a control center. The processor and the controller of the tower lamp can communicate in a communication mode of 4g, 5g or Bluetooth and the like.
In an embodiment of the invention, the monitored equipment may be, for example, a machine tool in a factory, a nuclear magnetic resonance apparatus in a hospital. The tower lamp is a column lamp with m display areas, and each display area is internally provided with a display lamp for displaying corresponding colors. m may be set based on actual needs, and in an exemplary embodiment, m may be 256, that is, the tower light provided in the embodiment of the present invention may display 256 colors. The height of the tower light may be set based on actual needs, and in one exemplary embodiment, the preset height may be 15cm. In another exemplary embodiment, the preset height may be 30cm.
Further, in an embodiment of the present invention, the database stores n equipment failure information tables, a basic color information table, and a reference color information table, and the ith row of the equipment failure information table includes (F r1 ,F r2 ,…,F rs ,…,F rf(r) ,f(r)),F rs And (3) taking the value of s as 1 to f (r) for the s-th fault state in the r-th fault type corresponding to the i-th monitored equipment, wherein f (r) is the number of fault states in the r-th fault type corresponding to the i-th monitored equipment, r is 1 to h (i), and h (i) is the number of fault types corresponding to the i-th monitored equipment.
In the embodiment of the invention, the fault type and the corresponding fault state of each monitored device can be obtained based on historical data analysis.
Further, in an embodiment of the present invention, the basic color information table may include (C 1 ,C 2 ,…,C j ,…,C m ),C j For the jth basic color, j has a value of 1 to m, i.e., each display area is used to display one color. The reference color information table includes (CB 1 ,CB 2 ,…,CB u ,…,CB z ),CB u For the u-th reference color, u has a value of 1 to z, z being the number of reference colors, CB u ∈(C 1 ,C 2 ,…,C j ,…,C m )。
In an embodiment of the invention, the reference color is a color that is readily distinguishable to the human eye, for example, a 95% human discernable 22 colors (including: scarlet, red, pink, rose, magenta, purplish red, violet, bright yellow, deep yellow, army blue, lake blue, brilliant blue, deep blue, brilliant green, yellow brown, red brown, dark brown, olive green, grass green, gray, black) or a portion of the 22 colors. In the embodiment of the present invention, when m=256, z=16, that is, 16 colors can be selected from 22 colors as reference colors.
In the embodiment of the invention, f (1) is less than or equal to f (2) is less than or equal to … is less than or equal to f (r) is less than or equal to … is less than or equal to f (h (i))isless than or equal to z, namely the maximum number of fault states of each fault type of each monitored device is not more than z; h (i) is less than or equal to w, and w is the set quantity. In one exemplary embodiment, z×w=m.
Further, in an embodiment of the present invention, the processor is configured to execute a computer program to implement the steps shown in fig. 2:
s100, dividing m colors into z color groups based on the basic color information table and the reference color information table; wherein the u-th color group includes (CB u ,CBR u1 ,CBR u2 ,…,CBR uv ,…,CBR u(w-1) ),CBR uv Is in combination with CB u Associated v-th associated color, v has a value of 1 to (w-1), CBR uv For one of (m-z) basic colors other than z basic colors, D u1 <D u2 <…<D uv <…<D u(w-1) ≤D0,D uv Is CB u And CBR uv The distance between the two is D0, the preset color distance threshold value is set, and the value of u is 1 to z.
Those skilled in the art will recognize that any method of obtaining the distance between two colors is within the scope of the present invention. In the embodiment of the present invention, D0 may be set according to actual needs, so long as the colors in the u-th color group can be made as close as possible.
S200, generating a reference display lamp table of each tower lamp based on z color groups, wherein the reference display lamp table comprises z display area groups arranged along the vertical direction, each display area group comprises w display areas, and the z display area groups form m display areas corresponding to the tower lamps, wherein the u-th display area group of the reference display lamp table is used for displaying CB u ,CBR u1 ,CBR u2 ,…,CBR uv ,…,CBR u(w-1) 。
Further, S200 may specifically include:
s201, acquiring w display position groups, wherein the b display position group comprises (P b ,P (b+w) ,…,P (b+(z-1)*w) ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein P is b The value of b is 1 to w for the position of the b-th display area in the m display areas.
S202, if F (1) +f (2) + … +f (r) + … +f (h (i)). Ltoreq.z, setting the 1 st display position group for displaying F h(i)1 ,F h(i)2 ,…,F h(i)s ,…,F h(i)f(h(i)) The method comprises the steps of carrying out a first treatment on the surface of the Otherwise, S203 is performed.
S203, setting the 1 st display position group for displaying F h(i)1 ,F h(i)2 ,…,F h(i)s ,…,F h(i)f(h(i)) And respectively setting a w display position group, a w-1 display position group, … and a display area corresponding to the (w-h (i) +2) display position group to respectively display fault states corresponding to the (h (i) -1) th row data, the (h (i) -2) th row data, … and the 2 nd row data in the i-th equipment fault information table.
The technical effect of S200 is that if the total number of fault states of a certain monitored device does not exceed z, one display position group can be used to display all fault states, if z is exceeded, each type of fault is displayed alternately by using the display position groups formed by the colors of different color groups, so that when multiple fault states exist, the displayed colors can be recognized by naked eyes due to the large color difference of the different color groups when the colors of the different color groups are adopted for displaying, and the fault states of the monitored device can be further known.
S300, generating a color display information table of the ith tower lamp based on the ith equipment fault information table and the corresponding reference display lamp table, and sending the color display information table to a corresponding controller; the ith column lamp includes a color display information table (F r ,G r ),F r Fault status information for the (r) th fault type of the (i) th monitored equipment, F r =(F r1 ,F r2 ,…,F rs ,…,F rf(r) ),G r For displaying F in the ith tower light r Position information of display area G r =(G r1 ,G r2 ,…,G rs ,…,G rf(r) ),G rs To display F rs I.e. the position numbers in the m display areas.
Through S200, the position of the display area on the corresponding tower lamp in each fault state of each monitored device can be known, i.e. the color information table of each tower lamp can be obtained.
Further, in an embodiment of the present invention, the controller of the ith tower light is configured to: and in response to detecting the fault type of the ith equipment, controlling the ith tower lamp to display the corresponding color in the corresponding display area based on the color information table of the ith tower lamp.
And for the controller of each tower lamp, when the fault type of the corresponding monitored equipment is detected, displaying the fault state of the fault type in the corresponding display area based on the corresponding color display table.
According to the equipment fault identification system based on the tower lamp, provided by the embodiment of the invention, since the m display colors are grouped according to the distance, and then the plurality of insertion groups are formed based on the color grouping, each insertion group is used for inserting one type of fault type, each fault state can be displayed in different colors, the displayed state of each color can be known as accurately as possible, further, the fault can be recorded in real time, and the fault detection efficiency is improved.
Further, in the embodiment of the present invention, the controller of the ith tower light is further configured to: and sending the display information of the ith tower lamp to the processor.
Further, the system of the embodiment of the invention further comprises a display. The display can be arranged in the control center, is in communication connection with the processor and can be an existing display device.
Further, in an embodiment of the present invention, the processor is further configured to execute a computer program to implement the following steps:
and displaying the received display information on the display.
Further, in the embodiment of the present invention, n display interfaces are provided on the display, where the ith display interface is used to display information of the ith tower lamp. Specifically, a 3D model corresponding to the ith tower lamp is arranged in the ith display interface, and the 3D model is used for displaying corresponding display information. The 3D model of the tower lamp is used for displaying, so that the visual display effect can be improved.
Further, the processor is further configured to execute the computer program to implement the steps of:
s400, obtaining the number Q of display areas in the lighted state in the ith tower lamp i 。
S500, if Q i And if the value is more than Q, early warning prompt is carried out.
In the embodiment of the invention, Q is a preset number of thresholds, which may be a custom set value. If the display area in the lighted state in a certain tower lamp is larger than Q, the condition that the faults of the monitored equipment corresponding to the tower lamp are more is indicated, and early warning prompt is needed.
In an embodiment of the invention, the early warning prompt includes controlling the 3D model of the corresponding tower light to flash. In another embodiment, the early warning prompt can be performed in a text and/or voice mode.
Through the display information of showing the tower lamp on the display, can further improve the monitoring effect, can prevent the time delay monitoring that leads to because on-the-spot monitoring is untimely etc..
While certain specific embodiments of the invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the invention. Those skilled in the art will also appreciate that many modifications may be made to the embodiments without departing from the scope and spirit of the invention. The scope of the present disclosure is defined by the appended claims.