The task alarm device
Technical field
The present invention relates to warning system, relate in particular to a kind of task alarm device.
Background technology
In the production scene, a lot of job requirements are all step-by-step carrying out, action has several, such as temperature of survey in every 1 hour, proportion of survey in every 40 minutes, every 2 hour record one secondary data, foreign material of cleaning in every 30 minutes etc., operating personnel must see and show, and just operate when time is up, and many times miss the time due to a variety of causes, cause work discontinuous, make troubles to production.What some places were used is timer, but timer need to be set the concrete time, will stop after the time, and number of channels seldom, is generally 3 the tunnel regularly.
Summary of the invention
The purpose of this invention is to provide a kind of task alarm device, easy to use, enhance productivity.
The present invention adopts following technical proposals: a kind of task alarm device, comprise channel status input circuit, setting parameter input circuit, CPU (central processing unit), passage prompting output circuit and display circuit, described channel status input circuit, setting parameter input circuit are connected with the signal input part of CPU (central processing unit), and the signal output part of CPU (central processing unit) is connected with display circuit with passage prompting output circuit.
Described channel status input circuit comprises setting the first switches set of duty, the first end ground connection of described the first switches set, and the second end connects respectively the signal input part of CPU (central processing unit).
The second end of described the first switches set also is connected with the channel status indicating circuit.
Described passage prompting output circuit comprises light cue circuit harmony cue circuit.
Described smooth cue circuit comprises the first latch, optical coupling isolation circuit and bulb, the signal output part of described CPU (central processing unit) is connected with the latch mode control end with the input end of the first latch, and the output terminal of the first latch is connected with bulb by optical coupling isolation circuit respectively.
Described the first switches set is that the switches set with eight passages, described channel status indicating circuit have No. eight indicating circuits, described the first latch has eight signal output parts, and described optically coupled isolation circuit and bulb are eight.
Described sound cue circuit comprises audio oscillator circuit, volume control circuit, power amplification circuit and loudspeaker, the signal output part of described CPU (central processing unit) is connected with the input end of audio oscillator circuit, and audio oscillator circuit is connected with loudspeaker by volume control circuit, power amplification circuit.
Described setting parameter input circuit comprises second switch group, the first switch and the second switch for setup parameter and definite parameter, the first end ground connection of described second switch group, the first switch and second switch, the second end connects the signal input part of CPU (central processing unit).
Described CPU (central processing unit) is connected with memory circuit, and described memory circuit is connected with the second end of second switch group.
Described display circuit is by the second latch, four charactrons, four dynamic display circuits that triode consists of, the input end of the second latch is connected with CPU (central processing unit) with the latch mode control end, the output terminal of the second latch is connected with four charactrons, and CPU (central processing unit) also is connected with the common port of four charactrons respectively by four triodes.
Task alarm device of the present invention can loop alarm according to the time period that sets, be fit to very much the requirement of batch production technology controlling and process, as long as set the time interval of everything work, do not need operating personnel to see again table, after time arrived, alarm device can the automatic alarm operating personnel be started working, such as this equipment need to add a defective material in 30 minutes, this alarm device will every mistake will remind operating personnel to add a defective material in 30 minutes, the thing of finishing the work and requiring; This alarm device has 8 passages, can complete simultaneously the alarm of 8 kinds of different modes of operation.
Description of drawings
Fig. 1 is circuit theory diagrams of the present invention;
Fig. 2 is the program flow diagram of memory circuitry of the present invention.
Embodiment
A kind of task alarm device of the present invention, comprise channel status input circuit, setting parameter input circuit, CPU (central processing unit), passage prompting output circuit and display circuit, described channel status input circuit, setting parameter input circuit are connected with the signal input part of CPU (central processing unit), and the signal output part of CPU (central processing unit) is connected with display circuit with passage prompting output circuit.
As shown in Figure 1, described channel status input circuit comprises setting the first switches set SP1 of duty, the first end ground connection of described the first switches set SP1, the second end connects respectively CPU (central processing unit) U1(single-chip microcomputer 89S52) signal input part, the second end of described the first switches set SP1 also is connected with the channel status indicating circuit, the first switches set SP1 described in the present embodiment is the switches set with eight passages, described channel status indicating circuit has No. eight indicating circuits, is made of LED10-LED16, resistance R P2.Whether the channel status input circuit can arrange 8 passages needs to carry out work, and by the high-low level Determines of P0.0----P0.7, P0.0 is first passage, and when P0.0 was low level, first passage can normally send alarm signal, otherwise does not work; LED 10-LED16 is the duty indication, and bright expression can work, otherwise represents that this passage does not use.Which uses, and the switch of the switches set SP1 of correspondence is closed, and this road light emitting diode will be luminous; Do not use to disconnect this group switch, luminotron two utmost points just do not work.
Described passage prompting output circuit comprises light cue circuit harmony cue circuit.Described smooth cue circuit comprises the first latch U3(SN74S373), eight optical coupling isolation circuit OPT1-OPT8 and eight bulb DS1-DS8, the signal output part of described CPU (central processing unit) U1 is connected with the latch mode control end with the input end of the first latch U3, and eight output terminals of the first latch U3 are connected with eight bulb DS1-DS8 by eight optical coupling isolation circuit OPT1-OPT8 respectively.During work, CPU (central processing unit) U1 is latched into P0 mouth data the output terminal of U3, and CPU (central processing unit) U1P2.0 mouth is controlled the latch mode of U3, and high level will latch.If the 2 pin output low levels of U3, + 5V voltage will will consist of the loop by light emitting diode, LED 1 and the resistance R 1 of optical coupling isolation circuit OPT1, all conducting is luminous for two light emitting diodes, and wherein LED1 is as the output state signal indication on this road; Otherwise bulb can be not luminous.8 bulbs are marked effect in order, just knows that this What for lives as long as bulb is luminous.
described sound cue circuit comprises audio oscillator circuit, volume control circuit, power amplification circuit and loudspeaker LS1, described audio oscillator circuit audio frequency oscillator U4 (CA555) and peripheral circuit consist of, described volume control circuit is by capacitor C 11, adjustable resistance RW1 consists of, described power amplification circuit is by amplifier U6 (LM386) and peripheral circuit C13, C14 consists of, the signal output part of described CPU (central processing unit) U1 is connected with the input end of audio oscillator circuit, audio oscillator circuit passes through volume control circuit, power amplification circuit is connected with loudspeaker LS1.This circuit is controlled by the port P2.6 of CPU (central processing unit) U1, and audio frequency oscillator U4 output signal is audio frequency, and when the P2.6 pin was low level, audio frequency oscillator U4 can not vibrate, can not output audio signal, on the contrary audio frequency oscillator U4 just can output audio signal.Amplifier U6 (LM386) is amplified to promote loudspeaker LS1 with sound signal and is sounded, and time is up for alert.No matter which arrives time, all can voice prompt, sound interval stopped 4 seconds for ringing in 4 seconds, automatically stopped after ringing enough 5 sound, and the size of sound can be controlled by regulating adjustable resistance RW1.When sound rings, press to increase key AN1 or reduce key AN2 and can remove sound and light
Described setting parameter input circuit comprises second switch group SP2, the first switch AN1 and the second switch AN2 for setup parameter and definite parameter, the first end ground connection of described second switch group SP2, the first switch AN1 and second switch AN2, the second end connects the signal input part of CPU (central processing unit) U1.Second switch group SP2 is configuration switch and definite switch, is to be set as toggle switch in order to prevent wrong button from causing data to change.When the setting of a certain road was made as duty by halted state, timing was since 0 counting.Establishing method: 1, closed configuration switch, channel setting switch S P1 disconnects; 2, if which is set, closed the respective switch of SP1, first charactron display channel numerical value, the numerical value that arranges before the charactron of back shows, pressing increases key AN1 or reduces key AN2, is set to setting value and gets final product, and will determine to disconnect and data can be stored after the switch closure; 3, set next bit numerical value with the method; 4, set complete after, setting key is disconnected.
Described CPU (central processing unit) is connected with memory circuit U2(24C02), described memory circuit U2 determines that with the second switch group the second end of parameter switch is connected, setting data is stored, and after power down, data can not lost, and the program flow diagram of memory circuitry as shown in Figure 2.
Described display circuit is by the second latch U5(SN74S373), four charactron SMG1-SMG4, four dynamic display circuits that triode Q1-Q4 consists of, the input end of the second latch U5 is connected with CPU (central processing unit) U1 with the latch mode control end, the output terminal of the second latch U5 is connected with four charactron SMG1-SMG4, and CPU (central processing unit) also is connected with the common port of four charactron SMG1-SMG4 respectively by four triode Q1-Q4.Used two latchs in this circuit, be for the P0 that utilizes CPU (central processing unit) U1 as the common data port, utilize the P2.0/P2.1 port of CPU (central processing unit) U1 to be distinguished control.
Itself there is watchdog circuit in described CPU (central processing unit), can improve the reliability of circuit; Power acquisition is with Switching Power Supply generation+5V power supply; Each+be connected with respectively capacitor C 4-C9 between 5V power end and ground, make power supply more stable.