CN108181376A - A kind of novel Magnetic Memory fixed point acoustooptic alarm system - Google Patents

A kind of novel Magnetic Memory fixed point acoustooptic alarm system Download PDF

Info

Publication number
CN108181376A
CN108181376A CN201810014000.5A CN201810014000A CN108181376A CN 108181376 A CN108181376 A CN 108181376A CN 201810014000 A CN201810014000 A CN 201810014000A CN 108181376 A CN108181376 A CN 108181376A
Authority
CN
China
Prior art keywords
value
register
address
adturn
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810014000.5A
Other languages
Chinese (zh)
Other versions
CN108181376B (en
Inventor
刘斌
张贺
何璐瑶
任建
王缔
姜贵民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenyang University of Technology
Original Assignee
Shenyang University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenyang University of Technology filed Critical Shenyang University of Technology
Priority to CN201810014000.5A priority Critical patent/CN108181376B/en
Publication of CN108181376A publication Critical patent/CN108181376A/en
Application granted granted Critical
Publication of CN108181376B publication Critical patent/CN108181376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N27/00Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
    • G01N27/72Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating magnetic variables
    • G01N27/82Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating magnetic variables for investigating the presence of flaws
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • Electrochemistry (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of Current Or Voltage (AREA)
  • Emergency Alarm Devices (AREA)

Abstract

A kind of novel Magnetic Memory fixed point acoustooptic alarm system belongs to the fixed point flaw detection monitor and detection technical field of metal material more particularly to a kind of novel Magnetic Memory fixed point acoustooptic alarm system.The present invention provides a kind of novel Magnetic Memory for being convenient for monitoring metal material in real time for a long time and pinpoints acoustooptic alarm system.The present invention includes microcontroller, sensor, A/D converter, external parameter storage, alarm portion, reset portion and external interrupt part, the detection signal output port of its structural feature sensor is connected with the detection signal input port of A/D converter, the detection signal output port of A/D converter is connected with the detection signal input port of microcontroller, the reset signal input port of microcontroller is connected with the reset signal output port of reset portion, and the interrupt signal input port of microcontroller is connected with the interrupt signal output port of external interrupt part.

Description

A kind of novel Magnetic Memory fixed point acoustooptic alarm system
Technical field
The invention belongs to the fixed point flaw detection monitor and detection technical fields of metal material more particularly to a kind of novel Magnetic Memory to determine Point acoustooptic alarm system.
Background technology
With the development of modern design awareness, metal has been applied to the every field of our lives, can be due to the damage of metal Economic loss caused by wound also increases year by year.But general non-destructive testing technology can only detect the crackle formed or lack It falls into, and early detection cannot be carried out to the fatigue rupture caused by stress concentration.And metal magnetic memory principle is ferromagnetic material Magnetic and elastic interaction energy is formed under stress, makes intensity of magnetization reorientation, is sent out so as to cause magnetic field intensity Changing achievees the purpose that measurement, so early detection can be carried out to metal material.But traditional metal magnetic memory testing instrument is all It is the equipment of motion scan formula, it is impossible to which the metal of fixed point is monitored in real time for a long time.And traditional metal magnetic memory test The filtering system of instrument, due to algorithm complexity, so either hardware realization or software realize have the equipment volume relatively large Or because of the characteristics of procedure quantity can only carry out data analysis by desktop computer greatly, also it is unfavorable for the long-time monitoring of field fixed point.
Invention content
The present invention addresses the above problem, provides a kind of new convenient for being monitored in real time for a long time to metal material Type Magnetic Memory pinpoints acoustooptic alarm system.
To achieve the above object, the present invention adopts the following technical scheme that, the present invention includes microcontroller, sensor, A/D conversions Device, external parameter storage, alarm portion, reset portion and external interrupt part, the detection signal of structural feature sensor Output port is connected with the detection signal input port of A/D converter, the detection signal output port and microcontroller of A/D converter Detection signal input port be connected, the reset signal input port of microcontroller and the reset signal output port of reset portion It is connected, the interrupt signal input port of microcontroller is connected with the interrupt signal output port of external interrupt part, the report of microcontroller Alert signal output port is connected with the alarm signal input port of alarm portion, the storage signal output port of microcontroller with it is external The storage signal input port of parameter storage is connected;
The program of microcontroller includes system calling and data processing main program, data acquisition routines, the sub- journey of numerical filtering processing Sequence and the critical value acquisition subprogram as interrupt service routine,
System is called and data processing main program sets LINEADR1 as critical value storage address using assembler directive commands;ADTURN For gathered data storage area first address;LINEADR0 is filtering data storage address;
System is called and data processing main program calls data acquisition routines to be acquired using sensor according to value first, and will acquisition It is in the memory block of first address that data value, which is converted into digital signal deposit ADTURN, then calls numerical filtering subprogram will ADTURN is that the multiple measured value in the memory block of first address is converted into value deposit LINEADR0 storage units steady in a long-term;So System is called afterwards and this value critical value good with measured in advance steady in a long-term is compared by data processing main program, when long-term When stationary value is less than critical value, illustrate that metal does not reach the suffered limiting range of stress, then main program re-uses sensor acquisition number It is measured according to value;Illustrate that metal has reached the suffered limiting range of stress when value steady in a long-term is more than critical value, then main program starts Acoustooptic alarm system is alarmed;
Data acquisition routines use R1 registers deposit numerical value 100D as cycle count, refer to using R0 registers as data Needle is directed toward data acquisition memory block first address ADTURN, starts the progress data acquisition of IN0 channels and is carried out at the same time digital-to-analogue conversion, is delayed It waits for a period of time and ensures data acquisition and conversion completely, transformed numerical value deposit RO is directed toward area, modification R0 pointers are directed toward Next storage unit by the counting that subtracts one of R1 register values, judges whether the value in R1 counters is ' 0 ', not for ' 0 ' then continue into Row data acquire and converts and change pointer, are ' 0 ' then to jump out cycle, in this way by multiple cycle by metal magnetic memory signal Acquisition is multiple and is converted into digital signal deposit ADTURN as in the memory block of first address;
Numerical filtering handles subprogram and is directed toward acquired data storage area first address ADTURN using R0 registers as data pointer, will R0 is directed toward next storage unit after in R0 directions value deposit register 3CH, register 3CH intermediate values and R0 directions value is bigger It is small, if R0 directions value greatly if by register 3CH intermediate values and R0 direction value transpositions and then R0 be directed toward next storage unit after Continuous cycle, if register 3CH intermediate values greatly if R0 be directly directed toward next storage unit continue cycling through, in this way cycle repeatedly by ADTURN is that the value in the acquired data storage area of first address is arranged by sequence from small to large;R0 pointers are directed toward ADTURN is the value in the acquired data storage area of first address, by will be under R0 pointers are directed toward after in R0 directions value deposit register 3CH One storage unit, register 3CH intermediate values be added with R0 direction values after again in register 3CH, by the storage still further below of R0 pointers Unit, in this way it is cumulative repeatedly after jump out cycle, by collected number by taken out after small longer spread the multiple values in centre and by it Accumulate together;It by obtained accumulated value divided by accumulative frequency, and is put into register 3CH, is waited for as value steady in a long-term It calls;
Critical value acquires subprogram and uses register deposit numerical value 100D as cycle count;Refer to using R0 registers as data Needle is directed toward data acquisition memory block first address ADTURN, starts the progress data acquisition of IN0 channels and is carried out at the same time digital-to-analogue conversion, is delayed It waits for a period of time and ensures data acquisition and conversion completely, transformed numerical value deposit RO is directed toward area, modification R0 pointers are directed toward Next storage unit by the counting that subtracts one of R1 register values, judges whether the value in R1 counters is ' 0 ', not for ' 0 ' then continue into Row data acquire and convert and change pointer, and cycle is then jumped out for ' 0 ';Threshold signal is acquired by multiple cycle in this way Repeatedly and digital signal deposit ADTURN is converted into as in the memory block of first address;Then numerical filtering processing subprogram is called, And the filter value obtained in register 3CH is put into the use for waiting for main program in LINEADR1 storage units as critical value;
The critical value is acquired by external interrupt part.
As a preferred embodiment, system of the present invention is called and data processing main program calls data acquisition first Program acquires 100 data values using sensor.
As another preferred embodiment, main program of the present invention starts acousto-optic report using the mode of ' 0 ' ' 1 ' code of conveying Alert system is alarmed.
It is of the present invention to acquire metal magnetic memory signal 100 times by the cycle of 100 times as another preferred embodiment And it is in the memory block of first address to be converted into digital signal deposit ADTURN.
As another preferred embodiment, it is of the present invention cycle 100 times can by ADTURN be first address acquisition number It is arranged according to the value in memory block by sequence from small to large;R0 pointers are directed toward the gathered data that ADTURN is first address 40th value of memory block, next storage unit, register are directed toward after R0 directions value is stored in register 3CH by R0 pointers 3CH intermediate values be added with R0 direction values after again in register 3CH, it is 20 times cumulative in this way by a R0 pointers storage unit still further below After jump out cycle, thus will collected number by having taken out intermediate 20 values after small longer spread and they being added to one It rises;By obtained accumulated value divided by 20, and it is put into register 3CH, it is to be called as value steady in a long-term etc..
As another preferred embodiment, microcontroller of the present invention uses 80C51 chips.
As another preferred embodiment, external interrupt part of the present invention includes switch K2, switch K2 one end respectively with Capacitance C2 one end, power supply VGG are connected, and the switch K2 other ends input respectively with the capacitance C2 other ends, resistance R2 one end, the first NOT gate End is connected, and resistance R2 other ends ground connection, the first non-gate output terminal is connected with 11 feet of 80C51 chips.
As another preferred embodiment, of the present invention performed when 11 feet of 80C51 chips are ' 0 ' interrupts service journey Sequence, interrupt service routine open interruption after protecting ' program scene ' and ' breakpoint ' first, perform critical value acquisition subprogram, perform son The Central Shanxi Plain is broken after program, is then restored ' program scene ' and ' breakpoint ', is continued to execute main program.
It is of the present invention that threshold signal is acquired 100 times and turned by the cycle of 100 times as another preferred embodiment It is in the memory block of first address to change digital signal deposit ADTURN into.
As another preferred embodiment, sensor of the present invention uses 49E type Hall sensors.
As another preferred embodiment, external parameter storage of the present invention include 74LS373 chips and HM628128RAM chips, 32~39 feet of 80C51 chips respectively with 18,17,14,13,8,7,4,3 foot pair of the chip of 74LS373 It should be connected, 32~39 feet of 80C51 chips are corresponding with 21~13 feet of HM628128RAM chips respectively to be connected, the core of 74LS373 19,16,15,12,9,6,5,2 foot of piece respectively it is corresponding with 5~12 feet of HM628128RAM chips be connected, 80C51 chips 17, 18 feet are corresponding connected with 24, the 29 of HM628128RAM chips respectively;
1,2 feet of 80C51 chips are corresponding with 2,31 feet of HM628128RAM chips respectively to be connected, 27~21 points of 80C51 chips It is not corresponding with 3,28,4,25,23,26,27 feet of HM628128RAM chips to be connected;22 feet of HM628128RAM chips and decoding Circuit is connected;30 feet of 80C51 chips are connected with 11 feet of 74LS373 chips.
As another preferred embodiment, A/D converter of the present invention uses AD0809 chips, the P of 80C51 chips0End Mouth is connected with the data access port D ports of AD0809 chips, the A of 74LS373 chips0、A1、A2Port respectively with AD0809 cores A, B, the C-terminal mouth of piece, which correspond to, to be connected;
13 feet of 80C51 chips are connected with the second non-gate output terminal, the EOC ports phase of the second NOT gate input terminal and AD0809 chips Even, 16 feet of 80C51 chips are connected with first with the first input end of door, 21 feet of 0C51 chips respectively with first and door the Two input terminals, second are connected with the first input end of door, and 17 feet of 80C51 chips are connected with second with the second input terminal of door;
First is connected with the output terminal of door with third NOT gate input terminal, the non-gate output terminal of third respectively with the ST ends of AD0809 chips Mouth, ALE ports are connected;Second is connected with the output terminal of door with the 4th NOT gate input terminal, the 4th non-gate output terminal and AD0809 cores The OE ports of piece are connected;30 feet of 80C51 chips are by taking half value circuit to be connected with the CLK ports of AD0809 chips;
The IN0 mouths of AD0809 chips are connected for C mouthfuls as signal access port with Hall sensor, and A mouthfuls of Hall sensor connects power supply, suddenly You are grounded B mouthfuls of sensor.
Secondly, alarm portion of the present invention includes buzzer, the positive terminal of buzzer respectively with resistance R1 one end, resistance R2 one end, power supply VCC are connected, and the resistance R1 other ends are connected by green LED with 3 feet of 80C51 chips, and the resistance R2 other ends lead to Red LED is crossed with 4 feet of 80C51 chips to be connected;
The negative pole end of buzzer is connected with the collector of NPN triode Q1, the emitter ground connection of NPN triode Q1, NPN triode The base stage of Q1 is connected by resistance R3 with 5 feet of 80C51 chips.
In addition, reset portion of the present invention includes switch K1, switch K1 one end respectively with power supply VCC, capacitance C1 one end It is connected, 9 feet of the switch K1 other ends respectively with the capacitance C1 other ends, resistance R1 one end, 80C51 chips are connected, and hinder the R1 other ends Ground connection.
Advantageous effect of the present invention.
The present invention is based on metal magnetic memory principles, are controlled by microcontroller, and using sensor, A/D converter, external ginseng Be combineding with each other for memory, alarm portion, reset portion and external interrupt part is counted, conducive to the miniaturization of device, suitable for open country Outer operation ensure that the prolonged real time monitoring of field fixed point.
For program controls portions, inventor is studied the characteristics of fixed point monitors for a long time, is designed using assembler language, The program is briefly easy to signal processing mode, and procedure quantity is small, is suitble to the use of microcontroller, so as to ensure that field monitors in real time Feasibility.
Description of the drawings
The present invention will be further described with reference to the accompanying drawings and detailed description.The scope of the present invention not only limits to In the statement of the following contents.
Fig. 1 is system calling and data processing main program flow chart;
Fig. 2 is data acquisition routines flow chart;
Fig. 3 is numerical filtering processing subroutine flow chart;
Fig. 4 is critical value acquisition subroutine flow chart;
Fig. 5 is the structure chart of the present invention;
Fig. 6 is Hall sensor structure chart;
Fig. 7 is data collecting system circuit diagram;
Fig. 8 is memory expansion circuit figure;
Fig. 9 is sound light alarming circuit figure;
Figure 10 is reset system and interrupt control circuit figure.
Specific embodiment
As shown in the figure, the present invention includes microcontroller, sensor, A/D converter, external parameter storage, alarm portion, answers Bit position and external interrupt part, the detection signal input port phase of the detection signal output port and A/D converter of sensor Even, the detection signal output port of A/D converter is connected with the detection signal input port of microcontroller, the reset signal of microcontroller Input port is connected with the reset signal output port of reset portion, the interrupt signal input port and external interrupt of microcontroller Partial interrupt signal output port is connected, the alarm signal output ends mouth of microcontroller and the alarm signal input terminal of alarm portion Mouth is connected, and the storage signal output port of microcontroller is connected with the storage signal input port of external parameter storage;
The program of microcontroller includes system calling and data processing main program, data acquisition routines, the sub- journey of numerical filtering processing Sequence and the critical value acquisition subprogram as interrupt service routine,
System is called and data processing main program sets LINEADR1 as critical value storage address using assembler directive commands;ADTURN For gathered data storage area first address;LINEADR0 is filtering data storage address;
As shown in Figure 1, system is called and data processing main program calls data acquisition routines to acquire evidence using sensor first Value, and it is in the memory block of first address that acquired data values are converted into digital signal deposit ADTURN, then calls numerical filtering ADTURN is converted into value steady in a long-term for the multiple measured value in the memory block of first address and is stored in LINEADR0 storages by subprogram In unit;Then system is called and data processing main program compares this value critical value good with measured in advance steady in a long-term Compared with the i.e. value of LINEADR0 storage units and the value of LINEADR1 storage units is haggled over, when value steady in a long-term is less than critical During value, illustrate that metal does not reach the suffered limiting range of stress, then can acquire 100 groups of data after a period of time that is delayed again and be filtered Comparison is handled, and main program re-uses sensor acquired data values and measures;Illustrate when value steady in a long-term is more than critical value Metal has reached the suffered limiting range of stress, then main program starts acoustooptic alarm system and alarms;
Inventive sensor needs to contact for a long time with being tested metal, can acquire 100 class values every time and be put into ADTURN as first address The medium processing to be filtered in memory block;If filtering detect after be not above critical value if by delay resurvey 100 groups it is new Value is put into the medium processing to be filtered in memory block that ADTURN is first address, if being more than critical value after filtering detection, pause is adopted Collection is waited for and being handled in next step.Specific method as shown in Fig. 2, data acquisition routines using R1 registers deposit numerical value 100D as Cycle count uses, and is directed toward data acquisition memory block first address ADTURN using R0 registers as data pointer, starts IN0 channels It carries out data acquisition and is carried out at the same time digital-to-analogue conversion, delay, which is waited for a period of time, ensures data acquisition and conversion completely, after conversion Numerical value deposit RO be directed toward area, modification R0 pointers are directed toward next storage unit, by the counting that subtracts one of R1 register values, judge that R1 is counted Whether the value in device is ' 0 ', does not continue data acquisition then for ' 0 ' and converts and change pointer, cycle is then jumped out for ' 0 ', It is first address in this way to acquire repeatedly metal magnetic memory signal by multiple cycle and be converted into digital signal deposit ADTURN Memory block in;
Since magnetic memory signal is weak magnetic signal, so extraneous interference is highly prone to, so the processing that must be filtered;This Invention filtering can acquire the data of 100 times every time, by these data by arranging from small to large, and take out intermediate 20 data summation Average value as ' steady in a long-term value ', this eliminates most extraneous interference;Specific method is as shown in figure 3, number Value filtering handles subprogram and is directed toward acquired data storage area first address ADTURN using R0 registers as data pointer, and R0 is directed toward R0 is directed toward next storage unit after in value deposit register 3CH, by register 3CH intermediate values compared with R0 direction values size, such as Register 3CH intermediate values are then directed toward next storage unit with R0 direction value transpositions and then R0 greatly and continue to follow by fruit R0 directions value Ring, if register 3CH intermediate values greatly if R0 be directly directed toward next storage unit continue cycling through, cycle is repeatedly by ADTURN in this way It is arranged for the value in the acquired data storage area of first address by sequence from small to large;It is by R0 pointers direction ADTURN R0 pointers are directed toward next storage list by the value in the acquired data storage area of first address after R0 directions value is stored in register 3CH Member, register 3CH intermediate values be added with R0 direction values after again in register 3CH, by a R0 pointers storage unit still further below, in this way Cycle is jumped out after adding up repeatedly, they by values multiple among having been taken out after small longer spread and are added to one by collected number It rises(It can avoid the interference of ' maximum value ' and ' minimum value ');By obtained accumulated value divided by accumulative frequency, and it is put into register 3CH In, it is to be called as value steady in a long-term etc.;
As shown in figure 4, performing interrupt service subroutine-critical value capture program, register is stored in by critical value acquisition subprogram Numerical value 100D is used as cycle count;Data acquisition memory block first address is directed toward using R0 registers as data pointer ADTURN starts the progress data acquisition of IN0 channels and is carried out at the same time digital-to-analogue conversion, and delay, which is waited for a period of time, ensures that data are adopted completely Transformed numerical value deposit RO is directed toward area by collection and conversion, and modification R0 pointers are directed toward next storage unit, R1 register values are subtracted One counts, and judges whether the value in R1 counters is ' 0 ', does not continue data acquisition then for ' 0 ' and converts and change pointer, Cycle is then jumped out for ' 0 ';Threshold signal is acquired repeatedly by multiple cycle in this way and is converted into digital signal deposit ADTURN is in the memory block of first address;Then numerical filtering processing subprogram is called, and the filtering in register 3CH will be obtained Value is put into the use for waiting for main program in LINEADR1 storage units as critical value;
The critical value is acquired by external interrupt part.
The system is called and data processing main program calls data acquisition routines to be acquired 100 times using sensor first Data value.
The main program starts acoustooptic alarm system using the mode of ' 0 ' ' 1 ' code of conveying and alarms.
Metal magnetic memory signal is acquired 100 times and is converted into digital signal deposit by the cycle by 100 times ADTURN is in the memory block of first address.
ADTURN can be for 100 times value in the acquired data storage area of first address by from small to large by the cycle Sequence is arranged;R0 pointers are directed toward to the 40th value in the acquired data storage area that ADTURN is first address, R0 is directed toward After the next storage unit of R0 pointers direction, register 3CH intermediate values are added with R0 direction values after in value deposit register 3CH again In register 3CH, by a R0 pointers storage unit still further below, cycle is jumped out after 20 times cumulative in this way, it thus will be collected Number is by having taken out intermediate 20 values and they having accumulated together after small longer spread;By obtained accumulated value divided by 20, and put Enter in register 3CH, it is to be called as value steady in a long-term etc..
The microcontroller uses 80C51 chips.
As shown in Figure 10, the external interrupt part includes switch K2, switch K2 one end respectively with capacitance C2 one end, power supply VGG is connected, and the switch K2 other ends are connected respectively with the capacitance C2 other ends, resistance R2 one end, the first NOT gate input terminal, and resistance R2 is another One end is grounded, and the first non-gate output terminal is connected with 11 feet of 80C51 chips.When switch presses startup interrupt service routine, and then Start critical value acquisition subprogram.
Shown capacitance C2 uses 10uF capacitances, and resistance R2 uses 10K Ohmic resistances.
Since the critical value of magnetic memory signal is changed with the variation of environment, so must collection in worksite.It will sensing Device and ready critical value material utilize K2 switch opens interrupters subprogram acquisition critical values.Journey is serviced using interrupting Sequence, which is realized, interrupts, and then perform interrupt service subroutine-critical value capture program, is pressed when K2 is switched, and the 11 of 80C51 chips Foot is ' 0 ', performs interrupt service routine, as shown in figure 4, interrupt service routine is opened after protecting ' program scene ' and ' breakpoint ' first It interrupts, performs critical value acquisition subprogram, the Central Shanxi Plain is broken after execution subroutine, is then restored ' program scene ' and ' breakpoint ', is continued Perform main program.
Threshold signal is acquired 100 times and is converted into digital signal deposit ADTURN by the cycle by 100 times In the memory block of first address.
As shown in fig. 6, the sensor uses 49E type Hall sensors.
The present invention is due to needing to adopt the acquisition to fixed point progress Magnetic Memory model for a long time, so needing the magnetic of a unipath Signal acquisition converting system.As shown in Figure 7,8, the external parameter storage includes 74LS373 chips and HM628128RAM cores Piece, 32~39 feet of 80C51 chips are corresponding with 18,17,14,13,8,7,4,3 foot of the chip of 74LS373 respectively to be connected, 80C51 32~39 feet of chip respectively it is corresponding with 21~13 feet of HM628128RAM chips be connected, the chip 19 of 74LS373,16,15, 12nd, 9,6,5,2 feet are corresponding with 5~12 feet of HM628128RAM chips respectively is connected, 17,18 feet of 80C51 chips respectively with 24, the 29 of HM628128RAM chips, which correspond to, to be connected;
1,2 feet of 80C51 chips are corresponding with 2,31 feet of HM628128RAM chips respectively to be connected, 27~21 points of 80C51 chips It is not corresponding with 3,28,4,25,23,26,27 feet of HM628128RAM chips to be connected;22 feet of HM628128RAM chips and decoding Circuit is connected;30 feet of 80C51 chips are connected with 11 feet of 74LS373 chips.
Set external parameter storage that can meet the needs that acquisition mass data is analysed and compared.
The A/D converter uses AD0809 chips, the P of 80C51 chips0Port and the data access end of AD0809 chips Mouth D ports are connected, the A of 74LS373 chips0、A1、A2Port is corresponding connected with A, B of AD0809 chips, C-terminal mouth respectively;
13 feet of 80C51 chips are connected with the second non-gate output terminal, the EOC ports phase of the second NOT gate input terminal and AD0809 chips Even, 16 feet of 80C51 chips are connected with first with the first input end of door, 21 feet of 0C51 chips respectively with first and door the Two input terminals, second are connected with the first input end of door, and 17 feet of 80C51 chips are connected with second with the second input terminal of door;
First is connected with the output terminal of door with third NOT gate input terminal, the non-gate output terminal of third respectively with the ST ends of AD0809 chips Mouth, ALE ports are connected;Second is connected with the output terminal of door with the 4th NOT gate input terminal, the 4th non-gate output terminal and AD0809 cores The OE ports of piece are connected;30 feet of 80C51 chips are by taking half value circuit to be connected with the CLK ports of AD0809 chips;
The IN0 mouths of AD0809 chips are connected for C mouthfuls as signal access port with Hall sensor, and A mouthfuls of Hall sensor connects power supply, suddenly You are grounded B mouthfuls of sensor.
As shown in figure 9, the alarm portion includes buzzer, the positive terminal of buzzer respectively with resistance R1 one end, resistance R2 one end, power supply VCC are connected, and the resistance R1 other ends are connected by green LED with 3 feet of 80C51 chips, and the resistance R2 other ends lead to Red LED is crossed with 4 feet of 80C51 chips to be connected;
The negative pole end of buzzer is connected with the collector of NPN triode Q1, the emitter ground connection of NPN triode Q1, NPN triode The base stage of Q1 is connected by resistance R3 with 5 feet of 80C51 chips.
Alarm portion of the present invention can control and can be carried out at the same time the two kinds of alarms of sound and light by conveying ' 0 ', ' 1 ' code Mode is connected suitable for field work and with microcontroller.
As shown in Figure 10, the reset portion includes switch K1, switch K1 one end respectively with power supply VCC, capacitance C1 one end It is connected, 9 feet of the switch K1 other ends respectively with the capacitance C1 other ends, resistance R1 one end, 80C51 chips are connected, and hinder the R1 other ends Ground connection.
Shown capacitance C1 uses 10uF capacitances, and resistance R1 uses 10K Ohmic resistances.
When system alarm or encounter other situations can by button switch by microcontroller ' RST ' pin be set to ' 1 ' progress Reset, when need acquire critical value when can microcontroller ' INT0 ' pin be set to by ' 0 ' opens interrupters service by button switch Subprogram acquires critical value into i.e. ' critical value capture program ';Restarting for the present invention can be controlled by outside come real with interrupting It is existing, convenient for field work.
When switch button K1 be not pressed microcontroller ' RST ' pin ground connection be set to ' 0 ' system perform the normal work of main program Make, when having alarm or switch button K1 is pressed during other situations, microcontroller ' RST ' pin connects power supply and is set to ' 1 ' system from new Start.Similarly the switch button K2 microcontroller ' INT0 ' pins that are not pressed are set to ' 1 ' system and perform master by NOT gate ground connection Journey, the switch button K2 microcontroller ' INT0 ' pin that is pressed connects power supply by NOT gate and is set to ' 0 ' when needing to acquire critical value, System jumps out main program and performs ' critical value acquisition subprogram ', and main program is automatically returned to after having performed.
It is understood that above with respect to the specific descriptions of the present invention, it is merely to illustrate the present invention and is not limited to this The described technical solution of inventive embodiments, it will be understood by those of ordinary skill in the art that, still the present invention can be carried out Modification or equivalent replacement, to reach identical technique effect;As long as meeting using needs, all protection scope of the present invention it It is interior.

Claims (10)

1. a kind of novel Magnetic Memory fixed point acoustooptic alarm system, including microcontroller, sensor, A/D converter, the storage of external parameter Device, alarm portion, reset portion and external interrupt part, it is characterised in that the detection signal output port of sensor turns with A/D The detection signal input port of parallel operation is connected, and the detection signal output port of A/D converter and the detection signal of microcontroller input Port is connected, and the reset signal input port of microcontroller is connected with the reset signal output port of reset portion, microcontroller Interrupt signal input port is connected with the interrupt signal output port of external interrupt part, the alarm signal output ends mouth of microcontroller It is connected with the alarm signal input port of alarm portion, the storage signal output port of microcontroller and depositing for external parameter storage Storage signal input port is connected;
The program of microcontroller includes system calling and data processing main program, data acquisition routines, the sub- journey of numerical filtering processing Sequence and the critical value acquisition subprogram as interrupt service routine,
System is called and data processing main program sets LINEADR1 as critical value storage address using assembler directive commands;ADTURN For gathered data storage area first address;LINEADR0 is filtering data storage address;
System is called and data processing main program calls data acquisition routines to be acquired using sensor according to value first, and will acquisition It is in the memory block of first address that data value, which is converted into digital signal deposit ADTURN, then calls numerical filtering subprogram will ADTURN is that the multiple measured value in the memory block of first address is converted into value deposit LINEADR0 storage units steady in a long-term;So System is called afterwards and this value critical value good with measured in advance steady in a long-term is compared by data processing main program, when long-term When stationary value is less than critical value, illustrate that metal does not reach the suffered limiting range of stress, then main program re-uses sensor acquisition number It is measured according to value;Illustrate that metal has reached the suffered limiting range of stress when value steady in a long-term is more than critical value, then main program starts Acoustooptic alarm system is alarmed;
Data acquisition routines use R1 registers deposit numerical value 100D as cycle count, refer to using R0 registers as data Needle is directed toward data acquisition memory block first address ADTURN, starts the progress data acquisition of IN0 channels and is carried out at the same time digital-to-analogue conversion, is delayed It waits for a period of time and ensures data acquisition and conversion completely, transformed numerical value deposit RO is directed toward area, modification R0 pointers are directed toward Next storage unit by the counting that subtracts one of R1 register values, judges whether the value in R1 counters is ' 0 ', not for ' 0 ' then continue into Row data acquire and converts and change pointer, are ' 0 ' then to jump out cycle, in this way by multiple cycle by metal magnetic memory signal Acquisition is multiple and is converted into digital signal deposit ADTURN as in the memory block of first address;
Numerical filtering handles subprogram and is directed toward acquired data storage area first address ADTURN using R0 registers as data pointer, will R0 is directed toward next storage unit after in R0 directions value deposit register 3CH, register 3CH intermediate values and R0 directions value is bigger It is small, if R0 directions value greatly if by register 3CH intermediate values and R0 direction value transpositions and then R0 be directed toward next storage unit after Continuous cycle, if register 3CH intermediate values greatly if R0 be directly directed toward next storage unit continue cycling through, in this way cycle repeatedly by ADTURN is that the value in the acquired data storage area of first address is arranged by sequence from small to large;R0 pointers are directed toward ADTURN is the value in the acquired data storage area of first address, by will be under R0 pointers are directed toward after in R0 directions value deposit register 3CH One storage unit, register 3CH intermediate values be added with R0 direction values after again in register 3CH, by the storage still further below of R0 pointers Unit, in this way it is cumulative repeatedly after jump out cycle, by collected number by taken out after small longer spread the multiple values in centre and by it Accumulate together;It by obtained accumulated value divided by accumulative frequency, and is put into register 3CH, is waited for as value steady in a long-term It calls;
Critical value acquires subprogram and uses register deposit numerical value 100D as cycle count;Refer to using R0 registers as data Needle is directed toward data acquisition memory block first address ADTURN, starts the progress data acquisition of IN0 channels and is carried out at the same time digital-to-analogue conversion, is delayed It waits for a period of time and ensures data acquisition and conversion completely, transformed numerical value deposit RO is directed toward area, modification R0 pointers are directed toward Next storage unit by the counting that subtracts one of R1 register values, judges whether the value in R1 counters is ' 0 ', not for ' 0 ' then continue into Row data acquire and convert and change pointer, and cycle is then jumped out for ' 0 ';Threshold signal is acquired by multiple cycle in this way Repeatedly and digital signal deposit ADTURN is converted into as in the memory block of first address;Then numerical filtering processing subprogram is called, And the filter value obtained in register 3CH is put into the use for waiting for main program in LINEADR1 storage units as critical value;
The critical value is acquired by external interrupt part.
2. a kind of novel Magnetic Memory fixed point acoustooptic alarm system according to claim 1, it is characterised in that the system is called And data processing main program calls data acquisition routines to acquire 100 data values using sensor first.
A kind of 3. novel Magnetic Memory fixed point acoustooptic alarm system according to claim 1, it is characterised in that the main program profit Start acoustooptic alarm system with the mode of ' 0 ' ' 1 ' code of conveying to alarm.
4. a kind of novel Magnetic Memory fixed point acoustooptic alarm system according to claim 1, it is characterised in that described to pass through 100 times Cycle by metal magnetic memory signal acquire 100 times and be converted into digital signal deposit ADTURN be first address memory block in.
5. a kind of novel Magnetic Memory fixed point acoustooptic alarm system according to claim 1, it is characterised in that described to recycle 100 times ADTURN can be arranged for the value in the acquired data storage area of first address by sequence from small to large;R0 is referred to Needle is directed toward the 40th value in the acquired data storage area that ADTURN is first address, will after R0 directions value is stored in register 3CH R0 pointers are directed toward next storage unit, register 3CH intermediate values be added with R0 direction values after again in register 3CH, by R0 pointers A storage unit still further below jumps out cycle after adding up 20 times in this way, thus will be collected digital by being taken out after small longer spread Intermediate 20 values simultaneously accumulate together them;It by obtained accumulated value divided by 20, and is put into register 3CH, as length Phase stationary value etc. is to be called.
6. a kind of novel Magnetic Memory fixed point acoustooptic alarm system according to claim 1, it is characterised in that the microcontroller is adopted With 80C51 chips.
A kind of 7. novel Magnetic Memory fixed point acoustooptic alarm system according to claim 6, it is characterised in that the external interrupt Part includes switch K2, and switch K2 one end is connected respectively with capacitance C2 one end, power supply VGG, the switch K2 other ends respectively with capacitance The C2 other ends, resistance R2 one end, the first NOT gate input terminal are connected, resistance R2 other ends ground connection, the first non-gate output terminal and 80C51 11 feet of chip are connected.
8. a kind of novel Magnetic Memory fixed point acoustooptic alarm system according to claim 6, it is characterised in that described to work as 80C51 cores 11 feet of piece perform interrupt service routine when being ' 0 ', and interrupt service routine protects first to be opened after ' program scene ' and ' breakpoint ' It is disconnected, critical value acquisition subprogram is performed, the Central Shanxi Plain is broken after execution subroutine, is then restored ' program scene ' and ' breakpoint ', is continued to hold Row main program.
9. a kind of novel Magnetic Memory fixed point acoustooptic alarm system according to claim 1, it is characterised in that described to pass through 100 times Cycle by threshold signal acquire 100 times and be converted into digital signal deposit ADTURN be first address memory block in.
10. a kind of novel Magnetic Memory fixed point acoustooptic alarm system according to claim 1, it is characterised in that the sensor is adopted With 49E type Hall sensors.
CN201810014000.5A 2018-01-08 2018-01-08 Magnetic memory fixed point acousto-optic alarm system Active CN108181376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810014000.5A CN108181376B (en) 2018-01-08 2018-01-08 Magnetic memory fixed point acousto-optic alarm system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810014000.5A CN108181376B (en) 2018-01-08 2018-01-08 Magnetic memory fixed point acousto-optic alarm system

Publications (2)

Publication Number Publication Date
CN108181376A true CN108181376A (en) 2018-06-19
CN108181376B CN108181376B (en) 2021-12-21

Family

ID=62550073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810014000.5A Active CN108181376B (en) 2018-01-08 2018-01-08 Magnetic memory fixed point acousto-optic alarm system

Country Status (1)

Country Link
CN (1) CN108181376B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110017430A (en) * 2019-04-12 2019-07-16 中国石油化工股份有限公司 A kind of submarine pipeline binary channels fixed point damage monitoring system based on weak magnetic

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5936971A (en) * 1989-04-13 1999-08-10 Sandisk Corporation Multi-state flash EEprom system with cache memory
US20060028205A1 (en) * 2003-02-25 2006-02-09 Buttle David J Measurement of residual and thermally-induced stress in a rail
CN1793894A (en) * 2005-12-06 2006-06-28 天津大学 Method of determining pipeline welding crack stress concentration using metal magnetic memory detection technology
CN102954997A (en) * 2011-08-26 2013-03-06 中国石油天然气股份有限公司 Non-contact magnetic stress detection method for pipe defects
CN203758958U (en) * 2013-09-28 2014-08-06 西安科技大学 Weak magnetic online monitoring system for defects of mining steel rope
CN104407045A (en) * 2014-12-15 2015-03-11 重庆交通大学 Device and method for catching broken wire of bridge dragline based on metal magnetic memory technique
CN106018543A (en) * 2016-05-16 2016-10-12 北京理工大学 Bolt connecting part damage in-situ monitoring device based on magnetic memory effect

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5936971A (en) * 1989-04-13 1999-08-10 Sandisk Corporation Multi-state flash EEprom system with cache memory
US20060028205A1 (en) * 2003-02-25 2006-02-09 Buttle David J Measurement of residual and thermally-induced stress in a rail
CN1793894A (en) * 2005-12-06 2006-06-28 天津大学 Method of determining pipeline welding crack stress concentration using metal magnetic memory detection technology
CN102954997A (en) * 2011-08-26 2013-03-06 中国石油天然气股份有限公司 Non-contact magnetic stress detection method for pipe defects
CN203758958U (en) * 2013-09-28 2014-08-06 西安科技大学 Weak magnetic online monitoring system for defects of mining steel rope
CN104407045A (en) * 2014-12-15 2015-03-11 重庆交通大学 Device and method for catching broken wire of bridge dragline based on metal magnetic memory technique
CN106018543A (en) * 2016-05-16 2016-10-12 北京理工大学 Bolt connecting part damage in-situ monitoring device based on magnetic memory effect

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LIU BIN ET AL.: "Study on characteristics of magnetic memory testing signal based on the stress concentration field", 《IET SCIENCE, MEASUREMENT & TECHNOLOGY》 *
黄玉燕 等: "基于金属磁记忆技术的构件缺陷检测系统设计", 《厦门理工学院学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110017430A (en) * 2019-04-12 2019-07-16 中国石油化工股份有限公司 A kind of submarine pipeline binary channels fixed point damage monitoring system based on weak magnetic

Also Published As

Publication number Publication date
CN108181376B (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN108107357A (en) Switching signal detection circuit with self-diagnostic function
CN102866322B (en) A kind of touching device detection method
CN108427623A (en) A kind of computer fault alarm system and method
CN103713170B (en) Rare abnormal triggering in T & M instrument
CN110297737B (en) Fault diagnosis test method and device for multi-output chip
CN105823981A (en) On-line monitoring system of high-voltage circuit breaker and data processing method thereof
CN102110555A (en) Load variation tracking automatic rated value breaker
CN104764993A (en) Detection method and device for high-voltage circuit breaker
CN108181376A (en) A kind of novel Magnetic Memory fixed point acoustooptic alarm system
CN105676053B (en) A kind of touch screen defect detecting system
CN108152364A (en) A kind of novel Magnetic Memory fixed point sound-light alarm control method
CN108195930B (en) Magnetic memory mobile scanning type acousto-optic alarm system
CN202033441U (en) State detection device for valve chest of high-current rectifier
CN108802167A (en) A kind of Magnetic Memory experimental provision of novel change external magnetic field environment
CN207717935U (en) Switching signal detection circuit with self-diagnostic function
CN104994377B (en) A kind of television set machine shakes method of testing
CN108195929A (en) A kind of novel Magnetic Memory motion scan formula sound-light alarm control method
CN206725726U (en) A kind of voltage check device of large-size machine
CN109932639A (en) FPGA solder joint failure diagnostic method and diagnostic device based on single capacitor
CN205910312U (en) Break -make of micro -gap switch subassembly detects frock
CN205691645U (en) A kind of signal detection system
CN108776172A (en) A kind of Magnetic Memory sound-light alarm method of step motor control motion scan
CN108956753A (en) A kind of Magnetic Memory fixed point sound-light alarm control method can customize error
CN108986870B (en) Magnetic memory experimental device for changing external magnetic propagation medium environment
CN209656838U (en) Partial discharge monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant