CN108152364A - A kind of novel Magnetic Memory fixed point sound-light alarm control method - Google Patents

A kind of novel Magnetic Memory fixed point sound-light alarm control method Download PDF

Info

Publication number
CN108152364A
CN108152364A CN201810013693.6A CN201810013693A CN108152364A CN 108152364 A CN108152364 A CN 108152364A CN 201810013693 A CN201810013693 A CN 201810013693A CN 108152364 A CN108152364 A CN 108152364A
Authority
CN
China
Prior art keywords
value
address
data
adturn
register
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.)
Withdrawn
Application number
CN201810013693.6A
Other languages
Chinese (zh)
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 CN201810013693.6A priority Critical patent/CN108152364A/en
Publication of CN108152364A publication Critical patent/CN108152364A/en
Withdrawn legal-status Critical Current

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
    • G01N27/83Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating magnetic variables for investigating the presence of flaws by investigating stray magnetic fields
    • G01N27/85Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating magnetic variables for investigating the presence of flaws by investigating stray magnetic fields using magnetographic methods
    • 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
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C19/00Digital stores in which the information is moved stepwise, e.g. shift registers
    • G11C19/02Digital stores in which the information is moved stepwise, e.g. shift registers using magnetic elements

Abstract

A kind of novel Magnetic Memory fixed point sound-light alarm control method 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 sound-light alarm control method.The present invention provides a kind of novel Magnetic Memory for being convenient for monitoring metal material in real time and pinpoints sound-light alarm control method.The present invention includes system calling and data processing main program, data acquisition routines, numerical filtering handle subprogram and the critical value as interrupt service routine acquires subprogram, and system is called and data processing main program sets LINEADR1 as critical value storage address using assembler directive commands;ADTURN is 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 it is in the memory block of first address that acquired data values are converted into digital signal deposit ADTURN.

Description

A kind of novel Magnetic Memory fixed point sound-light alarm control method
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 sound-light alarm control method.
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 novel Magnetic Memory convenient for being monitored in real time to metal material Pinpoint sound-light alarm control method.
To achieve the above object, the present invention adopts the following technical scheme that, the present invention includes system calling and data processing master Program, data acquisition routines, numerical filtering processing subprogram and the critical value as interrupt service routine acquire subprogram;
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.
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.
Secondly, it is of the present invention cycle 100 times can by ADTURN be first address acquired data storage area in value It is arranged by sequence from small to large;R0 pointers are directed toward the 40th of the acquired data storage area that ADTURN is first address Value, next storage unit is directed toward after R0 directions value is stored in register 3CH by R0 pointers, and register 3CH intermediate values are directed toward with R0 Value be added after again in register 3CH, by a R0 pointers storage unit still further below, jump out cycle after adding up 20 times in this way, in this way Just by collected number by having taken out intermediate 20 values after small longer spread and they accumulating together;The accumulated value that will be obtained Divided by 20, and be put into register 3CH, it is to be called as value steady in a long-term etc..
It is deposited in addition, threshold signal is acquired 100 times and be converted into digital signal by the cycle of the present invention by 100 times Enter in the memory block that ADTURN is first address.
Advantageous effect of the present invention.
The present invention is based on metal magnetic memory principle, inventor studies the characteristics of fixed point monitors for a long time, utilizes assembler language It is designed, 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 open country The feasibility of outer real time monitoring.
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 novel Magnetic Memory fixed point acoustooptic alarm system 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, present invention can apply to novel Magnetic Memories to pinpoint acoustooptic alarm system, novel Magnetic Memory pinpoints acousto-optic Alarm system is included in microcontroller, sensor, A/D converter, external parameter storage, alarm portion, reset portion and outside Disconnected part, the detection signal output port of sensor are connected with the detection signal input port of A/D converter, A/D converter Detection signal output port is connected with the detection signal input port of microcontroller, and the reset signal input port of microcontroller is with resetting Partial reset signal output port is connected, the interrupt signal input port of microcontroller and the interrupt signal of external interrupt part Output port is connected, and the alarm signal output ends mouth of microcontroller is connected with the alarm signal input port of alarm portion, microcontroller Storage signal output port be 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 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.
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 (6)

