CN113983995A - Angle measuring method, device and computer readable storage medium - Google Patents

Angle measuring method, device and computer readable storage medium Download PDF

Info

Publication number
CN113983995A
CN113983995A CN202111168597.7A CN202111168597A CN113983995A CN 113983995 A CN113983995 A CN 113983995A CN 202111168597 A CN202111168597 A CN 202111168597A CN 113983995 A CN113983995 A CN 113983995A
Authority
CN
China
Prior art keywords
angle
model
face
measuring
workpiece
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111168597.7A
Other languages
Chinese (zh)
Other versions
CN113983995B (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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN202111168597.7A priority Critical patent/CN113983995B/en
Publication of CN113983995A publication Critical patent/CN113983995A/en
Application granted granted Critical
Publication of CN113983995B publication Critical patent/CN113983995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/22Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring angles or tapers; for testing the alignment of axes
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q1/00Members which are comprised in the general build-up of a form of machine, particularly relatively large fixed members
    • B23Q1/0009Energy-transferring means or control lines for movable machine parts; Control panels or boxes; Control parts
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q17/00Arrangements for observing, indicating or measuring on machine tools
    • B23Q17/22Arrangements for observing, indicating or measuring on machine tools for indicating or measuring existing or desired position of tool or work

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses an angle measurement method, an angle measurement device and a computer readable storage medium, wherein the angle measurement method comprises the steps of obtaining a workpiece model and a magnetic table model, wherein the workpiece model is a three-dimensional model of a workpiece, the magnetic table model is a three-dimensional model of a magnetic table, the workpiece model is provided with a compound angle and a first surface, and the first surface is an inclined surface forming the compound angle; determining a constraint relation between a workpiece model and a magnetic table model; and measuring the sub-angle of the first surface according to the constraint relation between the workpiece model and the magnetic table model. According to the embodiment of the invention, the sub-angle of the composite angle can be directly obtained through measurement without calculation, so that the difficulty in obtaining the sub-angle of the composite angle is reduced, and the probability of errors in obtaining the sub-angle of the composite angle is reduced.

Description

Angle measuring method, device and computer readable storage medium
Technical Field
The present invention relates to the field of machining technologies, and in particular, to an angle measurement method and apparatus, and a computer-readable storage medium.
Background
In the field of machining, a compound angle exists in a part to be machined, and when a plane forming the compound angle is machined, the plane needs to be perpendicular to a machining tool, so that a sub-angle forming the compound angle needs to be calculated, a sine magnetic table is operated according to the sub-angle, the part to be machined is lifted to a state that the plane forming the compound angle is perpendicular to the machining tool through the sine magnetic table, and then the plane forming the compound angle is machined.
However, at present, when the sub-angles forming the composite angle are calculated, a calculation formula of the composite angle is mostly adopted for calculation, so that the requirement on the geometric calculation level of an operator is high, and the calculation difficulty of the sub-angles is high.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an angle measuring method, an angle measuring device and a computer readable storage medium, and aims to solve the technical problem that the calculation difficulty of the sub-angles forming a composite angle is high.
In order to achieve the above object, the present invention provides an angle measuring method, comprising the steps of:
acquiring a workpiece model and a magnetic table model, wherein the workpiece model is a three-dimensional model of a workpiece, the magnetic table model is a three-dimensional model of a magnetic table, the workpiece model is provided with a compound angle and a first surface, and the first surface is an inclined surface forming the compound angle;
determining a constraint relation between the workpiece model and the magnetic table model;
and measuring the sub-angle of the first surface according to the constraint relation between the workpiece model and the magnetic table model.
Optionally, the workpiece model further has a second surface, a third surface, a fourth surface and a fifth surface, the second surface, the third surface and the fourth surface are adjacent to the first surface and the fifth surface at the same time, the magnetic stage model includes a suction cup, a base and a rotating shaft, the suction cup and the base are rotatably connected through the rotating shaft, the step of determining the constraint relationship between the workpiece model and the magnetic stage model includes:
determining a contact constraint of the fifth face with the suction cup.
Optionally, after the step of determining the contact constraint of the fifth surface with the chuck, the step of measuring the angle of the first surface according to the constraint relationship between the workpiece model and the stage model comprises:
determining a parallel constraint of the first face to the base;
measuring an angle between the suction cup and the base;
and determining the sub-angle of the first surface according to the angle between the sucker and the base.
Optionally, after the step of determining the parallel constraint of the first surface and the base, the step of measuring the angle of the first surface according to the constrained relationship between the workpiece model and the magnetic stage model further includes:
measuring an angle between the second face and an edge of the magnetic table model;
and determining the sub-angle of the first surface according to the angle between the second surface and the edge of the magnetic table model.
Optionally, after the step of measuring the angle between the chuck and the base, the step of measuring the partial angle of the first surface according to the constrained relationship between the workpiece model and the magnetic stage model further includes:
determining a reference coordinate system and a parallel constraint of the base and an XY plane of the reference coordinate system;
rotating the sucker in a direction close to the base, wherein the rotating angle of the sucker is the angle between the sucker and the base;
measuring an angle between the second face and an X-axis or a Y-axis of the reference coordinate system;
determining a divergence angle of the first face from an angle between the second face and an X-axis or a Y-axis of the reference coordinate system.
Optionally, after the step of measuring the angle between the chuck and the base, the step of measuring the partial angle of the first surface according to the constrained relationship between the workpiece model and the magnetic stage model further includes:
determining a reference coordinate system and a parallel constraint of the base and an XY plane of the reference coordinate system;
determining a contact constraint of the suction cup with the base;
measuring an angle between the second face and an X-axis or a Y-axis of the reference coordinate system;
determining a divergence angle of the first face from an angle between the second face and an X-axis or a Y-axis of the reference coordinate system.
Optionally, after the step of determining the parallel constraint of the first surface and the base, the step of measuring the angle of the first surface according to the constrained relationship between the workpiece model and the magnetic stage model further includes:
measuring an angle between the rotating shaft and a Y axis or an X axis of the reference coordinate system;
and determining the sub-angle of the first surface according to the angle between the rotating shaft and the Y axis or the X axis of the reference coordinate system.
Optionally, the step of measuring the angle of the first surface according to the constrained relationship between the workpiece model and the magnetic stage model includes:
calling an angle measuring tool;
and measuring the sub-angle of the first surface by using the angle measuring tool.
Further, to achieve the above object, the present invention also provides an angle measuring apparatus comprising: the angle measuring device comprises a memory, a processor and an angle measuring program which is stored on the memory and can run on the processor, wherein the angle measuring program realizes the steps of the angle measuring method according to any one of the technical schemes when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, wherein an angle measurement program is stored on the computer readable storage medium, and when the angle measurement program is executed by a processor, the method of measuring an angle according to any one of the above technical solutions is implemented.
According to the angle measuring method provided by the embodiment of the invention, the workpiece model and the magnetic table model are obtained, wherein the workpiece model is a three-dimensional model of a workpiece, the magnetic table model is a three-dimensional model of a magnetic table, the workpiece model is provided with a composite angle and a first surface, the first surface is an inclined surface forming the composite angle, then the constraint relation between the workpiece model and the magnetic table model is determined, and the sub-angle of the first surface is measured according to the constraint relation between the workpiece model and the magnetic table model.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating an angle measuring method according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart of step S30 in FIG. 2;
FIG. 4 is a schematic flow chart illustrating an angle measuring method according to another embodiment of the present invention;
FIG. 5 is a schematic diagram of a workpiece model according to an embodiment of the invention;
FIG. 6 is a schematic diagram of a magnetic stage model according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram illustrating a constraint relationship between a workpiece model and a magnetic table model according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a constraint relationship between a workpiece model and a stage model according to another embodiment of the present invention.
The reference numbers illustrate:
reference numerals Name (R) Reference numerals Name (R)
1 Workpiece model 11 First side
12 Second surface 13 Third side
14 Fourth surface 15 Fifth surface
2 Magnetic table model 21 Base seat
22 Suction cup 23 Rotating shaft
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: acquiring a workpiece model and a magnetic table model, wherein the workpiece model is a three-dimensional model of a workpiece, the magnetic table model is a three-dimensional model of a magnetic table, the workpiece model is provided with a compound angle and a first surface, and the first surface is an inclined surface forming the compound angle; determining a constraint relation between a workpiece model and a magnetic table model; and measuring the sub-angle of the first surface according to the constraint relation between the workpiece model and the magnetic table model.
Because the existing example technology obtains each sub-angle of the composite angle by using a calculation formula of the composite angle and a geometric method, the requirement on the geometric calculation level of an operator is high, the calculation difficulty of each sub-angle of the composite angle is high, and calculation errors are easy to occur.
The invention provides a solution, wherein a workpiece model and a magnetic table model are obtained, the workpiece model is a three-dimensional model of a workpiece, the magnetic table model is a three-dimensional model of a magnetic table, the workpiece model is provided with a compound angle and a first surface, the first surface is an inclined surface forming the compound angle, then the constraint relation between the workpiece model and the magnetic table model is determined, the sub-angle of the first surface is measured according to the constraint relation between the workpiece model and the magnetic table model, and the sub-angle of the compound angle can be directly obtained through measurement without calculation, so that the difficulty in obtaining the sub-angle of the compound angle is reduced, and the probability of errors in obtaining the sub-angle of the compound angle is reduced.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be terminal equipment with a display function, such as a smart phone, a tablet computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an angle measurement program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the angle measurement program stored in the memory 1005 and perform the following operations:
acquiring a workpiece model and a magnetic table model, wherein the workpiece model is a three-dimensional model of a workpiece, the magnetic table model is a three-dimensional model of a magnetic table, the workpiece model is provided with a compound angle and a first surface, and the first surface is an inclined surface forming the compound angle;
determining a constraint relation between the workpiece model and the magnetic table model;
and measuring the sub-angle of the first surface according to the constraint relation between the workpiece model and the magnetic table model.
Further, the processor 1001 may call an angle measurement program stored in the memory 1005, and also perform the following operations:
determining a contact constraint of the fifth face with the suction cup.
Further, the processor 1001 may call an angle measurement program stored in the memory 1005, and also perform the following operations:
determining a parallel constraint of the first face to the base;
measuring an angle between the suction cup and the base;
and determining the sub-angle of the first surface according to the angle between the sucker and the base.
Further, the processor 1001 may call an angle measurement program stored in the memory 1005, and also perform the following operations:
measuring an angle between the second face and an edge of the magnetic table model;
and determining the sub-angle of the first surface according to the angle between the second surface and the edge of the magnetic table model.
Further, the processor 1001 may call an angle measurement program stored in the memory 1005, and also perform the following operations:
determining a reference coordinate system and a parallel constraint of the base and an XY plane of the reference coordinate system;
rotating the sucker in a direction close to the base, wherein the rotating angle of the sucker is the angle between the sucker and the base;
measuring an angle between the second face and an X-axis or a Y-axis of the reference coordinate system;
determining a divergence angle of the first face from an angle between the second face and an X-axis or a Y-axis of the reference coordinate system.
Further, the processor 1001 may call an angle measurement program stored in the memory 1005, and also perform the following operations:
determining a reference coordinate system and a parallel constraint of the base and an XY plane of the reference coordinate system;
determining a contact constraint of the suction cup with the base;
measuring an angle between the second face and an X-axis or a Y-axis of the reference coordinate system;
determining a divergence angle of the first face from an angle between the second face and an X-axis or a Y-axis of the reference coordinate system.
Further, the processor 1001 may call an angle measurement program stored in the memory 1005, and also perform the following operations:
measuring an angle between the rotating shaft and a Y axis or an X axis of the reference coordinate system;
and determining the sub-angle of the first surface according to the angle between the rotating shaft and the Y axis or the X axis of the reference coordinate system.
Further, the processor 1001 may call an angle measurement program stored in the memory 1005, and also perform the following operations:
calling an angle measuring tool;
and measuring the sub-angle of the first surface by using the angle measuring tool.
As shown in fig. 2, a first embodiment of the present invention provides an angle measuring method including:
step S10, a workpiece model and a magnetic table model are obtained, wherein the workpiece model is a three-dimensional model of a workpiece, the magnetic table model is a three-dimensional model of a magnetic table, the workpiece model is provided with a compound angle and a first surface, and the first surface is an inclined surface forming the compound angle.
Before a workpiece is machined by a machine tool, an engineering drawing of the workpiece or a three-dimensional model of the workpiece is usually designed, and then an operator machines a blank of the workpiece by the machine tool according to the designed engineering drawing or the designed three-dimensional model of the workpiece.
When the design drawing of the workpiece is an engineering drawing, an operator can establish a three-dimensional model of the workpiece according to the engineering drawing of the workpiece, and then introduce the three-dimensional model of the workpiece into three-dimensional software, wherein the three-dimensional software can be ug (unigraphics), SolidWorks or other three-dimensional software, and the embodiment is not limited herein; when the design drawing of the workpiece is a three-dimensional model, the three-dimensional model of the workpiece can be directly imported into the three-dimensional software.
As shown in fig. 6, the magnetic table is a sine magnetic table, and includes a suction cup 22, a base 21 and a rotating shaft 23, the suction cup 22 and the base 21 are rotatably connected through the rotating shaft 23, the sine magnetic table is a device for adjusting the angle of the suction cup 22 according to a sine formula, the sine magnetic table is generally used as a tool for fixing a workpiece in machining, when fixing the workpiece, the workpiece is placed on the sine magnetic table in a certain posture, the workpiece is magnetically adsorbed by the suction cup 22 of the sine magnetic table to be fixed on the suction cup 22 of the sine magnetic table, then the posture of the workpiece is adjusted by adjusting the rotating angle of the suction cup 22 of the sine magnetic table, and after the posture of the workpiece is adjusted, the workpiece is machined by using a tool of a machine tool.
As shown in fig. 5, when a workpiece is machined, it is usually encountered that the workpiece has compound angles, each face of the workpiece is defined as a first face 11, a second face 12, a third face 13, a fourth face 14 and a fifth face 15, the first face 11 is an inclined face forming the compound angle, the second face 12, the third face 13 and the fourth face 14 are adjacent to the first face 11 and the fifth face 15 at the same time, an angle between the first face 11 and a reference system is a partial angle of the first face 11, the compound angle of the workpiece is formed by each partial angle of the first face 11, when machining is required to machine the first face 11 of the workpiece by a machine tool, the first face 11 is required to be perpendicular to a tool of the machine tool, and the tool is usually to machine the workpiece in a vertical direction, so that the first face 11 needs to be horizontally placed, it is required to calculate each partial angle of the first face 11, so as to adjust the magnetic table according to each partial angle, so that the first face 11 is horizontally placed, for example, when a rectangular groove is machined on the first surface 11, the first surface 11 of the workpiece is leveled by adjusting the magnetic table, and then the machining is performed on the first surface 11 according to the size of the rectangular groove.
The magnetic table is a tool for fixing the workpiece and adjusting the posture of the workpiece, so that part of the partial angle of the first surface 11 needs to be parallel to the horizontal plane by using the magnetic table as a reference object, as shown in fig. 5, the angle between the first surface 11 and the fifth surface 15 and the angle between the first surface 11 and the second surface 12 both affect whether the first surface 11 is parallel to the horizontal plane, so that the magnetic table is needed to be used as a reference object, and the machine tool generally determines the processing position of the workpiece by using coordinates, so that each partial angle of the first surface 11 can be used as a reference object by using the coordinates of the machine tool, on the basis, a three-dimensional model of the magnetic table is established by referring to the magnetic table, and the magnetic table model 2 is introduced into three-dimensional software, so that the workpiece model 1 and the magnetic table model 2 are in the same three-dimensional software, that the magnetic table model 2 and the workpiece model 1 can be corresponding to the actual processing scene of the workpiece.
It should be understood that, for the convenience of description, the definition of each surface of the workpiece is the same as that of each surface of the workpiece model, the definition of each component of the magnetic table is the same as that of each component of the magnetic table model, so as to avoid repeated definitions, the workpiece model 1 and the magnetic table model 2 are introduced into the same three-dimensional software for understanding, and the cube in which the workpiece and the magnetic table are regular is taken as an example for describing, so as to list all the embodiments of the present invention.
And step S20, determining the constraint relation between the workpiece model and the magnetic table model.
After the workpiece model and the magnetic table model are imported into the same three-dimensional software, the constraint relation between the workpiece model and the magnetic table model is determined, so that the sub-angle of the first surface is indirectly measured through the magnetic table.
As shown in fig. 6 and 7, the magnetic table model 2 includes a suction cup 22, a base 21 and a rotating shaft 23, the suction cup 22 and the base 21 are rotatably connected through the rotating shaft 23, and the fifth surface 15 of the workpiece is usually placed on the suction cup 22 so that the first surface 11 of the workpiece can be horizontally placed, and therefore the contact constraint of the fifth surface 15 and the suction cup 22 is determined.
In the present embodiment, to determine whether the fifth surface 15 of the workpiece model 1 and the suction pad 22 of the stage model 2 have the contact constraint, if not, the contact constraint between the fifth surface 15 and the suction pad 22 is established, and if the fifth surface 15 and the suction pad 22 already have the contact constraint, the partial angle of the first surface 11 may be indirectly measured through the stage model 2.
And step S30, measuring the sub-angle of the first surface according to the constraint relation between the workpiece model and the magnetic table model.
When an angle measurement instruction input by a user is received, calling an angle measurement tool, then selecting two objects to be measured for angles according to the instruction input by the user, and directly measuring the angles by using the angle measurement tool, so as to measure the sub-angles of the first surface.
As shown in fig. 3, after determining the contact constraint between the fifth surface of the workpiece model and the chuck of the stage model, step S30 is performed to measure the angle of the first surface according to the constraint relationship between the workpiece model and the stage model, and step S30 includes:
step S31, determining the parallel constraint of the first surface and the base;
step S32, measuring the angle between the sucker and the base;
and step S33, determining the sub-angle of the first surface according to the angle between the sucker and the base.
As shown in fig. 7, it is determined whether there is a parallel constraint between the first surface 11 of the workpiece model 1 and the base 21 of the stage model 2, and if there is a parallel constraint between the first surface 11 and the base 21, it is described that the first surface 11 of the workpiece is parallel to the horizontal plane, and then an angle between the suction cup 22 of the stage model 2 and the base 21 is measured to take the angle between the suction cup 22 and the base 21 as an angle between the first surface 11 and the base 21, where the angle between the first surface 11 and the base 21 is one of the sub-angles of the first surface 11.
When a workpiece is machined, the workpiece is placed on the suction cup 22 of the magnetic table, the suction cup 22 magnetically adsorbs the fifth surface 15 of the workpiece, the second surface 12 of the workpiece is parallel to the side length of the edge of the suction cup 22 of the magnetic table, then the suction cup 22 is lifted, the lifting angle of the suction cup 22 is the measured angle between the first surface 11 and the base 21, and after the suction cup 22 is lifted, the first surface 11 of the workpiece is parallel to the horizontal plane, so that the first surface 11 can be machined.
In the present embodiment, since only one of the partial angles of the first surface 11, that is, the angle between the first surface 11 and the base 21 is measured, the first surface 11 is perpendicular to the second surface 12 after the suction pad 22 is lifted up so that the first surface 11 is parallel to the horizontal plane, and thus the present embodiment is suitable for the case where the first surface 11 is perpendicular to the second surface 12 of the workpiece.
In the embodiment of the invention, by acquiring the workpiece model 1 and the magnetic table model 2, wherein the workpiece model 1 is a three-dimensional model of a workpiece, the magnetic table model 2 is a three-dimensional model of a magnetic table, the workpiece model 1 is provided with a compound angle and a first surface 11, the first surface 11 is an inclined surface forming the compound angle, then determining the constraint relation between the workpiece model 1 and the magnetic table model 2, and measuring the partial angle of the first surface 11 according to the constraint relation between the workpiece model 1 and the magnetic table model 2, the partial angle of the compound angle can be directly obtained through measurement without calculation, so that the acquisition difficulty of the partial angle of the compound angle is reduced, and the probability of errors in the partial angle for acquiring the compound angle is reduced.
In the second embodiment, based on the first embodiment, after determining the parallel constraint of the first surface and the base at step S31, the angle between the second surface and the edge of the model of the magnetic table is measured as the angle between the first surface and the side of the chuck as the sub-angle of the first surface, and the angle between the first surface and the side of the chuck is the other sub-angle of the first surface.
As shown in fig. 7, after the angle between the first surface 11 and the side surface of the suction cup 22 is measured, the workpiece may be placed on the suction cup 22 of the magnetic table such that the angle between the second surface 12 of the workpiece and the side surface of the suction cup 22 is an angle between the first surface 11 and the side surface of the suction cup 22 to determine the placement posture of the workpiece on the suction cup 22 of the magnetic table, and after the angle between the first surface 11 and the base 21 is measured, the suction cup 22 may be lifted such that the angle between the first surface 11 and the base 21 is an angle, thereby making the first surface 11 of the workpiece parallel to the horizontal plane to process the first surface 11.
As shown in fig. 4, in the third embodiment, based on the first embodiment, after the step of measuring the angle between the suction cup and the base, the step S30 further includes:
step S34, the reference coordinate system and the parallel constraints of the base and the XY plane of the reference coordinate system are determined.
As shown in fig. 7 and 8, a reference coordinate system is determined in the three-dimensional software to correspond the reference coordinate system to the coordinate system of machine tool machining, and then the magnetic table model 2 and the reference coordinate system are set up in a constraint relationship so that the magnetic table model 2 indirectly corresponds to the coordinate system of machine tool machining through the reference coordinate system, and normally, the XY plane of the coordinate system of machine tool machining is parallel to the horizontal plane, and therefore, it is determined whether or not there is a parallel constraint between the base 21 of the magnetic table model 2 and the XY plane of the reference coordinate system, and if not, a parallel constraint between the base 21 of the magnetic table model 2 and the XY plane of the reference coordinate system is set up to correspond the base 21 to the horizontal plane.
It should be understood that, in this embodiment, the parallel constraint between the base and the XY plane is determined as an example, and of course, a constraint relationship between the base and another coordinate plane of the reference coordinate system may also be established.
And step S35, rotating the sucker in the direction close to the base, wherein the rotating angle of the sucker is the angle between the sucker and the base.
As shown in fig. 7, the suction cup 22 is rotated toward the base 21 by taking the angle between the suction cup 22 and the base 21 as a rotation angle, so that the fifth surface 15 is parallel to the X-axis or Y-axis of the reference coordinate system, thereby facilitating the measurement of the angle between the second surface 12 and the X-axis or Y-axis of the reference coordinate system.
Step S36, an angle between the second surface and the X-axis or Y-axis of the reference coordinate system is measured.
As shown in fig. 7, since the coordinate system of the machine tool is usually not changed, the angle between the second surface 12 and the X-axis or the Y-axis of the reference coordinate system is measured, and the second surface 12 can be directly related to the reference coordinate system, so as to avoid that the angle between the second surface 12 and the magnetic table model 2 is measured by the magnetic table model 2, which affects the measurement accuracy of the sub-angle of the first surface 11.
In step S37, the sub-angle of the first surface is determined according to the angle between the second surface and the X-axis or Y-axis of the reference coordinate system.
As shown in fig. 7, after the angle between the second surface 12 and the X-axis or Y-axis of the reference coordinate system is measured, the angle between the second surface 12 and the X-axis or Y-axis of the reference coordinate system is taken as the angle between the first surface 11 and the X-axis or Y-axis of the reference coordinate system, and the angle between the first surface 11 and the X-axis or Y-axis of the reference coordinate system is taken as another sub-angle of the first surface 11.
The mounting posture of the workpiece on the suction cup 22 can be determined by measuring the angle between the second surface 12 and the X-axis or Y-axis of the reference coordinate system, and then the suction cup 22 is lifted up by the angle between the suction cup 22 and the base 21, so that the first surface 11 of the workpiece model 1 can be made parallel to the XY-plane of the reference coordinate system, i.e., the first surface 11 of the workpiece is made parallel to the horizontal plane, to process the first surface 11 of the workpiece.
In a fourth embodiment, based on the first embodiment, after the step of measuring the angle between the chuck and the base, the reference coordinate system and the parallel constraint of the base and the XY plane of the reference coordinate system are determined, then the contact constraint of the chuck and the base is determined, and then the angle between the second surface and the X-axis or the Y-axis of the reference coordinate system is measured to determine the component angle of the first surface according to the angle between the second surface and the X-axis or the Y-axis of the reference coordinate system.
Compared with the third embodiment, in the third embodiment, the step of rotating the suction cup in the direction close to the base is the same as that of the step of determining the contact constraint between the suction cup and the base in the present embodiment, that is, in the third embodiment, the suction cup is rotated in the direction close to the base, and the rotation angle of the suction cup is the angle between the suction cup and the base, that is, the suction cup can be in contact with the base.
In a fifth embodiment, based on the first, second, third or fourth embodiment, after the step of determining the parallel constraint of the first face and the base, an angle between the rotation axis and a Y-axis or an X-axis of the reference coordinate system is measured, and the divisional angle of the first face is determined according to the angle between the rotation axis and the Y-axis or the X-axis of the reference coordinate system.
As shown in fig. 7 and 8, the angle between the rotation shaft 23 and the Y-axis or X-axis of the reference coordinate system is measured, the angle between the rotation shaft 23 and the Y-axis or X-axis of the reference coordinate system is taken as the angle between the first surface 11 and the Y-axis or X-axis of the reference coordinate system, and the angle between the first surface 11 and the Y-axis or X-axis of the reference coordinate system is taken as another sub-angle of the first surface 11.
After measuring the angle between the rotating shaft 23 and the Y axis or the X axis of the reference coordinate system, under the condition that the first surface 11 of the workpiece is parallel to the horizontal plane, the magnetic table is rotated by taking the Z axis of the machine tool as a rotation center, and the angle between the rotating shaft 23 and the Y axis or the X axis of the reference coordinate system is rotated, so that the tool can machine on the corresponding position of the first surface 11 which is programmed in advance, and the machining path of the tool is prevented from deviating from the position which is programmed in advance, and the position deviation degree of the groove machined on the first surface 11 is avoided to be large.
In general, in order to simplify the operation difficulty, the magnetic table is rotated so that the rotating shaft 23 of the magnetic table is parallel to the X axis or the Y axis of the machine tool, and the rotating angle is the angle between the rotating shaft 23 and the Y axis or the X axis of the reference coordinate system.
In addition, an embodiment of the present invention further provides an angle measuring apparatus, where the angle measuring apparatus includes: the angle measuring device comprises a memory, a processor and an angle measuring program stored on the memory and capable of running on the processor, wherein the angle measuring program is executed by the processor to realize the steps of the angle measuring method according to any one of the embodiments.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where an angle measurement program is stored, and the angle measurement program, when executed by a processor, implements the steps of the angle measurement method according to any of the above embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An angle measuring method, characterized by comprising the steps of:
acquiring a workpiece model and a magnetic table model, wherein the workpiece model is a three-dimensional model of a workpiece, the magnetic table model is a three-dimensional model of a magnetic table, the workpiece model is provided with a compound angle and a first surface, and the first surface is an inclined surface forming the compound angle;
determining a constraint relation between the workpiece model and the magnetic table model;
and measuring the sub-angle of the first surface according to the constraint relation between the workpiece model and the magnetic table model.
2. The angle measurement method of claim 1, wherein the workpiece model further has a second face, a third face, a fourth face, and a fifth face, the second face, the third face, and the fourth face being adjacent to both the first face and the fifth face, the stage model includes a chuck, a base, and a spindle, the chuck and the base being rotatably coupled by the spindle, the step of determining the constraint relationship of the workpiece model to the stage model includes:
determining a contact constraint of the fifth face with the suction cup.
3. The angle measurement method of claim 2, wherein after the step of determining the contact constraint of the fifth surface with the chuck, the step of measuring the angle of divergence of the first surface according to the constraint relationship of the workpiece model and the stage model comprises:
determining a parallel constraint of the first face to the base;
measuring an angle between the suction cup and the base;
and determining the sub-angle of the first surface according to the angle between the sucker and the base.
4. The angle measurement method of claim 3, wherein after the step of determining the parallel constraint of the first face to the base, the step of measuring the angle of divergence of the first face according to the constrained relationship of the workpiece model and the stage model further comprises:
measuring an angle between the second face and an edge of the magnetic table model;
and determining the sub-angle of the first surface according to the angle between the second surface and the edge of the magnetic table model.
5. The angle measurement method of claim 3, wherein after the step of measuring the angle between the chuck and the base, the step of measuring the sub-angle of the first face according to the constrained relationship of the workpiece model and the stage model further comprises:
determining a reference coordinate system and a parallel constraint of the base and an XY plane of the reference coordinate system;
rotating the sucker in a direction close to the base, wherein the rotating angle of the sucker is the angle between the sucker and the base;
measuring an angle between the second face and an X-axis or a Y-axis of the reference coordinate system;
determining a divergence angle of the first face from an angle between the second face and an X-axis or a Y-axis of the reference coordinate system.
6. The angle measurement method of claim 3, wherein after the step of measuring the angle between the chuck and the base, the step of measuring the sub-angle of the first face according to the constrained relationship of the workpiece model and the stage model further comprises:
determining a reference coordinate system and a parallel constraint of the base and an XY plane of the reference coordinate system;
determining a contact constraint of the suction cup with the base;
measuring an angle between the second face and an X-axis or a Y-axis of the reference coordinate system;
determining a divergence angle of the first face from an angle between the second face and an X-axis or a Y-axis of the reference coordinate system.
7. The angle measurement method of claim 5 or 6, wherein after the step of determining the parallel constraint of the first face to the base, the step of measuring the sub-angle of the first face according to the constrained relationship of the workpiece model and the stage model further comprises:
measuring an angle between the rotating shaft and a Y axis or an X axis of the reference coordinate system;
and determining the sub-angle of the first surface according to the angle between the rotating shaft and the Y axis or the X axis of the reference coordinate system.
8. The angle measuring method of claim 1, wherein the step of measuring the partial angle of the first face based on the constrained relationship of the workpiece model and the stage model comprises:
calling an angle measuring tool;
and measuring the sub-angle of the first surface by using the angle measuring tool.
9. An angle measuring device, characterized in that the angle measuring device comprises: memory, a processor and an angle measurement program stored on the memory and executable on the processor, the angle measurement program when executed by the processor implementing the steps of the angle measurement method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an angle measurement program which, when executed by a processor, implements the steps of the angle measurement method according to any one of claims 1 to 8.
CN202111168597.7A 2021-09-30 2021-09-30 Angle measurement method, angle measurement device and computer readable storage medium Active CN113983995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111168597.7A CN113983995B (en) 2021-09-30 2021-09-30 Angle measurement method, angle measurement device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111168597.7A CN113983995B (en) 2021-09-30 2021-09-30 Angle measurement method, angle measurement device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113983995A true CN113983995A (en) 2022-01-28
CN113983995B CN113983995B (en) 2024-07-02

Family

ID=79737619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111168597.7A Active CN113983995B (en) 2021-09-30 2021-09-30 Angle measurement method, angle measurement device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113983995B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6362640A (en) * 1986-08-29 1988-03-18 Mazda Motor Corp Machining method of three-dimensional profile
JP2006072673A (en) * 2004-09-01 2006-03-16 Kobe Steel Ltd Positioner setting method for welding robot
JP2006190228A (en) * 2005-01-07 2006-07-20 Kobe Steel Ltd Operation program creating method
WO2009038465A1 (en) * 2007-09-17 2009-03-26 Conoptica As Rotating part position and change finding method and apparatus
US20150068272A1 (en) * 2012-04-17 2015-03-12 Makino Milling Machine Co., Ltd. Interference determination method and interference determination device for machine tool
CN108573088A (en) * 2017-03-09 2018-09-25 发那科株式会社 Fixture Design assistant device and robot simulation apparatus
US20190077016A1 (en) * 2017-09-12 2019-03-14 Fanuc Corporation Programming device for welding robot and programming method for welding robot
JP2020110922A (en) * 2016-06-28 2020-07-27 株式会社小松製作所 Grinding device, work-piece manufacturing method, and grinding system
CN112556625A (en) * 2020-12-08 2021-03-26 安徽江淮汽车集团股份有限公司 Method, device and equipment for measuring angle of hub mounting surface and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6362640A (en) * 1986-08-29 1988-03-18 Mazda Motor Corp Machining method of three-dimensional profile
JP2006072673A (en) * 2004-09-01 2006-03-16 Kobe Steel Ltd Positioner setting method for welding robot
JP2006190228A (en) * 2005-01-07 2006-07-20 Kobe Steel Ltd Operation program creating method
WO2009038465A1 (en) * 2007-09-17 2009-03-26 Conoptica As Rotating part position and change finding method and apparatus
CN101842188A (en) * 2007-09-17 2010-09-22 科诺普提卡股份有限公司 Rotating part position and change finding method and apparatus
US20150068272A1 (en) * 2012-04-17 2015-03-12 Makino Milling Machine Co., Ltd. Interference determination method and interference determination device for machine tool
JP2020110922A (en) * 2016-06-28 2020-07-27 株式会社小松製作所 Grinding device, work-piece manufacturing method, and grinding system
CN108573088A (en) * 2017-03-09 2018-09-25 发那科株式会社 Fixture Design assistant device and robot simulation apparatus
US20190077016A1 (en) * 2017-09-12 2019-03-14 Fanuc Corporation Programming device for welding robot and programming method for welding robot
CN112556625A (en) * 2020-12-08 2021-03-26 安徽江淮汽车集团股份有限公司 Method, device and equipment for measuring angle of hub mounting surface and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王中任;路清彦;刘海生;: "基于CAD模型的随机工件视觉识别和定位方法", 红外与激光工程, no. 1, 25 December 2015 (2015-12-25) *
郭建芬;秦贞明;徐井利;王丹勇;李树虎;: "基于工件三维模型的三坐标测量技术", 机械制造, no. 10, 20 October 2018 (2018-10-20) *

Also Published As

Publication number Publication date
CN113983995B (en) 2024-07-02

Similar Documents

Publication Publication Date Title
US20220319118A1 (en) Electronic device for providing indoor positioning and method therefor
CN111935468A (en) Method and device for detecting deviation of projection center and computer readable storage medium
CN113553261A (en) Software automation test method, equipment and computer readable storage medium
CN113983995A (en) Angle measuring method, device and computer readable storage medium
WO2022012365A1 (en) Robot calibration method, and device and storage medium
US20160004379A1 (en) Manipulation input device, portable information terminal, method for control of manipulation input device, and recording medium
CN114770219B (en) Method, device, equipment, storage medium and program product for automatically aligning workpiece
AU2013251335B2 (en) Calibration system for simultaneous calibration of multiple motion capture elements
CN114083800B (en) 3D printing data generation method and device of model supporting surface and storage medium
CN113238906B (en) Touch performance test method and system of curved surface display device and electronic equipment
US8245181B2 (en) Printed circuit board layout system and method thereof
US9001058B2 (en) Computer action detection
CN112598645B (en) Contour detection method, apparatus, device and storage medium
US11077561B2 (en) Method and apparatus for selecting initial point for industrial robot commissioning
CN109978309B (en) Method and device for determining working efficiency of equipment
JP2020204556A (en) Measurement device
CN111030848B (en) Automatic configuration method and device of electronic product and storage medium
CN112764864A (en) Display direction adjusting method and device
JP2003202208A (en) Image measuring device and program for measuring image
CN112148139A (en) Gesture recognition method and computer readable storage medium
CN111633470B (en) Mechanical coordinate detection method and device for product coordinate origin and computer equipment
CN115139153B (en) Method, device, equipment and storage medium for measuring workpiece in machine
CN117906529B (en) Automatic balancing method and device for inclined space plane, electronic equipment and storage medium
US11822741B2 (en) Electronic device, operation method thereof, and non-transitory storage medium
CN114741816A (en) Method, system, equipment and storage medium for placing magnetic head on magnetic carrier

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