CN108955984B - Principal stress direction judgment method capable of directly indicating direction - Google Patents

Principal stress direction judgment method capable of directly indicating direction Download PDF

Info

Publication number
CN108955984B
CN108955984B CN201810543211.8A CN201810543211A CN108955984B CN 108955984 B CN108955984 B CN 108955984B CN 201810543211 A CN201810543211 A CN 201810543211A CN 108955984 B CN108955984 B CN 108955984B
Authority
CN
China
Prior art keywords
value
register
stepping motor
data
subprogram
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.)
Expired - Fee Related
Application number
CN201810543211.8A
Other languages
Chinese (zh)
Other versions
CN108955984A (en
Inventor
刘斌
张贺
何璐瑶
于小芮
刘子淇
任建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenyang University of Technology
Original Assignee
Shenyang University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenyang University of Technology filed Critical Shenyang University of Technology
Priority to CN201810543211.8A priority Critical patent/CN108955984B/en
Publication of CN108955984A publication Critical patent/CN108955984A/en
Application granted granted Critical
Publication of CN108955984B publication Critical patent/CN108955984B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L5/00Apparatus for, or methods of, measuring force, work, mechanical power, or torque, specially adapted for specific purposes
    • G01L5/16Apparatus for, or methods of, measuring force, work, mechanical power, or torque, specially adapted for specific purposes for measuring several components of force
    • 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

Landscapes

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

Abstract

A method for judging the direction of main stress able to directly indicate direction includes such steps as calling main program by system, collecting subprogram of step motor data, collecting data, processing subprogram of step motor, indicating direction step number by step motor, indicating direction subprogram of step motor and original value collecting subprogram as interrupt service program, setting L INEADR as original value storage address by using pseudo-assembling instruction, ADTURN as the head address of data storage area, ADR as the storage address of data position record value, ADR +1 as the storage address of small cycle number, ADR +2 as the storage address of large cycle number, and TAB L E as the head address of step motor.

Description

Principal stress direction judgment method capable of directly indicating direction
Technical Field
The invention belongs to the technical field of stress orientation detection of metal materials, and particularly relates to a main stress direction judgment method capable of directly indicating the direction.
Background
With the development of modern productivity, metals have been applied to various fields of our lives, and economic losses, which may be caused by damage to metals, have increased year by year. However, the general non-destructive inspection technique can detect only cracks or defects that have already been formed, and cannot detect fatigue failure due to stress concentration at an early stage. The principle of metal magnetic memory is that under the action of stress, ferromagnetic material forms magnetic and elastic interaction energy to reorient magnetization intensity, so that the magnetic field intensity is changed to achieve the purpose of measurement, and therefore, the metal material can be detected early. The core theory of magnetic memory research is: the normal component H p (y) of the magnetic memory signal crosses zero at the stress concentration position, and the tangential component H p (x) has the characteristic of the maximum value; however, the characteristics of the zero crossing point of the normal component H p (y) are generally studied more, and the characteristics of the maximum value of the tangential component H p (x) are studied less, which mainly influences the study reliability because the direction of the principal stress magnetic memory signal is difficult to determine, i.e. the principal stress direction is difficult to judge.
Disclosure of Invention
The present invention is directed to the above-mentioned problems, and provides a principal stress direction determination method capable of directly indicating a direction.
In order to achieve the purpose, the invention adopts the following technical scheme that the design program comprises a system calling main program, a stepping motor data acquisition subprogram, an acquired data processing subprogram, a stepping motor direction indicating step number subprogram, a stepping motor direction indicating subprogram and an original value acquisition subprogram serving as an interrupt service program.
The system calling main process adopts an assembly pseudo instruction to set L INEADR as an original numerical value storage address, ADTURN is a first address of a collected data storage area, ADR is a 'data position record value' storage address, ADR +1 is a storage address of step number 'small cycle number' of the direction indicated by the stepping motor, ADR +2 is a storage address of step number 'large cycle number' of the direction indicated by the stepping motor, and TAB L E is a first address of a forward rotation table of the stepping motor.
The system calls a main process to call a data acquisition subprogram of the stepping motor at first, acquires magnetic signals for multiple times by utilizing the rotation angle of the stepping motor, namely acquires the magnetic signals once per certain rotation, and puts the acquired data into a data storage area with an ADTURN address as a first address; then calling a data acquisition processing subprogram to compare the numerical value in the data storage area with the ADTURN as the initial address with the original value acquired by the original value acquisition subprogram, finding out a storage unit which is the same as the original value, storing the cycle number as a data position record value into an ADR storage unit, and waiting for calling; and calling a direction-indicating step number subprogram of the stepping motor to find the number of steps to be taken when the dial of the stepping motor points to the main stress direction, and calling the direction-indicating subprogram of the stepping motor to point the dial of the stepping motor to the main stress direction.
The data acquisition subprogram of the stepping motor firstly puts the first address TAB L E of the forward rotation table of the stepping motor into a data pointer DPTR, sets the content of a register R0 as 00H as the rotation initial value of the stepping motor, puts the content of a register R0 into a register A as the pointer offset, takes the pointed content of the pointer DPTR + A out and puts the pointed content into a register A, namely the output value required by the first step of the rotation of the stepping motor, outputs the value IN the register A through a port connected with the stepping motor, so that the stepping motor rotates one step, namely a certain angle, then points R0 to the next storage unit, points R1 to the first address ADTURN of the acquisition data storage area, starts an IN0 channel for A/D conversion, waits for a period of time to be acquired, puts the converted number into an R1 pointed area, points R1 to the next storage unit, and circulates for many times, the stepping motor also acquires data for many times, sets the content of the storage area R0 as the rotation initial value of the stepping motor, and then points to the next storage area for many times, and the data of the ADTURN is acquired by many times.
The collected data processing subroutine firstly sets the content of the R0 register to 00H as the initial value of the cycle count, points the R1 to the first address ADTURN of the data collection storage area, adds one to the content of the R0 register, namely, sets the data position record value of the first step of rotation to be '1', compares the pointed value of the R1 with the original collection value, namely, the value of L INEADR storage unit, if the pointed value is different, respectively adds one to the content of the R0 register and the content of the R1 register and then continuously cycles, and if the pointed value is the same, stores the content of the R0 register as the data position record value into the ADR storage unit.
The step number subprogram of the direction indicated by the stepping motor firstly divides the content of the ADR storage unit by 4 ', and respectively stores the divisor as ' large cycle times ' and the remainder as ' small cycle times ' into the ADR +2 and ADR +1 storage units for waiting to be called;
the sub-program for indicating the direction of the stepping motor firstly puts the first address TAB L E of the forward rotation table of the stepping motor into a data pointer DPTR, then firstly judges the number of times of large circulation by using the value of an ADR +2 storage unit, when the number of times of large circulation is not reached, the content of a register R0 is set to 00H as the initial value of the rotation of the stepping motor, puts the content of a register R0 into an A register as the pointer offset, takes out the content pointed by the pointer DPTR + A and puts the content into the A register, namely the output value required for the first step of rotation of the stepping motor, outputs the value in the register A by a port P1 connected with the stepping motor, then the stepping motor rotates by one step, namely rotates by 18 degrees, then adds '1' to R0 'for counting, judges whether the value of the @ R0 is' 4 ', namely whether the value of 4 circulation is carried out, if the value of the @ R0 is not 4', then the value of the number of large circulation is continuously set to the A register R0 for continuously circulating the number of the A register A, when the value of the number of the circulation is not reached, then the number of large circulation is judged, then the value of the circulation is set to the register R637 ', when the value of the circulation is reached, then the value of the pointer R +2 storage unit R', then the pointer is set to the value of the circulation, then the register R7377 ', when the value of the rotation of the pointer R', the pointer is reached, the value of the register R ', the pointer is set to the value of the pointer R', the register R632, then the value of the pointer is set to the register R ', the value of the pointer is set to the value of the pointer R', the register R637 ', the value of the rotation of the value of the pointer is set to be continued circulation, the pointer R', the pointer is set to be kept, the pointer R632, the register R ', the pointer R', the value of the;
the original value is acquired by a reset interrupt control section.
In a preferred embodiment, the magnetic signals are acquired 20 times by rotating the stepping motor 360 degrees, that is, the magnetic signals are acquired once every 18 degrees.
As another preferred scheme, the value in the register a is output from a port P1 connected to the stepping motor, so that the stepping motor rotates by one step, namely by 18 degrees.
As another preferred scheme, through 4 cycles of calculation of the stepper motor data acquisition subroutine, the stepper motor rotates 72 degrees, the sensor also acquires 4 times of data and stores the data in the storage area, the content of the R0 register is set to 00H again as the initial value of stepper motor rotation, and the cycle is repeated 5 times, so that the single chip microcomputer rotates 360 degrees, and the sensor also stores the data acquired by20 times of rotation in the storage area with ADTURN as the first address.
The invention has the beneficial effects.
The normal component H p (y) of the magnetic memory signal crosses zero at the stress concentration position, and the tangential component H p (x) has the characteristic of the maximum value; since the normal component H p (y) is zero and the tangential component H p (x) has a maximum, the principal stress direction can be determined by simply determining the direction of the H p (x) maximum on the tangent plane, i.e., the direction of the principal stress magnetic memory signal value.
The inventor finds out through a plurality of experiments that: when an external magnetic field is applied to the metal material, the value of the main stress magnetic memory signal is changed, but when the direction of the magnetic line of the external magnetic field is vertical to the direction of the main stress magnetic memory signal, the value of the main stress magnetic memory signal is not changed. Based on the characteristic, firstly, measuring the magnitude of the X component of the main stress magnetic memory signal without an external magnetic field as an 'original value' to wait for comparison; the permanent magnet is arranged in parallel to the section, so that the magnetic force lines of the permanent magnet are parallel to the section and have consistent directions, and the magnitude of the X component of the main stress magnetic memory signal is changed due to the application of an external magnetic field; and (3) driving the permanent magnet to rotate for a circle parallel to the tangent plane by using a stepping motor, recording the magnitude of the X component of the main stress magnetic memory signal when the permanent magnet rotates for one step, comparing the magnitude with the 'original value', and when the measured value is the same as the 'original value', indicating that the rotation direction is the direction vertical to the main stress magnetic memory signal, thereby obtaining the direction of the main stress magnetic memory signal, namely the main stress direction.
The invention solves the problem that the main stress direction of metal is difficult to detect.
The invention utilizes the property measurement that the tangential main stress magnetic memory limit value is not changed when the magnetic line of the external magnetic field is vertical to the direction of the tangential main stress magnetic memory signal, and the judgment effect is more visual and convenient.
The invention uses the singlechip to control and the assembly language to program, so that the measuring equipment is smaller and more exquisite and is easy for field operation.
The invention utilizes assembly language to compile the direction-indicating step number subprogram of the stepping motor, so that the stepping motor system can automatically indicate the main stress direction after collecting data, and the result of the main stress direction is displayed more visually and accurately.
Drawings
The invention is further described with reference to the following figures and detailed description. The scope of the invention is not limited to the following expressions.
FIG. 1: the structure of the invention.
FIG. 2: the system calls the main program flow chart.
FIG. 3: a flow chart of a data acquisition subprogram of the stepping motor.
FIG. 4: and a flow chart of a collected data processing subprogram.
FIG. 5: the step motor indicates the direction step number subroutine.
FIG. 6: the stepper motor indicates the direction subroutine.
FIG. 7: raw value collection subroutine flowchart.
FIG. 8: the values are plotted in the direction of the section of the metal.
FIG. 9: and a permanent magnet magnetic force line graph is added.
FIG. 10: the stepper motor indicates the disc structure pattern.
FIG. 11: the stepping motor and the singlechip are connected with a circuit diagram.
FIG. 12: hall sensor structure chart.
FIG. 13: hardware filtering system circuit diagram.
FIG. 14: a circuit diagram of a data acquisition system.
FIG. 15: resetting the system and the interrupt control circuit diagram.
FIG. 16: a memory expansion circuit diagram.
Detailed Description
As shown in figure 1, the invention comprises a singlechip, a stepping motor data acquisition and result display part, a hardware filtering part, a sensor, an A/D converter, a memory expansion part and a reset interrupt control part, the main point of the structure is that the detection signal output port of the data acquisition and result display part of the stepping motor is connected with the detection signal input port of the A/D converter through the external filter part, the detection signal output port of the A/D converter is connected with the detection signal input port of the single chip microcomputer, the reset signal input port of the single chip microcomputer is connected with the signal output port of the reset interrupt control part, the interrupt signal input port of the single chip microcomputer is connected with the interrupt signal output port of the reset interrupt control part, and the storage signal output port of the single chip microcomputer is connected with the storage signal input port of the memory extension part.
The program of the single chip microcomputer comprises a system calling main program, a stepping motor data acquisition subprogram, a collected data processing subprogram, a stepping motor direction indicating step number subprogram, a stepping motor direction indicating subprogram and an original value acquisition subprogram serving as an interrupt service program, wherein the system calling main program adopts an assembly pseudo instruction to set L INEADR as an original value storage address, ADTURN is a collected data storage area initial address, ADR is a data position record value storage address, ADR +1 is a stepping motor direction indicating step number small cycle number storage address, ADR +2 is a stepping motor direction indicating step number large cycle number storage address, and TAB L E is a stepping motor forward rotation table initial address.
As shown in fig. 2, the system calls the main process to first call a data acquisition subroutine of the stepping motor, acquires magnetic signals for multiple times by using the rotation angle of the stepping motor, that is, acquires magnetic signals once every certain rotation, and puts the acquired data into a data storage area with ADTURN as a first address; then calling a data acquisition processing subprogram to compare the numerical value in the data storage area with the ADTURN as the initial address with the original value acquired by the original value acquisition subprogram, finding out a storage unit which is the same as the original value, storing the cycle number as a data position record value into an ADR storage unit, and waiting for calling; and calling a direction-indicating step number subprogram of the stepping motor to find the number of steps to be taken when the dial of the stepping motor points to the main stress direction, and calling the direction-indicating subprogram of the stepping motor to point the dial of the stepping motor to the main stress direction.
As shown IN FIG. 3, the data collection subroutine of the stepping motor firstly puts the first address TAB L E of the forward rotation table of the stepping motor into the data pointer DPTR, sets the content of the R0 register as 00H as the initial rotation value of the stepping motor, puts the content of the R0 register into the A register as the offset of the pointer, takes the pointed content of the pointer DPTR + A out and puts the pointed content into the A register, namely the output value needed by the first step of the rotation of the stepping motor, outputs the value IN the register A through a port connected with the stepping motor, so that the stepping motor rotates one step, namely a certain angle, then points R0 to the next storage unit, points R1 to the first address ADTURN of the collected data storage area, starts an IN0 channel for A/D conversion, delays to wait for collecting a period of time, puts the converted number into the R1 pointed area, points R1 to the next storage unit, and circulates for a plurality of times, so that the stepping motor rotates for a plurality of times, the sensor also collects a plurality of data storage areas, sets the content of the register as the initial rotation value of the single chip microcomputer as the initial rotation value, and then the sensor rotates for a plurality of times to obtain the address ADTURN of the sensor.
As shown in fig. 4, the collected data processing subroutine first sets the content of the R0 register to 00H as the initial value of the loop count, points the R1 to the first address ADTURN of the data collection storage area, adds one to the content of the R0 register, i.e., sets the first-step data position record value to '1', compares the value of the R1 point with the value of the L INEADR storage unit, which is the pre-measured original collection value, and if the values are different, adds one to the contents of the R0 and the R1 registers respectively for subsequent loop, and if the values are the same, stores the content of the R0 register as the data position record value in the ADR storage unit.
As shown in fig. 5, the step number subroutine for the direction indicated by the stepping motor firstly divides the content of the ADR storage unit by '4', and stores the divisor as 'large cycle number' and the remainder as 'small cycle number' into the ADR +2 and ADR +1 storage units respectively to wait for calling.
As shown in FIG. 6, the sub-routine for the direction indication of the stepping motor firstly puts the first address TAB L E of the forward rotation table of the stepping motor into the data pointer DPTR, then firstly judges the ' large loop times ' by the value of the ADR +2 storage unit, when the ' large loop times ' are not reached, sets the content of the R @ 0 register as 00H as the initial value of the rotation of the stepping motor, puts the content of the R0 register into the A register as the offset of the pointer, takes out the content pointed by the pointer DPTR + A and puts the content into the A register, which is the output value required for the first step of the rotation of the stepping motor, outputs the value in the register A from the P1 connected with the stepping motor, then the stepping motor rotates by one step, which is rotated by 18 degrees, then adds ' 1 ' to the value of R0 ' to judge whether the value of the @ R0 is ' 4 ', when the value of the @ R0 is not ' 4 ', sets the value of the large loop times as the value of the rotation of the ADR 0 register A, when the value of the ' 4 ' is not ' 4 ', sets the value of the loop times of the rotation of the pointer R @ 462 storage unit, then the pointer R @ 465 register, when the pointer is reached the value of the pointer, then the pointer, sets the pointer as the pointer, the pointer R # 9 register, the pointer as the value of the pointer # 9 register, the pointer is set as the pointer as the value of the pointer # 9 ', when the pointer is reached the pointer, the pointer is set as the value of the pointer # 9 ', the pointer is set as the pointer, the pointer is set as the value of the pointer # s pointer, the pointer is set as the pointer, the pointer # s pointer, the;
as shown in fig. 7, when the INT0 pin is '0', the interrupt service routine is executed, the interrupt service routine first protects the 'program site' and 'breakpoint' and then turns on the interrupt, the interrupt service routine is executed, the interrupt service routine turns off after the routine is executed, and then the 'program site' and 'breakpoint' are restored and the main program is continuously executed.
The original value is acquired by a reset interrupt control section.
The magnetic signals are collected 20 times by utilizing the stepping motor to rotate 360 degrees, namely, the magnetic signals are collected once every rotation of 18 degrees.
The value in the register a is output from port P1 connected to the stepper motor, and the stepper motor is rotated by one step, i.e., by 18 degrees.
Through 4 times of cyclic calculation of a stepping motor data acquisition subprogram, the stepping motor rotates by 72 degrees, the sensor also acquires 4 times of data and stores the data into a storage area, the content of the R0 register is set to 00H again to serve as the rotation initial value of the stepping motor, and the cycle is repeated for 5 times, so that the single chip microcomputer rotates by 360 degrees, and the sensor also stores the data measured by20 times of rotation into the storage area with the ADTURN as the initial address.
The measuring direction of the sensor is the X-axis direction. Through a plurality of experiments, the value of the main stress magnetic memory signal is changed when an external magnetic field is applied to the metal material, but the value of the main stress magnetic memory signal is not changed when the direction of the magnetic line of the external magnetic field is vertical to the direction of the main stress magnetic memory signal. Based on the characteristic, the invention firstly measures the magnitude of an X-axis magnetic signal (as shown in figure 8, the transverse direction and the longitudinal direction of a tangent plane are respectively an X axis and a Y axis; the vertical direction of the tangent plane is a Z axis-the direction of the measurement of the general magnetic signal is selected, and the magnitude of the X-axis magnetic signal is in direct proportion to the magnitude of the main stress magnetic signal) when the test point has no external magnetic field as an 'original value' to wait for comparison; and then, applying a magnetic field, enabling the magnetic force line of the applied magnetic field to rotate 360 degrees parallel to the tangent plane, observing the change condition of the magnitude of the magnetic signal of the X axis by rotating each time, when the magnitude of the magnetic signal of the X axis is the same as the 'original value', indicating that the direction is vertical to the direction of the main stress magnetic memory signal, measuring a 'data position record value', multiplying the 'data position record value' by the rotation degree (18 degrees) of each step of the stepping motor, comparing the rotation initial position of the motor, obtaining the vertical direction of the main stress magnetic memory signal, and further finding the direction of the main stress magnetic memory signal, namely the main stress direction.
The permanent magnet is arranged on the rotating shaft of the stepping motor, the permanent magnet is parallel to the direction of a tangent plane (if the metal surface is a plane, the tangent plane is a metal plane, if the metal surface is an arc-shaped surface, the tangent plane is a tangent plane of the arc-shaped surface), all vertical components of magnetic lines of force passing through the tangent plane are mutually offset, only horizontal components are left, the directions are completely the same, and the requirements that the magnetic lines of force of an external magnetic field are parallel to and in the same direction with the tangent plane are met. Firstly, measuring a magnetic signal value of a metal test point in the X-axis direction by using a sensor, then placing a permanent magnet parallel to a tangent plane on a stepping motor, and enabling the permanent magnet to rotate parallel to the tangent plane by using the stepping motor; as shown in fig. 9, since the permanent magnet is parallel to the tangential direction, all the vertical components of the magnetic lines passing through the tangential direction cancel each other out, only the horizontal component is left, and the directions are completely the same; thus, the magnetic force lines of the external magnetic field rotate 360 degrees parallel to the tangent plane. The single chip microcomputer is used for controlling the stepping motor to rotate, and the corresponding magnetic signal value is placed in the acquired data storage area with the ADTURN as the first address in each rotation step.
As shown in fig. 10, the glass indicating dial and the permanent magnet are placed on a 20BY20H01 type stepping motor, and rotate together with the stepping motor, and it can be known from fig. 9 that point a of the glass indicating dial points to the direction of the magnetic force lines, and point B is a 'direction indicating line' which is the vertical direction of the magnetic force lines; when the magnetic force line tester works, the point A always points to the direction of a magnetic force line, after the magnetic force line tester rotates for a circle, the point A returns to the original point to finish measurement, the singlechip obtains the number of steps taken by the secondary rotation of the stepping motor according to the measured data position record value, and drives the stepping motor to go to the position of the data position record value, at this time, the point A also points to the direction of the magnetic force line, but the vertical direction of the point A, namely the direction pointed by the direction indication line B, is the main stress magnetic memory signal direction, namely the main stress direction.
As shown in fig. 11, the stepping motor data acquisition part adopts L UN2003 chip, pins 1C, 2C, 3C and 4C of L UN2003 chip are respectively and correspondingly connected with pins orange, brown, yellow and black of 20BY20H01 type stepping motor, and four pins 1B, 2B, 3B and 4B of L UN2003 chip are respectively and correspondingly connected with four pins P1.0, P1.1, P1.2 and P1.3 of 80C51 chip, so that the 80C51 single chip microcomputer controls the rotation of the stepping motor BY using port P1, wherein L UN2003 chip plays a role of amplifying current.
The stepping motor adopts a 6-wire connection method; the moment is larger, and the requirement of driving the permanent magnet can be met.
As shown in fig. 12, the sensor of the present invention employs a 49E type hall sensor; the output port of the Hall sensor is connected with the input port of the hardware filter, the port A of the Hall sensor is connected with the power supply, and the port B of the Hall sensor is grounded.
As shown in FIG. 13, the hardware filtering portion of the invention includes two portions of high-pass filtering and low-pass filtering, the positive terminal of the L M324 type comparator of the high-pass filtering portion (1) is connected to the output terminal of the 49E Hall sensor through a 10uF capacitor and grounded through a 5.1K resistor, the negative terminal is connected to the output terminal of the high-pass filtering portion and grounded through two 20K resistors, respectively, the positive terminal of the L M324 type comparator of the low-pass filtering portion (2) is connected to the output terminal of the high-pass filtering portion through a 10K resistor and grounded through 10uF, and the negative terminal is connected to the output terminal of the low-pass filtering portion through a 10K resistor and grounded through a 20K resistor.
As shown in FIG. 14, the A/D converter employs the P of AD0809 chip, 80C51 chip0The port is connected with the D port of the data access port of the AD0809 chip, and the A port of the 74L S373 chip0、A1、A2The ports are respectively and correspondingly connected with an A, B, C port of an AD0809 chip, a pin 13 of an 80C51 chip is connected with an output end of a second NOT gate, an input end of the second NOT gate is connected with an EOC port of the AD0809 chip, a pin 16 of an 80C51 chip is connected with a first input end of a first AND gate, a pin 21 of a 0C51 chip is respectively connected with a second input end of the first AND gate and a first input end of a second AND gate, a pin 17 of the 80C51 chip is connected with a second input end of the second AND gate, an output end of the first AND gate is connected with an input end of a third NOT gate, an output end of the third NOT gate is respectively connected with an ST port and an A L E port of the AD0809 chip, an output end of the second AND gate is connected with an input end of a fourth NOT gate, an output end of the fourth NOT gate is connected with an OE port of the AD0809 chip, a pin 30 of an 80C51 chip is connected with a C L K port of the AD0809 chip through a circuit which takes a half value, an IN0 of the AD0809 chip is connected.
As shown in fig. 15, the reset control portion of the reset interrupt control portion includes a switch K1, one end of the switch K1 is connected to the power VCC and one end of the capacitor C1, the other end of the switch K1 is connected to the other end of the capacitor C1, one end of the resistor R1, and the pin 9 of the 80C51 chip, and the other end of the resistor R1 is grounded.
The capacitor C1 is shown as a 10uF capacitor, and the resistor R1 is shown as a 10K ohm resistor.
When the test is finished or problems occur, a reset system is needed to carry out the re-working counting; according to the requirement of the field work, the reset system is designed in the form of an external switch.
As shown in fig. 15, the interrupt control portion of the reset interrupt control portion includes a switch K2, one end of the switch K2 is connected to one end of a capacitor C2 and a power supply VGG, the other end of the switch K2 is connected to the other end of a capacitor C2, one end of a resistor R2 and an input end of a first not gate, the other end of the resistor R2 is grounded, and an output end of the first not gate is connected to pin 11 of an 80C51 chip. When the switch is pressed down, the interrupt service program is started, and then the original value acquisition subprogram is started.
The capacitor C2 is shown as a 10uF capacitor, and the resistor R2 is shown as a 10K ohm resistor.
The method comprises the steps of comparing a test value with a test point X-axis magnetic signal value (original value) without an external magnetic field, acquiring the original value IN advance, namely acquiring the original value by using an external interrupt mode, namely generating interrupt by using an INT0 pin of a single chip microcomputer when no external magnetic field exists, executing an interrupt subprogram, storing the acquired test point X-axis magnetic signal value (original value) without the external magnetic field IN a L INEADR storage unit for waiting to call, executing an interrupt service program when a K2 switch is pressed, setting a pin 11 of an 80C51 chip to be ' 0 ', executing the interrupt service program, firstly protecting a program site ' and a ' breakpoint ' and then switching on and off, executing the original value acquisition subprogram, then switching off and interrupting after the subprogram is executed, continuing to execute the main program, starting an IN0 channel for A/D conversion, delaying for waiting for acquisition for a period of time, and putting the converted value IN a L INEADR storage unit.
As shown in FIG. 16, the memory expansion portion comprises a 74L S373 chip and an HM628128RAM chip, pins 32-39 of an 80C51 chip are respectively connected with pins 18, 17, 14, 13, 8, 7, 4 and 3 of a 74L S373 chip, pins 32-39 of an 80C51 chip are respectively connected with pins 21-13 of an HM628128RAM chip, pins 19, 16, 15, 12, 9, 6, 5 and 2 of a 74L S373 chip are respectively connected with pins 5-12 of an HM628128RAM chip, pins 17 and 18 of an 80C51 chip are respectively connected with pins 24 and 29 of an HM628128RAM chip, pins 1 and 2 of an 80C51 chip are respectively connected with pins 2 and 31 of an HM628128 chip, pins 27-21 of an 80C51 chip are respectively connected with pins 3, 28, 4, 25, 23, 26 and 27 of an HM628128RAM chip, pins 22 of an HM628128 chip is connected with pins 51 and a pin 3622 of an HM628128RAM chip is connected with a pin 51 and a pin 74L of an HM 3580 RAM chip.
The memory expansion part is arranged to meet the requirement of mass data processing.
It should be understood that the detailed description of the present invention is only for illustrating the present invention and is not limited by the technical solutions described in the embodiments of the present invention, and those skilled in the art should understand that the present invention can be modified or substituted equally to achieve the same technical effects; as long as the use requirements are met, the method is within the protection scope of the invention.

Claims (4)

1. A main stress direction judging method capable of directly indicating direction, a design program comprises a system calling main program, a stepping motor data acquisition subprogram, an acquired data processing subprogram, a stepping motor direction indicating step number subprogram, a stepping motor direction indicating subprogram and an original value acquisition subprogram as an interrupt service program;
the system calls a main process and adopts an assembly pseudo instruction to set L INEADR as an original numerical value storage address, ADTURN is a first address of a collected data storage area, ADR is a 'data position record value' storage address, ADR +1 is a storage address of direction step number 'small cycle number' indicated by a stepping motor, ADR +2 is a storage address of direction step number 'large cycle number' indicated by the stepping motor, and TAB L E is a first address of a forward rotation table of the stepping motor;
the system calls a main process to call a data acquisition subprogram of the stepping motor at first, acquires magnetic signals for multiple times by utilizing the rotation angle of the stepping motor, namely acquires the magnetic signals once per certain rotation, and puts the acquired data into a data storage area with an ADTURN address as a first address; then calling a data acquisition processing subprogram to compare the numerical value in the data storage area with the ADTURN as the initial address with the original value acquired by the original value acquisition subprogram, finding out a storage unit which is the same as the original value, storing the cycle number as a data position record value into an ADR storage unit, and waiting for calling; calling a direction-indicating step number subprogram of the stepping motor to find the number of steps which the dial of the stepping motor should walk when the dial points to the main stress direction, and calling the direction-indicating subprogram of the stepping motor to point the dial of the stepping motor to the main stress direction;
the data acquisition subprogram of the stepping motor firstly puts the first address TAB L E of the forward rotation table of the stepping motor into a data pointer DPTR, sets the content of an R0 register as 00H as the rotation initial value of the stepping motor, puts the content of an R0 register into an A register as the offset of the pointer, takes the pointed content of the pointer DPTR + A out and puts the pointed content into an A register, namely the output value required by the first step of the rotation of the stepping motor, outputs the value IN the register A through a port connected with the stepping motor, so that the stepping motor rotates one step, namely rotates a certain angle, then points R0 to the next storage unit, points R1 to the first address ADTURN of the acquisition data storage area, starts an IN0 channel for A/D conversion, delays to wait for acquiring for a period of time, puts the converted number into an R1 pointing area, and points R1 to the next storage unit, so that the stepping motor rotates a certain angle for a plurality of times, the sensor also acquires data for a plurality of times and sets the content of the storage area of the register R0 as the rotation initial value of the single chip microcomputer, so that the sensor rotates for a plurality of times to obtain the first address ADTURN of the sensor for a plurality of times;
the acquired data processing subprogram firstly sets the content of the R0 register as 00H as a cycle counting initial value, points R1 to the first address ADTURN of a data acquisition storage area, adds one to the content of the R0 register, namely, sets the data position record value of the first step of rotation as '1', compares the pointed value of R1 with the previously measured original acquisition value, namely, L INEADR storage unit value, if the pointed value is different, respectively adds one to the content of the R0 register and the content of the R1 register and then continuously cycles, and if the pointed value is the same, stores the content of the R0 register as the data position record value into the ADR storage unit;
the method comprises the steps of firstly dividing the content of an ADR storage unit by 4 ' by a step motor instruction direction step number subprogram, storing a divisor as a large circulation number and a remainder as a small circulation number in ADR +2 and ADR +1 storage units for waiting calling, firstly, judging the large circulation number by using the value of the ADR +2 storage unit, when the large circulation number does not reach the large circulation number, setting the content of an R636 register as a rotation initial value of a step motor, putting the content of an R0 register into an A register as a pointer offset, taking the content pointed by the pointer DPTR + A into the A register as an output value required by the step motor for the first step, outputting the value in the register A from a port P1 connected with the step motor, rotating the step motor by one step, namely rotating by 18 degrees, then, adding the value of R865TR 0 ' to the ' 1 ', judging whether the value of the R0 is a 4 ', namely, setting the value of the rotation number of the register A1 connected with the step motor as a small circulation number, when the value of the circulation number is not reached the circulation number, judging that the circulation number is equal to the value of the step motor, and the register P4835 ', and the step motor is not reached the circulation number, then, judging whether the value of the circulation number of the step motor is reached the register 7 ', and the register P2, when the circulation number of the circulation number is reached the circulation number, then the circulation number, adding the register # of the step motor # 19 ', adding the register # 19 ', the register # of the pointer # of the register # of the pointer # 19 ', the pointer # of the pointer # 19 ', the pointer # of.
2. The method of claim 1, wherein the step motor is used to collect 20 magnetic signals during 360 degrees rotation, i.e. every 18 degrees rotation.
3. The method for determining the direction of main stress with direct direction indication of claim 1, wherein the value in the register A is outputted from port P1 connected to the stepping motor, so that the stepping motor rotates one step, i.e. 18 degrees.
4. The method for determining the direction of main stress according to claim 1, wherein after 4 cycles of "step motor data collection subroutine", the step motor rotates 72 degrees, the sensor collects 4 times of data and stores it in the storage area, the register of R0 is set to 00H again as the initial value of step motor rotation, and the cycle is repeated 5 times, so that the single chip microcomputer rotates 360 degrees, and the sensor also stores the data measured by20 times of rotation in the storage area addressed by ADTURN.
CN201810543211.8A 2018-05-31 2018-05-31 Principal stress direction judgment method capable of directly indicating direction Expired - Fee Related CN108955984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810543211.8A CN108955984B (en) 2018-05-31 2018-05-31 Principal stress direction judgment method capable of directly indicating direction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810543211.8A CN108955984B (en) 2018-05-31 2018-05-31 Principal stress direction judgment method capable of directly indicating direction

Publications (2)

Publication Number Publication Date
CN108955984A CN108955984A (en) 2018-12-07
CN108955984B true CN108955984B (en) 2020-07-14

Family

ID=64492291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810543211.8A Expired - Fee Related CN108955984B (en) 2018-05-31 2018-05-31 Principal stress direction judgment method capable of directly indicating direction

Country Status (1)

Country Link
CN (1) CN108955984B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102095538A (en) * 2011-02-25 2011-06-15 天津大学 Data demodulation method for polarization maintaining fiber stress sensing
JP2012170295A (en) * 2011-02-16 2012-09-06 Mitsubishi Electric Corp Stator of rotary electric machine and method of manufacturing the same
CN105373014A (en) * 2015-12-11 2016-03-02 河海大学 BSRM modeling method considering edge diffusion effect
CN106768504A (en) * 2016-11-29 2017-05-31 中国特种设备检测研究院 The detecting system of material principal stress, detection sensor and detection method
CN106932741A (en) * 2017-04-17 2017-07-07 沈阳工业大学 The temperature of electrical sheet vector magnetic characteristic and stress effect measurement apparatus
CN107328860A (en) * 2017-07-12 2017-11-07 华东理工大学 A kind of lossless detection method of specimen surface residual stress
CN107808047A (en) * 2017-10-25 2018-03-16 厦门大学 A kind of design method of the unimolecule electrical measurement device of vibration isolation configuration

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012170295A (en) * 2011-02-16 2012-09-06 Mitsubishi Electric Corp Stator of rotary electric machine and method of manufacturing the same
CN102095538A (en) * 2011-02-25 2011-06-15 天津大学 Data demodulation method for polarization maintaining fiber stress sensing
CN105373014A (en) * 2015-12-11 2016-03-02 河海大学 BSRM modeling method considering edge diffusion effect
CN106768504A (en) * 2016-11-29 2017-05-31 中国特种设备检测研究院 The detecting system of material principal stress, detection sensor and detection method
CN106932741A (en) * 2017-04-17 2017-07-07 沈阳工业大学 The temperature of electrical sheet vector magnetic characteristic and stress effect measurement apparatus
CN107328860A (en) * 2017-07-12 2017-11-07 华东理工大学 A kind of lossless detection method of specimen surface residual stress
CN107808047A (en) * 2017-10-25 2018-03-16 厦门大学 A kind of design method of the unimolecule electrical measurement device of vibration isolation configuration

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
钢板应力检测中的巴克豪森信号分析;杨理践 等;《无损探伤》;20160430;第40卷(第2期);第1-5页 *

Also Published As

Publication number Publication date
CN108955984A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN101231310A (en) Voltage measurement instrument and method having improved automatic mode operation
EP2713170B1 (en) Rare anomaly triggering in a test and measurement instrument
CN104807594A (en) Automatic measuring system based on matrix switch
CN106405460A (en) Electronic instrument voltage detection calibration system and calibration method
US11698355B2 (en) Method of operating a gas sensing device, and corresponding gas sensing device
CN108151923B (en) Novel stress orientation detection system
CN108955984B (en) Principal stress direction judgment method capable of directly indicating direction
CN105954555A (en) Method and device for detecting null line break-off electricity stealing
CN109003644B (en) Magnetic memory experimental device for changing external temperature environment
CN108717079A (en) A kind of novel stress oriented detection system that can directly indicate direction
CN107480043A (en) The method of testing and system of code execution time
TWI523420B (en) Testing apparatus with backdriving protection function
CN108986870B (en) Magnetic memory experimental device for changing external magnetic propagation medium environment
CN212622917U (en) Electronic circuit state detection device
NL2032794B1 (en) On-line magnetic memory stress detection system
CN109061525A (en) L ED driving power supply performance test system
CN205537727U (en) Signal conditioning ware automatic measurement device
CN112526363B (en) Detection method and detection device for equipment working time, terminal and storage medium
CN109581262B (en) CCY-2 type magnetism measuring instrument measurement accuracy detection device and use method thereof
CN206788230U (en) A kind of test system of high-speed CAN bus physical layer index
JP3163568B2 (en) IC test equipment
JP2741133B2 (en) Power monitoring recorder
CN110907721A (en) Control panel test system
JPH08226942A (en) Method for judging contact failure of test probe pin and in-circuit tester
CN112748388A (en) Test system and test method for intelligent electric 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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200714

Termination date: 20210531

CF01 Termination of patent right due to non-payment of annual fee