1. a kind of novel Magnetic Memory fixed point sound-light alarm control method, calls including system and data processing main program, data is adopted Collect subprogram, numerical filtering processing subprogram and the critical value as interrupt service routine and acquire subprogram;It is characterized in that:
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.
A kind of 2. novel Magnetic Memory fixed point sound-light alarm control method according to claim 1, it is characterised in that the system It calls 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 sound-light alarm control method according to claim 1, it is characterised in that the main journey Sequence starts acoustooptic alarm system using the mode of ' 0 ' ' 1 ' code of conveying and alarms.
A kind of 4. novel Magnetic Memory fixed point sound-light alarm control method according to claim 1, it is characterised in that the process Metal magnetic memory signal is acquired 100 times and is converted into the storage that digital signal deposit ADTURN is first address by the cycle of 100 times Qu Zhong.
A kind of 5. novel Magnetic Memory fixed point sound-light alarm control method according to claim 1, it is characterised in that the cycle 100 times can by ADTURN be first address acquired data storage area in value be arranged by sequence from small to large; R0 pointers are directed toward to the 40th value in the acquired data storage area that ADTURN is first address, by R0 directions value deposit register 3CH In after R0 pointers are directed toward next storage unit, register 3CH intermediate values be added with R0 direction values after again in register 3CH, general A R0 pointers storage unit still further below jumps out cycle after 20 times cumulative in this way, thus will be collected digital by small longer spread After taken out intermediate 20 values and they accumulated together;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..
A kind of 6. novel Magnetic Memory fixed point sound-light alarm control method according to claim 1, it is characterised in that the process It is in the memory block of first address that threshold signal is acquired 100 times and is converted into digital signal deposit ADTURN by the cycle of 100 times.
CN201810013693.6A 2018-01-08 2018-01-08 A kind of novel Magnetic Memory fixed point sound-light alarm control method Withdrawn CN108152364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810013693.6A CN108152364A (en) 2018-01-08 2018-01-08 A kind of novel Magnetic Memory fixed point sound-light alarm control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810013693.6A CN108152364A (en) 2018-01-08 2018-01-08 A kind of novel Magnetic Memory fixed point sound-light alarm control method

Publications (1)

Publication Number Publication Date
CN108152364A true CN108152364A (en) 2018-06-12

Family

ID=62461123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810013693.6A Withdrawn CN108152364A (en) 2018-01-08 2018-01-08 A kind of novel Magnetic Memory fixed point sound-light alarm control method

Country Status (1)

Country Link
CN (1) CN108152364A (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

Similar Documents

Publication Publication Date Title
CN108107357A (en) Switching signal detection circuit with self-diagnostic function
CN101859268B (en) Context switch sampling
CN108427623A (en) A kind of computer fault alarm system and method
CN203148944U (en) Needle blockage detecting device for biochemical analyzer
CN105823981A (en) On-line monitoring system of high-voltage circuit breaker and data processing method thereof
CN106291085A (en) Short-circuit current of near zone of transformer monitoring method
CN108152364A (en) A kind of novel Magnetic Memory fixed point sound-light alarm control method
CN109116097A (en) A kind of arrester hybrid current recording on-Line Monitor Device
CN108181376A (en) A kind of novel Magnetic Memory fixed point acoustooptic alarm system
CN111781520A (en) Power battery or super capacitor internal resistance test system and test method
CN107462771A (en) A kind of phase frequency harvester based on double Schmidt triggers
CN105676053B (en) A kind of touch screen defect detecting system
CN202033441U (en) State detection device for valve chest of high-current rectifier
CN108195930B (en) Magnetic memory mobile scanning type acousto-optic alarm system
CN201344959Y (en) Condition monitoring device for floating mold difference high-voltage capacitor
CN207717935U (en) Switching signal detection circuit with self-diagnostic function
CN104793165B (en) It is a kind of that arc fault detection device AFDD test equipments and its method are used for based on Labview
CN208270534U (en) A kind of intelligence atmosphere pollution detector
CN206725726U (en) A kind of voltage check device of large-size machine
CN106092274A (en) A kind of diaphragm gas meter rapid verification method based on auto-correlation algorithm
CN108195929A (en) A kind of novel Magnetic Memory motion scan formula sound-light alarm control method
CN202350927U (en) Intelligently universal digital display device
CN108956753A (en) A kind of Magnetic Memory fixed point sound-light alarm control method can customize error
CN201130226Y (en) Test system for intermittent disconnection of electric contact piece
CN208860902U (en) A kind of bleeder circuit electrical parameter detection circuit and electric energy computation chip

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20180612

WW01 Invention patent application withdrawn after publication