Rotating shaft interpolation method and system based on inclination angle control
Through the rotation axis interpolation method based on tilt angle control, the problems of poor adaptability and bow height error of traditional laser processing arc chamfer programming are solved, and more efficient processing quality and efficiency are achieved.
Patent Information
- Application Number
- CN202410734937.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-15
AI Technical Summary
When traditional laser processing arc chamfering, the adaptability and flexibility of the programming method are poor, resulting in bow height error and low processing efficiency. It is impossible to directly write G code programs based on the arc size and chamfering angle.
The rotation axis interpolation method based on tilt angle control is used to obtain the forward inclination angle and side inclination angle through analytical instructions, perform interpolation operations, obtain the interpolation forward inclination angle and side inclination angle, calculate the interpolation tool axis vector and rotation axis angle, and realize variable chamfering. Arc processing.
It improves the adaptability and flexibility of processing, reduces bow height errors, and improves processing quality and efficiency.
Smart Images

Figure CN118778549A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of parts processing, and more specifically, to a rotating axis interpolation method and system based on inclination angle control. Background Art
[0002] Laser cutting is a thermal processing method that uses the high energy density of the laser beam to quickly melt or gasify metal or non-metal materials. It has high cutting efficiency, good precision, low thermal impact, and can process some difficult-to-process materials.
[0003] However, in laser processing of arc chamfers (ref. Figure 1 ) feature, the traditional process programming method will discretize the arc into small line segments and use G01 linear interpolation for processing. This programming method has the following three problems:
[0004] 1. When programming, you must rely on CAM software to generate small line segment programs. You cannot directly write G code programs based on arc size and chamfer angles, and its adaptability and flexibility are poor.
[0005] 2. Using small line segments to fit the arc will introduce bow height errors and affect processing accuracy. Figure 2 ,From the simulation processing results, it can be seen that when the ,discrete points are not dense enough, there will be obvious bow height ,error in processing, which will reduce the processing quality.
[0006] 3. Since the arc has been discretized into small line segments in the G code, the size cannot be edited directly. Therefore, it is necessary to modify the size in the CAM software and regenerate the G code program, which will reduce processing efficiency. Summary of the invention
[0007] In response to at least one defect or improvement need in the prior art, the present application provides a rotating axis interpolation method and system based on inclination angle control, which is used to overcome the above-mentioned several technical defects of the traditional process.
[0008] To achieve the above objectives, in a first aspect, the present application provides a rotation axis interpolation method based on inclination angle control, comprising:
[0009] Parse the command to obtain the front tilt angle and side tilt angle;
[0010] Performing an interpolation operation on the front caster angle and the side caster angle to obtain an interpolated front caster angle and an interpolated side caster angle corresponding to the center angle of the arc;
[0011] Rotate the arc normal vector based on the interpolation rake angle and the interpolation side rake angle to obtain an interpolation tool axis vector;
[0012] According to the machine tool structure and the interpolated tool axis vector, the rotation axis angle corresponding to the tool axis is obtained.
[0013] Furthermore, the method for obtaining the caster angle and the roll angle includes:
[0014] Obtaining the arc normal vector and the arc tangent vector according to the arc starting point, the arc center and the arc end point, and obtaining the arc tool axis vector according to the angle between the machine tool structure and the arc rotation axis;
[0015] Cross-product the arc tangent vector and the arc normal vector to obtain the arc side vector;
[0016] Projecting the arc tool axis vector to the corresponding arc side vector, and subtracting the corresponding projection vector from the arc tool axis vector to obtain the corresponding forward tilt value;
[0017] Calculate the angles between the corresponding forward tilt amounts and the arc normal vectors to obtain the corresponding forward tilt angles;
[0018] Projecting the arc tool axis vector to the corresponding arc tangent vector, and subtracting the corresponding projection vector from the arc tool axis vector to obtain the corresponding lateral inclination amount;
[0019] The corresponding roll angles are obtained by calculating the included angles between the corresponding roll amounts and the arc normal vectors.
[0020] Furthermore, the interpolation operation is performed on the caster angle and the roll angle to obtain a calculation formula for the interpolated caster angle and the interpolated roll angle corresponding to the arc center angle, including:
[0021]
[0022] Wherein, startLead represents the starting lead angle, endLead represents the ending lead angle, and the lead angle includes the starting lead angle and the ending lead angle;
[0023] startTilt represents the starting tilt angle, endTilt represents the ending tilt angle, and the tilt angle includes the starting tilt angle and the ending tilt angle;
[0024] U represents the center angle of the arc, endU represents the center angle of the end point of the arc, leadc represents the interpolation lead angle, and tiltc represents the interpolation roll angle.
[0025] Furthermore, the calculation formula for obtaining the axial quantity of the interpolation tool based on the interpolation rake angle and the interpolation side rake angle rotating arc normal vector includes:
[0026]
[0027] Among them, toolVec represents the interpolated tool axis vector; the right side of the equal sign of the formula is a column vector, the first row of the column vector represents the components of the interpolated tool axis vector on the first dimension, the second row of the column vector represents the components of the interpolated tool axis vector on the second dimension, and the third row of the column vector represents the components of the interpolated tool axis vector on the third dimension.
[0028] Furthermore, the calculation formula for obtaining the rotation axis angle corresponding to the tool axis according to the machine tool structure and the interpolated tool axis vector includes:
[0029]
[0030] Among them, toolVec0 represents the component of the interpolation tool axis vector on the first dimension, toolVec1 represents the component of the interpolation tool axis vector on the second dimension, and toolVec2 represents the component of the interpolation tool axis vector on the third dimension; A and B represent the rotation axis angles corresponding to the tool axis.
[0031] In a second aspect, the present application provides a rotary axis interpolation system based on inclination angle control, comprising:
[0032] An interpreter is used to parse the instructions and obtain the pitch angle and the roll angle;
[0033] An interpolator, used to perform an interpolation operation on the lead angle and the roll angle to obtain an interpolated lead angle and an interpolated roll angle corresponding to the center angle of the arc;
[0034] Used to rotate the arc normal vector based on the interpolation rake angle and the interpolation roll angle to obtain the interpolation tool axis vector;
[0035] It is also used to obtain the rotation axis angle corresponding to the tool axis according to the machine tool structure and the interpolated tool axis vector.
[0036] Furthermore, the method for obtaining the caster angle and the roll angle includes:
[0037] Obtaining the arc normal vector and the arc tangent vector according to the arc starting point, the arc center and the arc end point, and obtaining the arc tool axis vector according to the angle between the machine tool structure and the arc rotation axis;
[0038] Cross-product the arc tangent vector and the arc normal vector to obtain the arc side vector;
[0039] Projecting the arc tool axis vector to the corresponding arc side vector, and subtracting the corresponding projection vector from the arc tool axis vector to obtain the corresponding forward tilt value;
[0040] Calculate the angles between the corresponding forward tilt amounts and the arc normal vectors to obtain the corresponding forward tilt angles;
[0041] Projecting the circular arc tool axis vector to the corresponding circular arc tangent vector, and subtracting the corresponding projection vector from the circular arc tool axis vector to obtain the corresponding lateral inclination amount;
[0042] The corresponding roll angles are obtained by calculating the included angles between the corresponding roll amounts and the arc normal vectors.
[0043] Furthermore, the interpolation operation is performed on the caster angle and the roll angle to obtain a calculation formula for the interpolated caster angle and the interpolated roll angle corresponding to the arc center angle, including:
[0044]
[0045]
[0046] Wherein, startLead represents the starting lead angle, endLead represents the ending lead angle, and the lead angle includes the starting lead angle and the ending lead angle;
[0047] endTilt represents the starting point roll angle, and endTilt represents the ending point roll angle, wherein the roll angle includes the starting point roll angle and the ending point roll angle;
[0048] U represents the center angle of the arc, endU represents the center angle of the end point of the arc, leadc represents the interpolation lead angle, and tiltc represents the interpolation roll angle.
[0049] Furthermore, the calculation formula for obtaining the axial quantity of the interpolation tool based on the interpolation rake angle and the interpolation side rake angle rotating arc normal vector includes:
[0050]
[0051] Among them, toolVec represents the interpolated tool axis vector; the right side of the equal sign of the formula is a column vector, the first row of the column vector represents the components of the interpolated tool axis vector on the first dimension, the second row of the column vector represents the components of the interpolated tool axis vector on the second dimension, and the third row of the column vector represents the components of the interpolated tool axis vector on the third dimension.
[0052] Furthermore, the calculation formula for obtaining the rotation axis angle corresponding to the tool axis according to the machine tool structure and the interpolated tool axis vector includes:
[0053]
[0054] Among them, toolVec0 represents the component of the interpolation tool axis vector on the first dimension, toolVec1 represents the component of the interpolation tool axis vector on the second dimension, and toolVec2 represents the component of the interpolation tool axis vector on the third dimension; A and B represent the rotation axis angles corresponding to the tool axis.
[0055] In general, the above technical solutions conceived by the present application can achieve the following beneficial effects compared with the prior art:
[0056] The present application interpolates the rake angle and the roll angle to interpolate the rotation axis angle corresponding to the tool axis, thereby realizing the process of variable chamfer arc processing. This overcomes the technical defects of traditional processes that must rely on CAM software to generate small line segment programs and cannot directly write G code programs according to the arc size and chamfer angle, that fitting the arc with small line segments will introduce bow height errors and thus affect the processing accuracy, and that the arc is discretized into small line segments, and the size cannot be directly edited, and it is necessary to modify the size in the CAM software and regenerate the G code program. This enhances the adaptability and flexibility during processing and improves the processing quality and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1 It is a state diagram of arc chamfering processing in the prior art;
[0059] Figure 2 It is a structural schematic diagram of arc chamfer simulation processing results when the discrete points are not dense enough in the prior art;
[0060] Figure 3 A core flow chart of a rotary axis interpolation method based on inclination angle control provided in an embodiment of the present application;
[0061] Figure 4 A schematic diagram of the positional relationship between the tool axis and the rake angle and the side rake angle provided in the embodiment of the present application;
[0062] Figure 5 A block diagram of an electronic device suitable for implementing the method described above provided in an embodiment of the present application. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.
[0064] The terms "first", "second" or "third" etc. in the specification, claims or the above-mentioned drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0065] In order to solve the three problems of the traditional process programming method mentioned in the background technology section, refer to Figure 3 An embodiment of the present application provides a rotation axis interpolation method based on inclination angle control, which can quickly generate G code instructions suitable for chamfering arc processing.
[0066] refer to Figure 4 The "rake angle" defines the angle of the tool's forward or backward tilt along the "tool path", and the "roll angle" defines the angle of the tool from one side to the other. The process of machining a chamfered arc is a process in which the rake angle is fixed to 0 and the roll angle is fixed to the chamfer angle. If the arc being machined has a uniformly changing chamfer angle, that is, a variable chamfer arc, the rake angle is fixed to 0 during the machining process, and the roll angle changes uniformly.
[0067] If you want to design an interpolation method to achieve variable chamfer arc processing, you need to interpolate the rake angle and roll angle, calculate the tool axis of the current cycle based on the rake angle and roll angle data obtained by interpolation in each cycle and the current arc tangent vector and arc normal vector, and then calculate the rotation axis angle corresponding to the tool axis based on the machine tool structure.
[0068] A rotating axis interpolation method based on inclination angle control provided by an embodiment of the present application may mainly include the following steps.
[0069] Step 1: Analyze the command and obtain the caster angle and roll angle.
[0070] Specifically, step 1 may include the following sub-steps.
[0071] Step 11, calculate the arc normal vector, arc starting point tangent vector and arc end point tangent vector according to the arc starting point, arc center and arc end point; calculate the arc starting point and end point tool axis vectors according to the machine tool structure and the arc starting point and end point rotation axis angles.
[0072] Specifically, the current position is X0 Y0 Z0 A-45 B0, and the input G code command is G02.5 X10 Y10 I10 A0B-45. By parsing the G code command, we can get the coordinates of the arc start point (X0, Y0, Z0), the coordinates of the arc end point (X10, Y10, Z0) and the coordinates of the arc center (X10, Y0, Z0).
[0073] The calculated arc normal vector is [0,0,1], the arc start tangent vector is [0,-1,0], the arc end tangent vector is [-1,0,0], and the arc start tool axis vector is The tool axis vector at the end point of the arc is
[0074] Step 12: obtain the side vector of the starting point of the arc by cross-producting the tangent vector of the starting point of the arc with the normal vector of the starting point of the arc; obtain the side vector of the end point of the arc by cross-producting the tangent vector of the end point of the arc with the normal vector of the end point of the arc.
[0075] Specifically, the side vector of the arc start point is calculated as: [0,-1,0]×[0,0,1]=[-1,0,0], and the side vector of the arc end point is calculated as: [-1,0,0]×[0,0,1]=[0,1,0].
[0076] Step 13: Project the arc tool axis vector to the corresponding arc side vector, and subtract the corresponding projection vector from the arc tool axis vector to obtain the corresponding forward tilt value.
[0077] Specifically, calculate the forward inclination of the arc starting point: After normalization, it is [0,0,1].
[0078] Calculate the forward inclination of the arc end point: After normalization, it is [0,0,1].
[0079] Step 14: calculate the angles between the corresponding forward inclination values and the arc normal vectors to obtain the corresponding forward inclination angles.
[0080] Specifically, the starting point inclination angle of the arc (abbreviated as starting point inclination angle) is calculated: arccos([0,0,1]·[0,0,1])=0°.
[0081] Calculate the arc endpoint inclination angle (abbreviated as: endpoint inclination angle): arccos([0,0,1]·[0,0,1])=0°.
[0082] Step 15: Similarly, project the arc tool axis vector to the corresponding arc tangent vector, and subtract the corresponding projection vector from the arc tool axis vector to obtain the corresponding lateral inclination value.
[0083] Specifically, calculate the lateral inclination of the arc starting point:
[0084] Calculate the lateral inclination of the arc end point:
[0085] Step 16: calculate the angles between the corresponding roll values and the arc normal vectors to obtain the corresponding roll angles.
[0086] Specifically, calculate the arc starting point roll angle (abbreviated as: starting point roll angle):
[0087] Calculate the arc end point inclination angle (abbreviated as: end point inclination angle):
[0088] Step 2: Derivative the arc parametric equation to obtain the tangent vector, side vector and other data corresponding to parameter U.
[0089] Includes formula:
[0090]
[0091] The arc parameter equation is in the form of: x=a+r*cosθ, y=b+r*sinθ, where (a, b) are the coordinates of the arc center, r is the radius of the arc, θ is the central angle of the arc, and (x, y) are the coordinates of the point on the arc.
[0092] U represents the center angle of the arc, startAng represents the starting center angle of the arc, and Vec is the abbreviation of Vector, which represents a vector. The right side of the equal sign in formula (1) is actually a column vector, and each row corresponds to the components of the X, Y, and Z axes. In fact, there is also a side vector calculation at the beginning, because it is the same as the previous instruction analysis part (the arc tangent vector and the arc normal vector are cross-multiplied to obtain the arc side vector), which is the tangent vector × normal vector, so it will not be repeated here.
[0093] Step 3: interpolate the front and side angles obtained by the analysis in step 1 to obtain the interpolated front and side angles corresponding to the arc center angle. Specifically, use linear interpolation to calculate the interpolated front and side angles corresponding to the arc center angle U.
[0094] The calculation formula includes:
[0095]
[0096] Wherein, startLead indicates the starting lead angle, endLead indicates the ending lead angle, and the lead angle includes the starting lead angle and the ending lead angle. startTilt indicates the starting side tilt angle, and endTilt indicates the ending side tilt angle, and the side tilt angle includes the starting side tilt angle and the ending side tilt angle.
[0097] U represents the arc center angle, endU represents the arc end center angle, leadc represents the interpolation lead angle, and tiltc represents the interpolation side tilt angle. Because the value range of U is 0 to the arc center angle, the denominator of the right side of formula (2) and formula (3) is actually endU-startU, but the initial value of startU is 0, so the denominator of the right side of formula (2) and formula (3) only retains endU.
[0098] Step 4: Rotate the arc normal vector based on the interpolation rake angle and the interpolation roll angle to obtain the interpolation tool axis vector.
[0099] The calculation formula includes:
[0100]
[0101] Wherein, toolVec represents the interpolation tool axis vector; the right side of the equal sign of formula (4) is a column vector, the first row of the column vector represents the component of the interpolation tool axis vector on the X-axis, the second row of the column vector represents the component of the interpolation tool axis vector on the Y-axis, and the third row of the column vector represents the component of the interpolation tool axis vector on the Z-axis.
[0102] The interpolation process itself is equivalent to the split command. Take the interpolation process of the command with only the roll angle change as an example:
[0103] Assume that the starting forward tilt angle is 0° and the starting side tilt angle is 0°.
[0104] The final tilt angle is 0°, and the final tilt angle is 45°. (Only the tilt angle is 0-45°)
[0105] U is the independent variable of the parametric equation. In the design of this instruction, its physical meaning is the center angle of the arc. Assume that the arc of this instruction is a 1 / 4 arc with a center angle of 90°, that is, the range of U is also 0°~90°. Assume that it is now evenly divided into 9 segments, that is, the values of U are 10°, 20°, 30°, ..., 90°. Using linear interpolation for the roll angle means that the roll angle and U conform to the linear function of y=a*x+b. We know that the starting and ending points of the function are (U0, roll angle 0) and (U90, roll angle 45), that is, coefficient a=0.5, bias b=0. Then the roll angle of each interpolation point can be calculated as 5°, 10°, 15°, ..., 45°.
[0106] Figure 4The diagram is a schematic diagram of the positional relationship between the tool axis and the rake angle and the side rake angle. The line with a length of 1 is the tool axis, and the other three solid lines are basis vectors. Let the Z component of the tool axis be the unknown quantity x, and the equation x can be written 2 *(1+tan(lead) 2 +tan(tilt) 2 )=1, and the tool axis vector expression can be obtained by solving the equation. Because the basis vectors at this time are the tangent vector, normal vector and side vector corresponding to the current U, the subsequent steps will find the parametric equations of the three vectors and multiply them by the tool axis components in the corresponding directions to obtain the parametric equations of the tool axis.
[0107] In fact, the result of formula (4) is the tool axis vector in the coordinate system with the side vector as the X-axis, the tangent vector as the Y-axis, and the normal vector as the Z-axis. To obtain the tool axis in the machine tool coordinate system, it is necessary to multiply it by the basis vector.
[0108] Step 5: According to the machine tool structure and the interpolated tool axis vector, obtain the rotation axis angle corresponding to the tool axis. The calculation formula for obtaining the rotation axis angle corresponding to the tool axis includes:
[0109]
[0110] Among them, toolVec0 represents the component of the interpolated tool axis vector on the X axis, toolVec1 represents the component of the interpolated tool axis vector on the Y axis, and toolVec2 represents the component of the interpolated tool axis vector on the Z axis; A and B represent the rotation axis angles corresponding to the tool axis.
[0111] The present application interpolates the rake angle and the roll angle to interpolate the rotation axis angle corresponding to the tool axis, thereby realizing the process of variable chamfer arc processing. This overcomes the technical defects of traditional processes that must rely on CAM software to generate small line segment programs and cannot directly write G code programs according to the arc size and chamfer angle, that fitting the arc with small line segments will introduce bow height errors and thus affect the processing accuracy, and that the arc is discretized into small line segments, and the size cannot be directly edited, and it is necessary to modify the size in the CAM software and regenerate the G code program. This enhances the adaptability and flexibility during processing and improves the processing quality and efficiency.
[0112] Another embodiment of the present application also proposes a rotary axis interpolation system based on inclination angle control, which includes an interpreter and an interpolator. The interpreter and the interpolator are actually two modules of the numerical control system (specifically referring to the rotary axis interpolation system based on inclination angle control in the present application). The interpreter is used to parse the G-code instructions into motion instructions, which are mainly parsed into the forward tilt angle and the side tilt angle; and the interpolator will decompose and splice the motion instructions to calculate the amount of motion per cycle. The process of decomposing the motion segment is equivalent to interpolating on the motion segment, which is the process of interpolation. The specific discussion is as follows.
[0113] The interpreter is used to parse the instructions and obtain the pitch angle and roll angle.
[0114] An interpolator is used to perform an interpolation operation on the lead angle and the roll angle to obtain an interpolated lead angle and an interpolated roll angle corresponding to the center angle of the arc.
[0115] It is used to rotate the arc normal vector based on the interpolation rake angle and the interpolation roll angle to obtain the interpolation tool axis vector.
[0116] It is also used to obtain the rotation axis angle corresponding to the tool axis according to the machine tool structure and the interpolated tool axis vector.
[0117] As for the specific technical details such as the method of obtaining the rake angle and the roll angle, interpolating the rake angle and the roll angle to obtain the interpolated rake angle and interpolated roll angle corresponding to the center angle of the arc, rotating the arc normal vector based on the interpolated rake angle and the interpolated roll angle to obtain the interpolated tool axis vector, and obtaining the rotation axis angle corresponding to the tool axis according to the machine tool structure and the interpolated tool axis vector, please refer to the previous discussion on the embodiment of the rotation axis interpolation method based on the inclination angle control, which will not be repeated here.
[0118] Figure 5 A block diagram of an electronic device suitable for implementing the method described above according to an embodiment of the present application is schematically shown. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0119] like Figure 5 As shown, the electronic device 1000 described in this embodiment includes: a processor 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. The processor 1001 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), and the like. The processor 1001 may also include an onboard memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present application.
[0120] In RAM 1003, various programs and data required for the operation of system 1000 are stored. Processor 1001, ROM 1002 and RAM 1003 are connected to each other via bus 1004. Processor 1001 performs various operations of the method flow according to the embodiment of the present application by executing the program in ROM 1002 and / or RAM 1003. It should be noted that the program can also be stored in one or more memories other than ROM 1002 and RAM 1003. Processor 1001 can also perform various operations of the method flow according to the embodiment of the present application by executing the program stored in the one or more memories.
[0121] According to an embodiment of the present application, the electronic device 1000 may further include an input / output (I / O) interface 1005, which is also connected to the bus 1004. The system 1000 may further include one or more of the following components connected to the I / O interface 1005: an input part 1006 including a keyboard, a mouse, etc.; an output part 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage part 1008 including a hard disk, etc.; and a communication part 1009 including a network interface card such as a LAN card, a modem, etc. The communication part 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that the computer program read therefrom is installed into the storage part 1008 as needed.
[0122] According to the method flow of the embodiment of the present application, it can be implemented as a computer software program. For example, the embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the processor 1001, the above-mentioned functions defined in the system of the embodiment of the present application are executed. According to the embodiment of the present application, the system, equipment, device, module and / or unit described above, etc. can be implemented by a computer program module.
[0123] The embodiments of the present application also provide a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiments of the present application is implemented.
[0124] According to an embodiment of the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present application, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present application, the computer-readable storage medium may include one or more memories other than the ROM 1002 and / or RAM 1003 described above.
[0125] It should be noted that the functional modules in the various embodiments of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product.
[0126] The flowchart and / or block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flowchart and / or block diagram can represent a part of a module, program segment or code, and a part of the above-mentioned module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0127] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the technical features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope of the present application.
[0128] Although the present application has been shown and described with reference to specific exemplary embodiments of the present application, it should be understood by those skilled in the art that various changes in form and details may be made to the present application without departing from the spirit and scope of the present application as defined by the appended claims and their equivalents. Therefore, the scope of the present application should not be limited to the above-mentioned embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.
Claims
1. A method for interpolation of rotating axes based on inclination control, It is characterized in that include: Parse the command to obtain the front tilt angle and side tilt angle; Performing an interpolation operation on the front caster angle and the side caster angle to obtain an interpolated front caster angle and an interpolated side caster angle corresponding to the center angle of the arc; Rotate the arc normal vector based on the interpolation rake angle and the interpolation side rake angle to obtain an interpolation tool axis vector; According to the machine tool structure and the interpolated tool axis vector, the rotation axis angle corresponding to the tool axis is obtained.
2. The rotary axis interpolation method according to claim 1, It is characterized in that Methods for obtaining the caster angle and the roll angle include: Obtaining the arc normal vector and the arc tangent vector according to the arc starting point, the arc center and the arc end point, and obtaining the arc tool axis vector according to the angle between the machine tool structure and the arc rotation axis; Cross-product the arc tangent vector and the arc normal vector to obtain the arc side vector; Projecting the arc tool axis vector to the corresponding arc side vector, and subtracting the corresponding projection vector from the arc tool axis vector to obtain the corresponding forward tilt value; Calculate the angles between the corresponding forward tilt amounts and the arc normal vectors to obtain the corresponding forward tilt angles; Projecting the circular arc tool axis vector to the corresponding circular arc tangent vector, and subtracting the corresponding projection vector from the circular arc tool axis vector to obtain the corresponding lateral inclination amount; The corresponding roll angles are obtained by calculating the included angles between the corresponding roll amounts and the arc normal vectors.
3. The rotary axis interpolation method according to claim 2, It is characterized in that The interpolation operation is performed on the lead angle and the roll angle to obtain the calculation formula of the interpolated lead angle and the interpolated roll angle corresponding to the arc center angle, which includes: Wherein, startLead represents the starting lead angle, endLead represents the ending lead angle, and the lead angle includes the starting lead angle and the ending lead angle; endTilt represents the starting point roll angle, and endTilt represents the ending point roll angle, wherein the roll angle includes the starting point roll angle and the ending point roll angle; U represents the center angle of the arc, endU represents the center angle of the end point of the arc, leadc represents the interpolation lead angle, and tiltc represents the interpolation roll angle.
4. The rotary axis interpolation method according to claim 3, It is characterized in that The calculation formula for obtaining the axial quantity of the interpolation tool based on the interpolation front rake angle and the interpolation side rake angle rotating arc normal vector includes: Among them, toolVec represents the interpolated tool axis vector; the right side of the equal sign of the formula is a column vector, the first row of the column vector represents the components of the interpolated tool axis vector on the first dimension, the second row of the column vector represents the components of the interpolated tool axis vector on the second dimension, and the third row of the column vector represents the components of the interpolated tool axis vector on the third dimension.
5. The rotary axis interpolation method according to claim 4, It is characterized in that The calculation formula for obtaining the rotation axis angle corresponding to the tool axis according to the machine tool structure and the interpolated tool axis vector includes: Among them, toolVec 0 Represents the component of the interpolation tool axis vector on the first axis, toolVec 1 Represents the component of the interpolation tool axis vector on the second dimension, toolVec 2 represents the component of the interpolation tool axis vector on the third axis; A and B represent the rotation axis angles corresponding to the tool axis.
6. A rotary axis interpolation system based on inclination control, It is characterized in that include: An interpreter is used to parse the instructions and obtain the pitch angle and the roll angle; An interpolator, used to perform an interpolation operation on the lead angle and the roll angle to obtain an interpolated lead angle and an interpolated roll angle corresponding to the center angle of the arc; Used to rotate the arc normal vector based on the interpolation rake angle and the interpolation roll angle to obtain the interpolation tool axis vector; It is also used to obtain the rotation axis angle corresponding to the tool axis according to the machine tool structure and the interpolated tool axis vector.
7. The rotary axis interpolation system according to claim 6, It is characterized in that Methods for obtaining the caster angle and the roll angle include: Obtaining the arc normal vector and the arc tangent vector according to the arc starting point, the arc center and the arc end point, and obtaining the arc tool axis vector according to the angle between the machine tool structure and the arc rotation axis; Cross-product the arc tangent vector and the arc normal vector to obtain the arc side vector; Projecting the arc tool axis vector to the corresponding arc side vector, and subtracting the corresponding projection vector from the arc tool axis vector to obtain the corresponding forward tilt value; Calculate the angles between the corresponding forward tilt amounts and the arc normal vectors to obtain the corresponding forward tilt angles; Projecting the circular arc tool axis vector to the corresponding circular arc tangent vector, and subtracting the corresponding projection vector from the circular arc tool axis vector to obtain the corresponding lateral inclination amount; The corresponding roll angles are obtained by calculating the included angles between the corresponding roll amounts and the arc normal vectors.
8. The rotary axis interpolation system according to claim 7, It is characterized in that The interpolation operation is performed on the lead angle and the roll angle to obtain the calculation formula of the interpolated lead angle and the interpolated roll angle corresponding to the arc center angle, which includes: Wherein, startLead represents the starting lead angle, endLead represents the ending lead angle, and the lead angle includes the starting lead angle and the ending lead angle; startTilt represents the starting tilt angle, endTilt represents the ending tilt angle, and the tilt angle includes the starting tilt angle and the ending tilt angle; U represents the center angle of the arc, endU represents the center angle of the end point of the arc, leadc represents the interpolation lead angle, and tiltc represents the interpolation roll angle.
9. The rotary axis interpolation system according to claim 8, It is characterized in that The calculation formula for obtaining the axial quantity of the interpolation tool based on the interpolation front rake angle and the interpolation side rake angle rotating arc normal vector includes: Among them, toolVec represents the interpolated tool axis vector; the right side of the equal sign of the formula is a column vector, the first row of the column vector represents the components of the interpolated tool axis vector on the first dimension, the second row of the column vector represents the components of the interpolated tool axis vector on the second dimension, and the third row of the column vector represents the components of the interpolated tool axis vector on the third dimension.
10. The rotary axis interpolation system according to claim 9, It is characterized in that The calculation formula for obtaining the rotation axis angle corresponding to the tool axis according to the machine tool structure and the interpolated tool axis vector includes: Among them, toolVec 0 Represents the component of the interpolation tool axis vector on the first axis, toolVec 1 Represents the component of the interpolation tool axis vector on the second dimension, toolVec 2 represents the component of the interpolation tool axis vector on the third axis; A and B represent the rotation axis angles corresponding to the tool axis.
