CN108181375A - A kind of principal direction of stress determination method based on magnetic memory detection technology - Google Patents

A kind of principal direction of stress determination method based on magnetic memory detection technology Download PDF

Info

Publication number
CN108181375A
CN108181375A CN201810013820.2A CN201810013820A CN108181375A CN 108181375 A CN108181375 A CN 108181375A CN 201810013820 A CN201810013820 A CN 201810013820A CN 108181375 A CN108181375 A CN 108181375A
Authority
CN
China
Prior art keywords
stepper motor
value
address
data
content
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
CN201810013820.2A
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 CN201810013820.2A priority Critical patent/CN108181375A/en
Publication of CN108181375A publication Critical patent/CN108181375A/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
    • 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/0423Input/output

Landscapes

  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Biochemistry (AREA)
  • Analytical Chemistry (AREA)
  • Electrochemistry (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

A kind of principal direction of stress determination method based on magnetic memory detection technology belongs to the stress oriented detection technical field of metal material more particularly to a kind of principal direction of stress determination method based on magnetic memory detection technology.The present invention provides a kind of principal direction of stress determination method based on magnetic memory detection technology.The present invention includes system and main program, stepper motor data acquisition routines, gathered data processing subprogram, binary-coded decimal conversion routine, LED display subroutines and the original value as interrupt service routine is called to acquire subprogram;It is raw value storage address that system, which calls main Cheng Caiyong assembler directive commands setting LINEADR,;ADTURN is gathered data storage area first address;SHOWADR is Data Position record value storage address, and SHOWADR1 is LED display datas ' ten ' storage address.

Description

A kind of principal direction of stress determination method based on magnetic memory detection technology
Technical field
Stress oriented detection technical field more particularly to one kind the invention belongs to metal material are based on Magnetic memory testing skill The principal direction of stress determination method of art.
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.Magnetic Memory research core theory be:Magnetic is remembered Signal is recalled in its normal component H p (y) zero crossing of stress concentration position, and tangential component H p (x) have maximum value The characteristics of;But we generally the characteristics of normal component H p (y) zero crossings, is studied it is more, and to tangential component H p (x ) having the characteristics that maximum value is studied less, this is primarily due to principal stress magnetic memory signal direction and is difficult to determine, i.e. principal stress Direction is difficult to judge, so affecting the reliability of its research.
Invention content
The present invention addresses the above problem, provides a kind of principal direction of stress judgement side based on magnetic memory detection technology Method.
To achieve the above object, the present invention adopts the following technical scheme that, the present invention includes system and calls main program, stepping electricity Machine data acquisition routines, gathered data handle subprogram, binary-coded decimal conversion routine, LED display subroutines and are taken as interrupting The original value acquisition subprogram for program of being engaged in;
It is raw value storage address that system, which calls main Cheng Caiyong assembler directive commands setting LINEADR,;ADTURN is gathered data Storage area first address;SHOWADR is Data Position record value storage address, and SHOWADR1 is LED display datas ' ten ' storage Address, SHOWADR2 are LED display datas ' a position ' storage address, and TAB is LED display segment code headings address, and TABLE is step Stepper motor rotates forward heading address;
System calls main Cheng Shouxian to call stepper motor data acquisition routines, and multiple magnetic is acquired using stepper motor rotation angle Signal, i.e. magnetic signal of the certain degree acquisition of often rotation, and gathered data is put into the data storage area that ADTURN is first address In;Then gathered data processing subprogram is called to interrupt ADTURN with passing through respectively for numerical value in the data storage area of first address (Original value acquires)The collected original value of subprogram is compared, and finds out the storage unit identical with original value, and will cycle Number is stored in as Data Position record value in SHOWADR storage units, is waited to be called;Call " binary-coded decimal conversion routine " will Binary code is converted to binary-coded decimal in SHOWADR storage units, and will be ' ten ' be stored in respectively with ' a position ' SHOWADR1, SHOWADR2 storage units are medium to be called;" LED display subroutines " is finally called to store SHOWADR1, SHOWADR2 single Member storage numerical value is shown in light-emitting diode display;
Stepper motor rotating forward heading address TABLE is put into data pointer DPTR by stepper motor data acquisition routines first, Using R0 content of registers be set as 00H as stepper motor rotate initial value, using R0 content of registers be put into A-register wherein as Pointer DPTR+A is directed toward content taking-up and is put into A-register, as exported needed for the stepper motor rotation first step by pointer offset amount Value is exported the value in register A by the port being connect with stepper motor, then stepper motor just has rotated a step, that is, has rotated Then R0 is directed toward next storage unit by certain angle;R1 is directed toward gathered data storage area first address ADTURN, starts IN0 Channel carries out a period of time to be collected such as A/D conversions, delay, and transformed number is put into R1 is directed toward area, and R1 is directed toward next deposit Storage unit;Cycle is multiple in this way, and stepper motor has rotated certain angle, and sensor also acquires multiple data deposit storage R0 content of registers is set as 00H and rotates initial value as stepper motor by area again, and systemic circulation is multiple again, such microcontroller Certain degree is had rotated, sensor will also rotate the data deposit ADTURN repeatedly measured as in the memory block of first address;
R0 content of registers is set as 00H as cycle count initial value by gathered data processing subprogram first, and R1 is directed toward number According to acquisition memory block first address ADTURN, R0 content of registers is added one, that is, set rotation first step Data Position record value as ' 1 ', it by R1 directions value compared with the acquired original value i.e. LINEADR storage unit values measured in advance, differs, R0, R1 is posted Storage content continues cycling through after adding one respectively, identical to be then stored in SHOWADR using R0 content of registers as Data Position record value In storage unit;
Result is put into SHOWADR1 storage lists by binary-coded decimal conversion routine first by SHOWADR memory cell contents divided by 10 In member, remainder is put into SHOWADR2 storage units, is thus converted to the binary numeral in SHOWADR storage units Binary-coded decimal, and will be ' ten ' be put into SHOWADR1 storage units, ' a position ' is put into SHOWADR2 storage units;
LED display subroutines select the control mouth of parallel interface chip and write control word to parallel interface chip first, and R0 is referred to To storage unit SHOWADR+1, R1 content of registers values are set as 01H as position control code, after the C mouths for selecting parallel interface chip By C mouthfuls of carry-out bit control codes, ' a position ' light-emitting diode display is lighted;The B mouths of parallel interface chip are selected, by LED display segment code headings Location TAB is put into data pointer DPTR, and R0 is directed toward content is stored in as pointer offset amount in A-register, by pointer DPTR+A It is directed toward content taking-up and is put into A-register, then A-register content is the position control code of light-emitting diode display, by A-register content by B mouthfuls Output, then LED ' a position ' displays are just by ' a position ' the information output of SHOWADR1 deposits;R0 is directed toward next storage unit, will R1 content of registers moves to left one and a period of time is lighted in the waiting that is delayed, and parallel interface chip is selected if not recycling 2 times C mouths after C mouthfuls of carry-out bit control codes are subjected to a partial circulating again, light light-emitting diode display ' ten ', if cycle-index arrives R0 is then directed toward storage unit SHOWADR+1 2 times, R1 content of registers values are set as 01H as position control code, carry out one greatly Cycle;It constantly recycles in this way, it is possible to light ' a position ', ' ten ' two light-emitting diode displays cycles.
As a preferred embodiment, of the present invention be rotated by 360 ° using stepper motor acquires 20 magnetic signals, i.e., every turn Magnetic signal of dynamic 18 degree of acquisitions.
As another preferred embodiment, the value in the A of the present invention by register is defeated by the P1 mouths being connect with stepper motor Go out, then stepper motor just has rotated a step, that is, has rotated 18 degree.
As another preferred embodiment, it is of the present invention it is such cycle 4 times, stepper motor i.e. have rotated 72 degree, sensor Also 4 data deposit memory blocks are acquired, R0 content of registers is set as 00H again rotates initial value as stepper motor, then Secondary systemic circulation 5 times, such microcontroller have rotated 360 degree, and sensor will also rotate the data deposit ADTURN that measures for 20 times and be In the memory block of first address.
As another preferred embodiment, parallel interface chip of the present invention uses 8255 chips.
As another preferred embodiment, microcontroller of the present invention uses 80C51 chips.
As another preferred embodiment, permanent magnet, permanent magnet and section side are installed on stepping motor rotating shaft of the present invention To parallel, all vertical components across the section magnetic line of force are cancelled out each other, and only there are horizontal component, and direction is identical.
As another preferred embodiment, stepper motor of the present invention uses 6 wire type connections.
Secondly, it is of the present invention to perform interrupt service routine, interrupt service routine when 11 feet of 80C51 chips are ' 0 ' Interruption is opened after protecting ' program scene ' and ' breakpoint ' first, performs original value acquisition subprogram, the Central Shanxi Plain is broken after execution subroutine, so Restore ' program scene ' and ' breakpoint ' afterwards, continue to execute main program;
Start IN0 channels and carry out a period of time to be collected such as A/D conversions, delay, it is single that transformed value is put into LINEADR storages In member.
In addition, sensor of the present invention uses 49E type Hall sensors, sensor measurement direction is X-direction.
Advantageous effect of the present invention.
Magnetic memory signal is in its normal component H p (y) zero crossing of stress concentration position, tangential component H p (x) There is maximum value;Since normal component H p (y) are zero, tangential component H p (x) have maximum value, so As long as determine the direction in the direction, i.e. principal stress magnetic memory signal value of H p (x) maximum values on section, you can determine principal stress Direction.
Inventor is had found by many experiments:Principal stress magnetic memory signal can be changed when adding external magnetic field to metal material Value, but the then value of principal stress magnetic memory signal when external magnetic field magnetic line of force direction is vertical with principal stress magnetic memory signal direction It is constant.The present invention is based on this feature, the size conduct of principal stress magnetic memory signal X-component when measuring no external magnetic field first ' original value ' etc. is to be compared;Permanent magnet is parallel to section to put, its magnetic line of force is made to be parallel to section and direction consistent, due to adding External magnetic field, the size of principal stress magnetic memory signal X-component can all change;It is parallel to and cut with stepper motor driving permanent magnet Face rotates one week, records the size of every turn of principal stress magnetic memory signal X-component when moving a step, by itself and ' original value ' comparison, when It is perpendicular to the direction of principal stress magnetic memory signal then to illustrate the rotation direction when measured value is identical with ' original value ', and then is obtained Principal stress magnetic memory signal direction, i.e. principal direction of stress.
The present invention solves the problems, such as that metal principal direction of stress is difficult to detect.
The present invention using the externally-applied magnetic field magnetic line of force vertically tangential principal stress magnetic memory signal direction when, tangential principal stress magnetic note Recall the constant property of restricting the number value to measure, judgement effect more intuitive and convenient.
The present invention is controlled using microcontroller, and assembler language programming makes measuring apparatus more compact, is easy to field work.
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:System calls main program flow chart.
Fig. 2:Stepper motor data acquisition routines flow chart.
Fig. 3:Gathered data handles subroutine flow chart.
Fig. 4:Binary-coded decimal conversion routine flow chart.
Fig. 5:LED display subroutine flow charts.
Fig. 6:It interrupts(Original value acquires)Subroutine flow chart.
Fig. 7:The novel stress oriented detection system construction drawing of the present invention.
Fig. 8:Metal section direction value figure.
Fig. 9:Additional permanent magnet magnetic line chart.
Figure 10:Stepper motor and permanent magnet connection figure.
Figure 11:Principle of stepping motor figure.
Figure 12:Stepper motor single-chip connection circuit diagram.
Figure 13:Hall sensor structure chart.
Figure 14:Data collecting system circuit diagram.
Figure 15:Reset system and interrupt control circuit figure.
Figure 16:Memory expansion circuit figure.
Figure 17:8255 connect circuit diagram with 80C51.
Figure 18:8255 connect circuit diagram with light-emitting diode display.
Specific embodiment
As shown in the figure, present invention can apply to novel stress oriented detection system, novel stress oriented detection system Including microcontroller, stepper motor part of data acquisition, sensor, A/D converter, memory expansion part, reset interrupt control Part and numerical value display portion, motor data input port and the stepper motor part of data acquisition of structural feature microcontroller Motor data output port is connected,
The detection signal output port of sensor is connected with the detection signal input port of A/D converter, the detection of A/D converter Signal output port is connected with the detection signal input port of microcontroller, the reset signal input port and reset interrupt of microcontroller The reset signal output port of the reset control part of control section is connected, and the interrupt signal input port of microcontroller is with resetting The interrupt signal output port for interrupting the interruption part processed of control section is connected, storage signal output port and the storage of microcontroller The storage signal input port of device expansion is connected, the display signal output port of microcontroller and the display of numerical value display portion Signal input port is connected;
The program of microcontroller include system call main program, stepper motor data acquisition routines, gathered data processing subprogram, Binary-coded decimal conversion routine, LED display subroutines and the original value as interrupt service routine acquire subprogram;
It is raw value storage address that system, which calls main Cheng Caiyong assembler directive commands setting LINEADR,;ADTURN is gathered data Storage area first address;SHOWADR is Data Position record value storage address, and SHOWADR1 is LED display datas ' ten ' storage Address, SHOWADR2 are LED display datas ' a position ' storage address, and TAB is LED display segment code headings address, and TABLE is step Stepper motor rotates forward heading address;
As shown in Figure 1, system calls main Cheng Shouxian to call stepper motor data acquisition routines, stepper motor rotation angle is utilized Multiple magnetic signal is acquired, i.e. magnetic signal of the certain degree acquisition of often rotation, and it is first address that gathered data is put into ADTURN In data storage area;Then gathered data processing subprogram is called to distinguish ADTURN for numerical value in the data storage area of first address It is interrupted with passing through(Original value acquires)The collected original value of subprogram is compared, and finds out the storage list identical with original value Member, and be stored in cycle-index as Data Position record value in SHOWADR storage units, it waits to be called;Call " binary-coded decimal turn Change subprogram " binary code in SHOWADR storage units is converted into binary-coded decimal, and will be ' ten ' be stored in respectively with ' a position ' SHOWADR1, SHOWADR2 storage unit are medium to be called;Finally call " LED display subroutines " by SHOWADR1, SHOWADR2 storage units storage numerical value is shown in light-emitting diode display;
Refer to as shown in Fig. 2, stepper motor rotating forward heading address TABLE is put into data by stepper motor data acquisition routines first In needle DPTR, R0 content of registers is set as 00H and rotates initial value as stepper motor, R0 content of registers is put into A deposits Pointer DPTR+A wherein as pointer offset amount, is directed toward content taking-up and is put into A-register, as stepper motor rotation first by device Output valve needed for step is exported the value in register A by the port being connect with stepper motor, then stepper motor just has rotated one Step, that is, have rotated certain angle, R0 then be directed toward next storage unit;R1 is directed toward gathered data storage area first address ADTURN, starts IN0 channels and carries out a period of time to be collected such as A/D conversions, delay, and transformed number is put into R1 is directed toward Area, R1 are directed toward next storage unit;Cycle is multiple in this way, and stepper motor has rotated certain angle, and sensor also acquires more Secondary data are stored in memory block, and R0 content of registers is set as 00H again rotates initial value as stepper motor, and systemic circulation is more again Secondary, such microcontroller has rotated certain degree, and the data deposit ADTURN that sensor also repeatedly measures rotation is first address In memory block;
Since ADTURN can be determined for the offset of gathered data in the memory block of first address by cycle-index when searching, institute With the LINEADR cell values that will be acquired before(Original value)It is the value recycle ratio pair in the memory block of first address with ADTURN, sends out Existing identical value jumps out cycle, and cycle-index is medium as ' Data Position record value ' deposit SHOWADR storage units It is to be called.As shown in figure 3, that R0 content of registers is set as 00H first is initial as cycle count for gathered data processing subprogram R1 is directed toward data acquisition memory block first address ADTURN, R0 content of registers is added one, that is, sets rotation first step data bit by value It is ' 1 ' to put record value, by R1 directions value compared with the acquired original value i.e. LINEADR storage unit values measured in advance, is differed It is continued cycling through after R0, R1 content of registers then are added one respectively, it is identical then using R0 content of registers as Data Position record value It is stored in SHOWADR storage units;
As shown in figure 4, binary-coded decimal conversion routine is put into first by SHOWADR memory cell contents divided by 10, and by result In SHOWADR1 storage units, remainder is put into SHOWADR2 storage units, thus by two in SHOWADR storage units Binary value is converted to binary-coded decimal, and will be ' ten ' it is put into SHOWADR1 storage units, it is single that ' a position ' is put into SHOWADR2 storages In member;
As shown in figure 5, LED display subroutines select the control mouth of parallel interface chip and control are write to parallel interface chip first R0 is directed toward storage unit SHOWADR+1 by word, and R1 content of registers values are set as 01H as position control code, select parallel interface core By C mouthfuls of carry-out bit control codes after the C mouths of piece, ' a position ' light-emitting diode display is lighted;The B mouths of parallel interface chip are selected, LED is shown Segment encode heading address TAB is put into data pointer DPTR, and R0 is directed toward content is stored in as pointer offset amount in A-register, will Pointer DPTR+A is directed toward content taking-up and is put into A-register, then A-register content is the position control code of light-emitting diode display, and A is deposited Device content is by B mouthfuls of outputs, then LED ' a position ' displays are just by ' a position ' the information output of SHOWADR1 deposits;R0 is directed toward next R1 content of registers is moved to left one and a period of time is lighted in the waiting that is delayed, selected simultaneously if not recycling 2 times by storage unit C mouthfuls of carry-out bit control codes are subjected to a partial circulating again after the C mouths of line interface chip, light light-emitting diode display ' ten ', if R0 is then directed toward storage unit SHOWADR+1 by cycle-index to 2 times, and R1 content of registers values are set as 01H as position control code, Carry out a systemic circulation;It constantly recycles in this way, it is possible to ' a position ', ' ten ' two light-emitting diode displays cycles are lighted, and due to Speed and the visual difference of the mankind are lighted, is lighted when just feeling as;
The present invention shown ' Data Position record value ' by light-emitting diode display as a result, stepper motor one of the invention Socialize and transfer 20 steps, select two light-emitting diode displays respectively as ' ten ' and ' a position '.First with ' except digit remainder Number ' method ' Data Position record value ' in SHOWADR storage units is converted into binary-coded decimal by binary number, and will be ' ten ' It is put into SHOWADR+2 storage units, ' a position ' is put into SHOWADR+1 storage units;It is connect parallel using microcontroller control 8255 cycle of mouth is lighted and exports the value in SHOWADR+2, SHOWADR+1 storage unit;It thus can be by ' Data Position is remembered Record value ' it is shown by light-emitting diode display.
The original value is acquired by reset interrupt control section.
It is described to be rotated by 360 ° 20 magnetic signals of acquisition using stepper motor, i.e., often rotate magnetic signal of 18 degree of acquisitions.
Value in the A by register is exported by the P1 mouths being connect with stepper motor, then stepper motor just has rotated a step, Have rotated 18 degree.
Such cycle 4 times, stepper motor has rotated 72 degree, and sensor also acquires 4 data deposit memory blocks, R0 content of registers is set as 00H again and rotates initial value, again systemic circulation 5 times as stepper motor, such microcontroller revolves 360 degree are turned, it is in the memory block of first address that sensor, which will also rotate 20 data deposit ADTURN measured,.
The parallel interface chip uses 8255 chips.
The microcontroller uses 80C51 chips.
As shown in figure 12, the stepper motor part of data acquisition use LUN2003 chips, the 1C of LUN2003 chips, 2C, 3C, 4C pin are connected respectively the orange of 20BY20H01 type stepper motors, brown, yellow, black pin, LUN2003 Tetra- pins of 1B, 2B, 3B, 4B of chip are connected respectively tetra- pins of P1.0, P1.1, P1.2, P1.3 of 80C51 chips, Thus 80C51 microcontrollers just carry out stepper motor rotation control using P1 mouthfuls, and wherein LUN2003 plays the work of amplification electric current With.
As shown in figure 9, permanent magnet, permanent magnet and section are installed on the stepping motor rotating shaft(If metal covering is plane, The section is metal flat;If metal covering is arcwall face, which is the section of arcwall face)Direction is parallel, and all pass through is cut The vertical component of the face magnetic line of force is cancelled out each other, and only there are horizontal component, and direction is identical, ensure that the magnetic force of externally-applied magnetic field Line requirement parallel with section, in the same direction.The magnetic signal value of metallic test point X-direction is measured first with sensor, then in stepping The permanent magnet parallel with section is put on motor, permanent magnet is made to be parallel to section using stepper motor and rotated;Such as Fig. 9, due to forever Magnet is parallel with section direction, so all vertical components across the section magnetic line of force are cancelled out each other, only there are horizontal component, and Direction is identical;It thereby realizes the externally-applied magnetic field magnetic line of force and is parallel to 360 degree of section rotation.Stepping is controlled using microcontroller Motor rotate, and every turn move a step by corresponding magnetic signal value be put into ADTURN be first address gathered data storage area in. The present invention can drive permanent magnet using stepper motor, while rotate and add gathered data, make magnetic signal size and corresponding rotational angle It is corresponding, comparison is facilitated to record.
The stepper motor uses 6 wire type connections;Torque bigger disclosure satisfy that the demand of driving permanent magnet.
As shown in Figure 17,18, the numerical value display portion includes 8255 chips, eight road reverse drivens, two-way and reversely drives Dynamic device and two light-emitting diode displays, the P0 mouths of 80C51 chips are connected with the data port of 8255 chips, the transmission of data are carried out, by P0 Mouth is connected to by a decoding circuit in the CS chip select pins of 8255 chips with P2 mouthfuls, the selection of chip is carried out, by ' reading ' ' writing ' pin, which corresponds to, to be connected;The PB mouths of 8255 chips pass through the eight road reverse drivens section control mouth with two light-emitting diode displays respectively It is connected, the PC0 mouths of 8255 chips pass through two-way reverse driven and ' the position control mouth of a position ' light-emitting diode display is connected, 8255 chips PC1 mouths control mouth by two-way reverse driven and ' ten ' position of light-emitting diode display and be connected.
As shown in figure 15, the interruption control section of the reset interrupt control section includes switch K2, switch K2 one end Be connected respectively with capacitance C2 one end, power supply VGG, the switch K2 other ends respectively with the capacitance C2 other ends, resistance R2 one end, first non- Door input terminal is connected, and resistance R2 other ends ground connection, the first non-gate output terminal is connected with 11 feet of 80C51 chips.When switch is pressed Start interrupt service routine, and then start original value acquisition subprogram.
Shown capacitance C2 uses 10uF capacitances, and resistance R2 uses 10K Ohmic resistances.
Since test value must be with test point X-axis magnetic signal value during no externally-applied magnetic field(Original value)It is compared, so must It must acquire in advance ' original value ', the present invention is acquired ' original value ' using the mode of additional interruption;Utilized in no externally-applied magnetic field Microcontroller INT0 pins generate interruption, perform interruption subroutine, and interruption subroutine is by test point X during collected no externally-applied magnetic field Axis magnetic signal value(Original value)It is medium to be called to be stored in LINEADR storage units.It is pressed when K2 is switched, the 11 of 80C51 chips Foot is ' 0 ', performs interrupt service routine, as shown in fig. 6, interrupt service routine is opened after protecting ' program scene ' and ' breakpoint ' first It interrupts, performs original value acquisition subprogram, the Central Shanxi Plain is broken after execution subroutine, is then restored ' program scene ' and ' breakpoint ', is continued Perform main program;
Start IN0 channels and carry out a period of time to be collected such as A/D conversions, delay, it is single that transformed value is put into LINEADR storages In member.
As shown in figure 13, the sensor uses 49E type Hall sensors, and sensor measurement direction is X-direction.Pass through Many experiments are found, can change the value of principal stress magnetic memory signal, but work as external magnetic field when adding external magnetic field to metal material Then the value of principal stress magnetic memory signal is constant when magnetic line of force direction is vertical with principal stress magnetic memory signal direction.The present invention is based on this A feature, X-axis magnetic signal size when first measuring test point without externally-applied magnetic field(Such as Fig. 8, if section is horizontal, y direction is respectively X Axis, Y-axis;If the vertical direction of section is Z axis --- the direction that general magnetic signal measures is chosen, X-axis magnetic signal size and principal stress Magnetic signal size is directly proportional)It is to be compared as ' original value ' etc.;Externally-applied magnetic field again, and the externally-applied magnetic field magnetic line of force is made to be parallel to section It is rotated by 360 °, every time rotation observation X-axis magnetic signal size variation situation, when X-axis magnetic signal size is identical with ' original value ', Then illustrate that the direction is vertical for principal stress magnetic memory signal direction, measure ' Data Position record value ', it will ' Data Position record Value ' with stepper motor often walk number of rotation(18 degree)It is multiplied, comparison motor rotation initial position, it is possible to show that principal stress magnetic is remembered Recall signal vertical direction, and then find principal stress magnetic memory signal direction, as principal direction of stress.
As shown in figure 16, the memory expansion part includes 74LS373 chips and HM628128RAM chips, 80C51 cores 32~39 feet of piece respectively it is corresponding with 18,17,14,13,8,7,4,3 foot of the chip of 74LS373 be connected, 80C51 chips 32~ 39 feet are corresponding with 21~13 feet of HM628128RAM chips respectively to be connected, the chip 19,16,15,12,9,6,5,2 of 74LS373 Foot is corresponding with 5~12 feet of HM628128RAM chips respectively to be connected, 17,18 feet of 80C51 chips respectively with HM628128RAM 24, the 29 of chip, 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.
Setting memory expansion part can meet the needs of mass data processing.
As shown in figure 14, the A/D converter uses AD0809 chips, the P of 80C51 chips0Port and AD0809 chips Data access port D ports be connected, the A of 74LS373 chips0、A1、A2Port is right with A, B of AD0809 chips, C-terminal mouth respectively It should 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.
As shown in figure 15, the reset control part of the reset interrupt control section includes switch K1, switch K1 one end point Be not connected with power supply VCC, capacitance C1 one end, the switch K1 other ends respectively with the capacitance C1 other ends, resistance R1 one end, 80C51 cores 9 feet of piece are connected, resistance R1 other end ground connection.
Shown capacitance C1 uses 10uF capacitances, and resistance R1 uses 10K Ohmic resistances.
When test is completed or when something goes wrong, a reset system is needed to carry out counting of reworking;It is existing according to the present invention The demand of field work uses the form design of outside connected switch to reset system.
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 principal direction of stress determination method based on magnetic memory detection technology calls main program, stepper motor including system Data acquisition routines, gathered data handle subprogram, binary-coded decimal conversion routine, LED display subroutines and are serviced as interrupting The original value acquisition subprogram of program;It is characterized in that:
It is raw value storage address that system, which calls main Cheng Caiyong assembler directive commands setting LINEADR,;ADTURN is gathered data Storage area first address;SHOWADR is Data Position record value storage address, and SHOWADR1 is LED display datas ' ten ' storage Address, SHOWADR2 are LED display datas ' a position ' storage address, and TAB is LED display segment code headings address, and TABLE is step Stepper motor rotates forward heading address;
System calls main Cheng Shouxian to call stepper motor data acquisition routines, and multiple magnetic is acquired using stepper motor rotation angle Signal, i.e. magnetic signal of the certain degree acquisition of often rotation, and gathered data is put into the data storage area that ADTURN is first address In;Then gathered data processing subprogram is called to interrupt ADTURN with passing through respectively for numerical value in the data storage area of first address (Original value acquires)The collected original value of subprogram is compared, and finds out the storage unit identical with original value, and will cycle Number is stored in as Data Position record value in SHOWADR storage units, is waited to be called;Call " binary-coded decimal conversion routine " will Binary code is converted to binary-coded decimal in SHOWADR storage units, and will be ' ten ' be stored in respectively with ' a position ' SHOWADR1, SHOWADR2 storage units are medium to be called;" LED display subroutines " is finally called to store SHOWADR1, SHOWADR2 single Member storage numerical value is shown in light-emitting diode display;
Stepper motor rotating forward heading address TABLE is put into data pointer DPTR by stepper motor data acquisition routines first, Using R0 content of registers be set as 00H as stepper motor rotate initial value, using R0 content of registers be put into A-register wherein as Pointer DPTR+A is directed toward content taking-up and is put into A-register, as exported needed for the stepper motor rotation first step by pointer offset amount Value is exported the value in register A by the port being connect with stepper motor, then stepper motor just has rotated a step, that is, has rotated Then R0 is directed toward next storage unit by certain angle;R1 is directed toward gathered data storage area first address ADTURN, starts IN0 Channel carries out a period of time to be collected such as A/D conversions, delay, and transformed number is put into R1 is directed toward area, and R1 is directed toward next deposit Storage unit;Cycle is multiple in this way, and stepper motor has rotated certain angle, and sensor also acquires multiple data deposit storage R0 content of registers is set as 00H and rotates initial value as stepper motor by area again, and systemic circulation is multiple again, such microcontroller Certain degree is had rotated, sensor will also rotate the data deposit ADTURN repeatedly measured as in the memory block of first address;
R0 content of registers is set as 00H as cycle count initial value by gathered data processing subprogram first, and R1 is directed toward number According to acquisition memory block first address ADTURN, R0 content of registers is added one, that is, set rotation first step Data Position record value as ' 1 ', it by R1 directions value compared with the acquired original value i.e. LINEADR storage unit values measured in advance, differs, R0, R1 is posted Storage content continues cycling through after adding one respectively, identical to be then stored in SHOWADR using R0 content of registers as Data Position record value In storage unit;
Result is put into SHOWADR1 storage lists by binary-coded decimal conversion routine first by SHOWADR memory cell contents divided by 10 In member, remainder is put into SHOWADR2 storage units, is thus converted to the binary numeral in SHOWADR storage units Binary-coded decimal, and will be ' ten ' be put into SHOWADR1 storage units, ' a position ' is put into SHOWADR2 storage units;
LED display subroutines select the control mouth of parallel interface chip and write control word to parallel interface chip first, and R0 is referred to To storage unit SHOWADR+1, R1 content of registers values are set as 01H as position control code, after the C mouths for selecting parallel interface chip By C mouthfuls of carry-out bit control codes, ' a position ' light-emitting diode display is lighted;The B mouths of parallel interface chip are selected, by LED display segment code headings Location TAB is put into data pointer DPTR, and R0 is directed toward content is stored in as pointer offset amount in A-register, by pointer DPTR+A It is directed toward content taking-up and is put into A-register, then A-register content is the position control code of light-emitting diode display, by A-register content by B mouthfuls Output, then LED ' a position ' displays are just by ' a position ' the information output of SHOWADR1 deposits;R0 is directed toward next storage unit, will R1 content of registers moves to left one and a period of time is lighted in the waiting that is delayed, and parallel interface chip is selected if not recycling 2 times C mouths after C mouthfuls of carry-out bit control codes are subjected to a partial circulating again, light light-emitting diode display ' ten ', if cycle-index arrives R0 is then directed toward storage unit SHOWADR+1 2 times, R1 content of registers values are set as 01H as position control code, carry out one greatly Cycle;It constantly recycles in this way, it is possible to light ' a position ', ' ten ' two light-emitting diode displays cycles.
2. a kind of principal direction of stress determination method based on magnetic memory detection technology according to claim 1, it is characterised in that It is described to be rotated by 360 ° 20 magnetic signals of acquisition using stepper motor, i.e., often rotate magnetic signal of 18 degree of acquisitions.
3. a kind of principal direction of stress determination method based on magnetic memory detection technology according to claim 1, it is characterised in that Value in the A by register is exported by the P1 mouths being connect with stepper motor, then stepper motor just has rotated a step, that is, has rotated 18 degree.
4. a kind of principal direction of stress determination method based on magnetic memory detection technology according to claim 1, it is characterised in that Such cycle 4 times, stepper motor has rotated 72 degree, and sensor also acquires 4 data deposit memory blocks, and R0 is deposited Device content is set as 00H and rotates initial value, again systemic circulation 5 times as stepper motor again, and such microcontroller has rotated 360 Degree, it is in the memory block of first address that sensor, which will also rotate 20 data deposit ADTURN measured,.
5. a kind of principal direction of stress determination method based on magnetic memory detection technology according to claim 1, it is characterised in that The parallel interface chip uses 8255 chips.
6. a kind of principal direction of stress determination method based on magnetic memory detection technology according to claim 1, it is characterised in that The microcontroller uses 80C51 chips.
7. a kind of principal direction of stress determination method based on magnetic memory detection technology according to claim 1, it is characterised in that Permanent magnet is installed, permanent magnet is parallel with section direction, all to divide across the vertical of the section magnetic line of force on the stepping motor rotating shaft Amount is cancelled out each other, and only there are horizontal component, and direction is identical.
8. a kind of principal direction of stress determination method based on magnetic memory detection technology according to claim 1, it is characterised in that The stepper motor uses 6 wire type connections.
9. a kind of principal direction of stress determination method based on magnetic memory detection technology according to claim 1, it is characterised in that 11 feet when 80C51 chips perform interrupt service routine when being ' 0 ', interrupt service routine protect first ' program scene ' and Interruption is opened after ' breakpoint ', performs original value acquisition subprogram, the Central Shanxi Plain is broken after execution subroutine, then recovery ' program scene ' and ' breakpoint ', continues to execute main program;
Start IN0 channels and carry out a period of time to be collected such as A/D conversions, delay, it is single that transformed value is put into LINEADR storages In member.
10. a kind of principal direction of stress determination method based on magnetic memory detection technology according to claim 1, it is characterised in that The sensor uses 49E type Hall sensors, and sensor measurement direction is X-direction.
CN201810013820.2A 2018-01-08 2018-01-08 A kind of principal direction of stress determination method based on magnetic memory detection technology Withdrawn CN108181375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810013820.2A CN108181375A (en) 2018-01-08 2018-01-08 A kind of principal direction of stress determination method based on magnetic memory detection technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810013820.2A CN108181375A (en) 2018-01-08 2018-01-08 A kind of principal direction of stress determination method based on magnetic memory detection technology

Publications (1)

Publication Number Publication Date
CN108181375A true CN108181375A (en) 2018-06-19

Family

ID=62550040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810013820.2A Withdrawn CN108181375A (en) 2018-01-08 2018-01-08 A kind of principal direction of stress determination method based on magnetic memory detection technology

Country Status (1)

Country Link
CN (1) CN108181375A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113740415A (en) * 2021-08-05 2021-12-03 沈阳工业大学 Surface defect stress detection system and method based on magnetic flux leakage signal characteristics

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1793894A (en) * 2005-12-06 2006-06-28 天津大学 Method of determining pipeline welding crack stress concentration using metal magnetic memory detection technology
CN101089646A (en) * 2007-07-17 2007-12-19 南京农业大学 Metal magnetic memory detection device and method based on magnetic field gradient measuring
US20150042323A1 (en) * 2012-03-02 2015-02-12 Speir Hunter Ltd Fault detection for pipelines
CN105183665A (en) * 2015-09-08 2015-12-23 福州瑞芯微电子股份有限公司 Data-caching access method and data-caching controller
CN106768504A (en) * 2016-11-29 2017-05-31 中国特种设备检测研究院 The detecting system of material principal stress, detection sensor and detection method
US20170176389A1 (en) * 2014-02-11 2017-06-22 Pure Technologies Ltd. Method and system for non-destructive rail inspection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1793894A (en) * 2005-12-06 2006-06-28 天津大学 Method of determining pipeline welding crack stress concentration using metal magnetic memory detection technology
CN101089646A (en) * 2007-07-17 2007-12-19 南京农业大学 Metal magnetic memory detection device and method based on magnetic field gradient measuring
US20150042323A1 (en) * 2012-03-02 2015-02-12 Speir Hunter Ltd Fault detection for pipelines
US20170176389A1 (en) * 2014-02-11 2017-06-22 Pure Technologies Ltd. Method and system for non-destructive rail inspection
CN105183665A (en) * 2015-09-08 2015-12-23 福州瑞芯微电子股份有限公司 Data-caching access method and data-caching controller
CN106768504A (en) * 2016-11-29 2017-05-31 中国特种设备检测研究院 The detecting system of material principal stress, detection sensor and detection method

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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113740415A (en) * 2021-08-05 2021-12-03 沈阳工业大学 Surface defect stress detection system and method based on magnetic flux leakage signal characteristics
CN113740415B (en) * 2021-08-05 2024-02-20 沈阳工业大学 Surface defect stress detection system and method based on magnetic leakage signal characteristics

Similar Documents

Publication Publication Date Title
CN108151923A (en) A kind of novel stress oriented detection system
US4641207A (en) Diagnostic device and method for examining the operation of a disk drive
CN108181375A (en) A kind of principal direction of stress determination method based on magnetic memory detection technology
CN109491276A (en) A kind of oil-gas pipeline internal detector data receiver and storage device
CN108802167A (en) A kind of Magnetic Memory experimental provision of novel change external magnetic field environment
CN103776364B (en) A kind of have the angular surveying and fault diagnosis system that fly to turn warning function
CN105387879A (en) Absolute position magnetic encoder of large center hole axial magnetization structure
CN201174055Y (en) Rotation speed measuring module
CN204313787U (en) A kind of testing circuit of angular encoder
CN108717079A (en) A kind of novel stress oriented detection system that can directly indicate direction
CN107942899A (en) A kind of multi-channel Grating signal processing circuit based on CPLD
CN108986870B (en) Magnetic memory experimental device for changing external magnetic propagation medium environment
CN203422018U (en) Artillery automata floating performance detector
CN103440120B (en) Instruction decoding shielding harness and the method for electric energy metrical signal processor
CN109003644B (en) Magnetic memory experimental device for changing external temperature environment
CN108195929A (en) A kind of novel Magnetic Memory motion scan formula sound-light alarm control method
CN108955984A (en) A kind of principal direction of stress determination method that can directly indicate direction
CN108776172A (en) A kind of Magnetic Memory sound-light alarm method of step motor control motion scan
CN101894008B (en) The apparatus and method of switch interrupts
CN104021059A (en) System and method for generating test signal for sequence of event
CN2702284Y (en) Intelligent bob type water level meter
CN107607211A (en) A kind of system for detecting temperature
CN2709944Y (en) Three-dry-reed-pipe type flow sensor capable of sensing
NL2032829B1 (en) New-type directional stress detection system
CN218567593U (en) Electric energy meter control device and electric energy meter

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

Application publication date: 20180619