Alarm lamp device capable of displaying work progress of equipment in real time
By designing an alarm light device including external device signal driving circuit, isolation acquisition operation circuit and progress display control circuit, the problem of inability to display the equipment work progress in real time in the prior art is solved, real-time display of the equipment work progress and efficient on-site operation management are realized.
Patent Information
- Application Number
- CN202410261481.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-07
- Publication Date
- 2025-03-07
AI Technical Summary
The existing industrial alarm lights cannot display the working progress of the equipment in real time, making it difficult to efficiently mobilize on-site personnel under multiple equipment, reducing the equipment's productivity and resource utilization rate.
An alarm light device is designed to collect the operating status signals of the equipment in real time through external device signal driving circuits, isolation acquisition calculation circuits and progress display control circuits, and control the LED indicator lights through the MCU processor to display the working progress of the equipment.
Real-time display of the equipment work progress is realized, the operating sequence and work efficiency of on-site operators are improved, and the equipment productivity and resource utilization rate are improved.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of equipment alarm lights, and in particular to an alarm light device capable of displaying the working progress of equipment in real time. Background Art
[0002] Industrial equipment warning lights are mainly used in various types of machine tools, machining centers, automation equipment, medical instruments and equipment, and semiconductor processing equipment. The current main production areas are China, Japan, Germany, South Korea, etc.
[0003] Existing industrial alarm lights can only display the operating status of the equipment. They light up green when working normally, yellow when paused and on standby, and red when a fault alarm occurs. That’s all. When there are many machines and equipment on the work site, all of them are in a green working state. It is difficult to distinguish the working progress of each device, such as when it has just started or is about to end, and it is impossible to effectively mobilize the work efficiency of on-site personnel.
[0004] At present, industrial equipment is widely used. In the actual production process in the factory, it is very common for one person to watch multiple machines. Due to the lack of understanding of the operating progress of each equipment, the order of employees loading and unloading materials is relatively chaotic, the equipment utilization rate is very low, and the resource and energy utilization rate is not high. Summary of the invention
[0005] The purpose of the present invention is to provide an alarm light device which can display the working progress of equipment in real time, so as to solve the problems raised in the above-mentioned background technology.
[0006] To achieve the above object, the present invention provides the following technical solution: an alarm light device capable of displaying the working progress of equipment in real time, characterized in that it comprises: External device signal driving circuit.
[0007] Isolation acquisition operation circuit Progress display control circuit.
[0008] The external device signal driving circuit is mainly used to connect the PLC signals such as operation, pause and alarm output by the equipment. Its front stage contains a rectifier circuit, which can input the electrical signal into the driving and acquisition circuit regardless of positive and negative polarity. The voltage is collected together through diodes, and the signals do not interfere with each other. The DC 24V voltage is converted into 3.3V voltage through the voltage regulator module for use by the MCU operation module.
[0009] The isolated acquisition operation circuit converts the electrical signal of the external device into a 3.3V weak current signal through an optical coupler and supplies it to the MCU module for acquisition. The MCU module judges and analyzes the working status and progress of the equipment based on the various status signals collected. By comparing the ratio of the current working time to the previous working time, the number of light grids displayed on the progress bar is calculated.
[0010] The progress display control circuit is composed of an MCU processor, an NPN control tube, and an LED indicator light matrix. The number of light grids calculated by the MCU drives the LED indicator lights to light up the corresponding light groups, and the equipment working progress status is displayed in real time in the form of a decreasing or increasing progress bar.
[0011] Compared with the prior art, the present invention has the following beneficial effects: The present invention adds a more complex control chip to the original simple circuit of the alarm light. The electrical signal collected by the acquisition circuit is then judged by the MCU through the change relationship between various electrical signals. After calculation and processing, the control unit finally controls the number of lights to display the operation progress of the equipment in real time. 1. The information diversity of the signal alarm light is increased; 2. The work sequence of on-site workers is effectively guided; 3. The on-site work efficiency is improved; 4. The present invention is simple to use and does not change the original wiring method; 5. It has a power-off memory function. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 The external signal driving input circuit diagram of the present invention; Figure 2 This is a signal isolation and acquisition circuit diagram of the present invention; Figure 3 This is a schematic diagram of the MCU main operation controller of the present invention; Figure 4 This is a small NPN driving circuit diagram of the present invention; Figure 5 This is the circuit diagram of the red LED lamp of the present invention; Figure 6 This is the circuit diagram of the yellow LED lamp of the present invention; Figure 7 This is the green progress bar LED light matrix circuit diagram of the present invention. DETAILED DESCRIPTION
[0013] In order to make the purpose and technical solution of the present invention clearly and completely described, and the advantages more clearly understood, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all of the embodiments, and are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0014] In the description of the present invention, it should be noted that the terms "center", "middle", "upper", "lower", "left", "right", "inner", "outer", "top", "bottom", "side", "vertical", "horizontal" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "one", "first", "second", "third", "fourth", "fifth", "sixth" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0015] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0016] For the purpose of simplicity and illustration, the principles of the embodiments are mainly described by reference to examples. In the following description, many specific details are proposed to provide a thorough understanding of the embodiments. However, it is obvious that for those of ordinary skill in the art, these embodiments may not be limited to these specific details in practice. In some instances, known methods and structures are not described in detail to avoid making these embodiments unnecessarily difficult to understand. In addition, all embodiments can be used in combination with each other.
[0017] The present application is not limited to the scope of this specific implementation mode. For ordinary technicians in this technical field, as long as various changes are within the spirit and scope of the present application defined and determined by the attached claims, all application creations using the concept of the present application are protected.
[0018] MCU main operation controller operation code: / / Project: H3A1-S3V3FRYG.prj / / Device: FT61F02X / / Memory: Flash 2KX14b, EEPROM 256X8b, SRAM 128X8b / / Author: Gong Shengbing / / Company: Suzhou Puju Lighting Appliance Co., Ltd. / / Version: V1.2 / / Date: 2022.09.22 / / =========================================================== / / ====================== Progress display warning light=============== / / =========================================================== #include "SYSCFG.h" / / #include "FT61F02X.h" / / =========================================================== / / Variable definition / / =========================================================== / / *********************** Macro definition**************************** #define G1 PA2 #define G2 PA3 #define G3 PC0 #define G4 PC1 #define G5 PC4 #define G6 PC5 #define G7 PA4 #define G8 PC2 #define G9 PC3 #define G_sign PA7 #define R_sign PA0 #define Y_sign PA1 #define RUN PA5 #define unchar unsigned char #define unint unsigned int / *------------------------------------------------- * Function name: POWER_INITIAL * Function: Power on system initialization * Input: None * Output: None --------------------------------------------------* / void POWER_INITIAL (void) { OSCCON = 0B01110001; / / IRCF=111=16MHz / 2T=8MHz,0.125us INTCON = 0; / / temporarily disable all interrupts PORTA = 0B00000000; / / PA port digital register data cleared TRISA = 0B10000011; / / PA input and output 0-output 1-input PORTC = 0B00000000; / / PC port digital register data clear? TRISC = 0B00000000; / / PC input and output 0-output 1-input WPUA = 0B10000011; / / PA port pull-up control 1- open pull-up 0- close pull-up WPUC = 0B00000000; / / PC port pull-up control 1-pull-up on 0-pull-up off OPTION = 0B00001001; / / Bit3=1,WDT MODE,PS=001=WDT RATE 1:2 MSCKCON = 0B00000000; / / Bit6->0, disable PA4, PC5 voltage regulation output / / Bit5->0,TIMER2 clock is Fosc / / Bit4->0, disable LVR CMCON0 = 0B00000111; / / Turn off the comparator, CxIN is the digital IO port ANSEL = 0B00000000; / / Close the analog port } / *------------------------------------------------- * Function name: DelayUs * Function: Short delay function --16M-2T -- about 1% faster. * Input parameters: Time delay time delay time Time us * Return parameter: None -------------------------------------------------* / void DelayUs(unsigned char Time) { unsigned char a; for(a=0;a <Time;a++) { NOP(); } } / *------------------------------------------------- * Function name: DelayMs * Function: Short delay function * Input parameters: Time delay time delay time Time ms * Return parameter: None -------------------------------------------------* / void DelayMs(unsigned char Time) { unsigned char a,b; for(a=0;a <Time;a++) { for(b=0;b<5;b++) { DelayUs(197); / / 1% faster } } } / *------------------------------------------------- * Function name: DelayS * Function: Long delay function * Input parameters: Time delay time length Delay time length Time 0.1s * Return parameter: None -------------------------------------------------* / void DelayS(unsigned int Time) { unsigned char a,b; for(a=0;a <Time;a++) { for(b=0;b<5;b++) / / 5 loops = 1 second { DelayMs(20); / / 200ms } } } / *------------------------------------------------- * Function name: WDT_INITIAL * Function: Initialize and set the watchdog 1S time reset * Set the watchdog period = (1 / 32000) * 16-bit prescaler value * 8-bit prescaler value * =(1 / 32000)*65536*2=4s -------------------------------------------------* / void WDT_INITIAL (void) { CLRWDT(); / / Clear watchdog PSA=1; / / Clock frequency division to WDT WDTCON = 0B00010111; / / Bit[4:1]: WDTPS=1011-WDT pre-scaling ratio 1:65536; OPTION[2:0]=001 post-scaling ratio is 2 / / Bit0: SWDTEN=1-WDT enable } / *------------------------------------------------- * Function name: GreenDisplay * Function: Green light progress display function 9 segments * Input parameter: percentage of completed progress * Return parameter: None -------------------------------------------------* / void GreenDisplay(unsigned char Jindu) { if(Jindu<=11){ G1=1; G2=1; G3=1; G4=1; G5=1; G6=1; G7=1; G8=1; G9=!G9; }else if(Jindu<=22&&Jindu>11){ G1=1; G2=1; G3=1; G4=1; G5=1; G6=1; G7=1; G8=!G8; G9=0; }else if(Jindu<=33&&Jindu>22){ G1=1; G2=1; G3=1; G4=1; G5=1; G6=1; G7=!G7; G8=0; G9=0; }else if(Jindu<=44&&Jindu>33){ G1=1; G2=1; G3=1; G4=1; G5=1; G6=!G6; G7=0; G8=0; G9=0; }else if(Jindu<=55&&Jindu>44){ G1=1; G2=1; G3=1; G4=1; G5=!G5; G6=0; G7=0; G8=0; G9=0; }else if(Jindu<=66&&Jindu>55){ G1=1; G2=1; G3=1; G4=!G4; G5=0; G6=0; G7=0; G8=0; G9=0; }else if(Jindu<=77&&Jindu>66){ G1=1; G2=1; G3=!G3; G4=0; G5=0; G6=0; G7=0; G8=0; G9=0; }else if(Jindu<=88&&Jindu>77){ G1=1; G2=!G2; G3=0; G4=0; G5=0; G6=0; G7=0; G8=0; G9=0; }else if(Jindu>88){ G1=!G1; G2=0; G3=0; G4=0; G5=0; G6=0; G7=0; G8=0; G9=0; } } / *------------------------------------------------- * Function name: GreenDisplayAllon * Function: Green light all on * Input parameters: None * Return parameter: None -------------------------------------------------* / void GreenDisplayAllon() { G1=1; G2=1; G3=1; G4=1; G5=1; G6=1; G7=1; G8=1; G9=1; } / *------------------------------------------------- * Function name: ChangeDisplay * Function: Green light shows the processing timing collection status * Input parameters: state change parameters * Return parameter: None -------------------------------------------------* / void ChangeDisplay(unsigned char Jindu) { if(Jindu==9){ G1=1; G2=1; G3=1; G4=1; G5=1; G6=1; G7=1; G8=1; G9=1; }else if(Jindu==8){ G1=1; G2=1; G3=1; G4=1; G5=1; G6=1; G7=1; G8=1; G9=0; }else if(Jindu==7){ G1=1; G2=1; G3=1; G4=1; G5=1; G6=1; G7=1; G8=0; G9=0; }else if(Jindu==6){ G1=1; G2=1; G3=1; G4=1; G5=1; G6=1; G7=0; G8=0; G9=0; }else if(Jindu==5){ G1=1; G2=1; G3=1; G4=1; G5=1; G6=0; G7=0; G8=0; G9=0; }else if(Jindu==4){ G1=1; G2=1; G3=1; G4=1; G5=0; G6=0; G7=0; G8=0; G9=0; }else if(Jindu==3){ G1=1; G2=1; G3=1; G4=0; G5=0; G6=0; G7=0; G8=0; G9=0; }else if(Jindu==2){ G1=1; G2=1; G3=0; G4=0; G5=0; G6=0; G7=0; G8=0; G9=0; }else if(Jindu==1){ G1=1; G2=0; G3=0; G4=0; G5=0; G6=0; G7=0; G8=0; G9=0; } } / *---------------------------------------------------- * Function name: EEPROMread * Function: Read EEPROM data * Input: EEAddr The address of the data to be read * Output: ReEEPROMread corresponding address read data ----------------------------------------------------* / unchar EEPROMread(unchar EEAddr) { unchar ReEEPROMread; EEADR = EEAddr; RD = 1; NOP(); NOP(); ReEEPROMread = EEDAT; / / EEPROM read data ReEEPROMread = EEDATA; return ReEEPROMread; } / *---------------------------------------------------- * Function name: EEPROMwrite * Function: Write data to EEPROM * Input: EEAddr The address where the data needs to be written * Data The data to be written * Output: None ----------------------------------------------------* / void EEPROMwrite(unchar EEAddr,unchar Data) { while(GIE) / / Wait for GIE to be 0 { GIE = 0; NOP(); NOP(); } EEADR = EEAddr; / / EEPROM address EEDAT = Data; / / Write data of EEPROM EEDATA = Data; EEIF = 0; EECON1 |= 0x34; / / Set the three variables WREN1, WREN2, and WREN3. WR = 1; / / Set WR to start programming NOP(); NOP(); NOP(); NOP(); / / Set WR to start programming while(WR); / / Wait for EE writing to complete GIE = 1; } / / =========================================================== / / Function name: main / / parameters: none / / returned value: None / / =========================================================== void main() { unchar PATIO,CHANGE; / / Processing time ratio, collection time scrolling display value unchar off_time, on_time, ss_flag; / / light off time variable, light on time variable, flashing flag variable unchar statu; / / Status variables of lights: 0 means none of the lights are on, 1 means the green light is on, 2 means the yellow light is on, 3 means the red light is on, 4 means both green and yellow are on, 5 means both green and red are on / / 6 means red and yellow are all on, 7 means red, yellow and green are all on unchar eepron_wr_flag; / / Write EEPROM flag, 1 means written, 0 means not written unchar ms; / / 0.1 second counting variable unchar Time_EPR_H, Time_EPR_M, Time_EPR_S; / / Hour, minute, and second data saved in EPR unchar Time_NOW_H, Time_NOW_M, Time_NOW_S; / / Hour, minute, and second data saved in EPR unint temp,temp2,temp3; POWER_INITIAL(); / / System initialization WDT_INITIAL(); / / Watchdog initialization eepron_wr_flag=1; / / Write EEPROM mark is 1, has been written statu=0; / / Light status cleared ms=0; / / 0.1 second count variable cleared CHANGE=0; Time_NOW_H=0; / / Current timing time is cleared Time_NOW_M=0; Time_NOW_S=0; PATIO=0; / / Clear running percentage RUN=1; / / Run indicator light off CLRWDT(); / / Clear watchdog while(1) { / ****************** Running indicator light flashes****************** / RUN=!RUN; / ****************** Determine the lighting status****************** / if(G_sign==0&&Y_sign==1&&R_sign==1){ statu=1; }else if(G_sign==1&&Y_sign==0&&R_sign==1){ statu=2; }else if(G_sign==1&&Y_sign==1&&R_sign==0){ statu=3; }else if(G_sign==0&&Y_sign==0&&R_sign==1){ statu=4; }else if(G_sign==0&&Y_sign==1&&R_sign==0){ statu=5; }else if(G_sign==1&&Y_sign==0&&R_sign==0){ statu=6; }else if(G_sign==0&&Y_sign==0&&R_sign==0){ statu=7; } / ****************** Show progress******************* / if(statu>=2&&statu<=7) / / If the red light is on, the yellow light is on, or both red and yellow are on, it is considered that the operation state has ended { if(eepron_wr_flag==2){ EEPROMwrite(0x12,Time_NOW_H); / / Put the hour value into address 0x12 EEPROMwrite(0x11,Time_NOW_M); / / Put the minute value into address 0x11 EEPROMwrite(0x10,Time_NOW_S); / / Put the seconds value into address 0x10 eepron_wr_flag=1; / / Write status flag set to 1 } Time_NOW_H=0; / / The running green light turns off and the current running time is automatically cleared Time_NOW_M=0; Time_NOW_S=0; }else if(statu==1){ / / ******************** Read the last processing time************************** / / if(eepron_wr_flag==1){ Time_EPR_H=EEPROMread(0x12); / / Read the hour time value at address 0x12 Time_EPR_M=EEPROMread(0x11); / / Read the minute time value at address 0x11 Time_EPR_S=EEPROMread(0x10); / / Read the time value in seconds at address 0x10 eepron_wr_flag=0; / / EEPORM has been read flag temp3=Time_EPR_H*3600; temp3=temp3+Time_EPR_M*60; temp3=temp3+Time_EPR_S; / / temp3 is the last stored processing time } / / ******************** The cumulative processing time of this time************************ / / ms=ms+1; / / This running time is automatically accumulated / / ********************* temp calculates the current processing time?*************************** / / temp=Time_NOW_H*3600; temp=temp+Time_NOW_M*60; temp=temp+Time_NOW_S; / / ********************* Storage judgment part*************************** / / if(temp>temp3){ if(temp-temp3>10){ / / Judge that the difference between the current processing time and the stored processing time is greater than 10 seconds, and judge that storage is required eepron_wr_flag=2; }else{ eepron_wr_flag=0; / / Otherwise it is marked as 0 and does not need to be stored } }else{ if(temp3-temp>10){ / / Judge that the difference between the current processing time and the stored processing time is greater than 10 seconds, and judge that storage is required eepron_wr_flag=2; }else{ eepron_wr_flag=0; / / Otherwise it is marked as 0 and does not need to be stored } } if(ms>=11){ ms=0; CHANGE=CHANGE+1; if(CHANGE>=10){ CHANGE=1; } Time_NOW_S=Time_NOW_S+1; if(temp>temp3){ ChangeDisplay(CHANGE); / / Timeout record processing time charging status display effect }else{ GreenDisplay(PATIO); / / Refresh progress display every 1S CHANGE=0; } } if(Time_NOW_S==60){ / / The seconds are 60, and the minutes are incremented by 1 Time_NOW_S=0; Time_NOW_M=Time_NOW_M+1; } if(Time_NOW_M==60){ / / When the minutes reach 60, the hour will be incremented by 1 Time_NOW_M=0; Time_NOW_H=Time_NOW_H+1; } if(Time_NOW_H==251){ Time_NOW_H=250; / / Limit the maximum storage hours to 250 hours } / / **************** Calculate the completed percentage**************************** / / if(Time_EPR_S==0xFF) { PATIO=0; }else{ if(Time_EPR_H>=10){ / / When the number of hours is greater than 10 hours, calculate the progress by hour temp=Time_NOW_H*100; PATIO=temp / Time_EPR_H; }else if(Time_EPR_H>=1&&Time_EPR_H<10){ temp=Time_NOW_H*60; temp=temp+Time_NOW_M; temp=temp*100; temp2=Time_EPR_H*60; temp2=temp2+Time_EPR_M; PATIO = temp / temp2; } else if (Time_EPR_H == 0) { if (Time_EPR_M >= 10) { temp = Time_NOW_M * 10; PATIO = temp / Time_EPR_M; } else { temp = Time_NOW_M * 60; temp = temp + Time_NOW_S; temp = temp * 100; temp2 = Time_EPR_M * 60; temp2 = temp2 + Time_EPR_S; PATIO = temp / temp2; } } } } DelayS(1); / / Delay 0.1S CLRWDT(); / / Clear watchdog } } / / ===========================================================
Claims
1. An alarm light device capable of displaying the working progress of equipment, characterized in that: include: External device signal driving circuit, isolated acquisition operation circuit and progress display control circuit. The external device signal driving circuit is mainly connected to the PLC output signals such as operation, pause and alarm provided by the device; the isolated acquisition operation circuit connects the MCU acquisition module with the external device output signal through an optical coupler to collect the working status of the device; the progress display control circuit is composed of an MCU processor, an NPN control tube, and an LED indicator light matrix. The MCU operation process drives and controls the LED indicator light display circuit, and displays the working progress status of the device in real time in the form of a decreasing or increasing progress bar.
2. The warning light device capable of displaying the working progress of the equipment according to claim 1, characterized in that: The external signal driving circuit includes a front-stage rectifier circuit, which inputs the electrical signals such as the operation, pause and alarm of the equipment into the driving and collection circuit, collects the voltage together through diodes, and the signals do not interfere with each other. The DC 24V voltage is then converted into a 3.3V voltage through a voltage regulator module for use by the MCU operation module.
3. The warning light device capable of displaying the working progress of the equipment according to claim 2, characterized in that: The MCU operation module collects the weak current signal converted from the external device signal, and then determines the status of the device and the progress of the device operation through the algorithm written in the internal software, and converts the progress into the number of light grids on the progress bar through the calculation formula.
4. The warning light device capable of displaying the working progress of the equipment according to claim 3, characterized in that: The MCU calculation controller uses the calculated number of light grids of the progress bar through the connected small NPN drive circuit to light up the corresponding number of grids of the green LED progress bar matrix light.
5. The warning light device capable of displaying the working progress of the equipment according to claim 4, characterized in that: Except for the green indicator light which is controlled by MCU, the red, yellow or other color LED indicator light display circuits are directly driven by external device signals. The red light indicates device alarm, the yellow light indicates device standby, and other colors can be defined by the device manufacturer.