CN111624949A - Method for programming 5-axis machine tool numerical control program based on 3-axis program - Google Patents

Method for programming 5-axis machine tool numerical control program based on 3-axis program Download PDF

Info

Publication number
CN111624949A
CN111624949A CN202010493747.0A CN202010493747A CN111624949A CN 111624949 A CN111624949 A CN 111624949A CN 202010493747 A CN202010493747 A CN 202010493747A CN 111624949 A CN111624949 A CN 111624949A
Authority
CN
China
Prior art keywords
axis
program
value
machine tool
numerical control
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
CN202010493747.0A
Other languages
Chinese (zh)
Other versions
CN111624949B (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.)
Zhejiang Rifa Aviation Digital Equipment Co ltd
Original Assignee
Zhejiang Rifa Aviation Digital Equipment Co ltd
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 Zhejiang Rifa Aviation Digital Equipment Co ltd filed Critical Zhejiang Rifa Aviation Digital Equipment Co ltd
Priority to CN202010493747.0A priority Critical patent/CN111624949B/en
Publication of CN111624949A publication Critical patent/CN111624949A/en
Application granted granted Critical
Publication of CN111624949B publication Critical patent/CN111624949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4097Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by using design data to control NC machines, e.g. CAD/CAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses a method for programming a numerical control program of a 5-axis machine tool based on a 3-axis program, and belongs to the technical field of numerical control machining. The invention is suitable for pure 3-axis programs of 5-axis machine tools, ensures that the whole processing area is completely positioned in a certain area in the Y + direction by adding a proper C value behind each interpolation line, outputs all 3-axis motions in a linear interpolation mode, then adds a corresponding C value behind each linear interpolation line, ensures that the whole processing is positioned in the positive direction of the Y axis by establishing a functional relation between the C value and the X, Y value, and solves the problem of negative limit of the Y axis.

Description

Method for programming 5-axis machine tool numerical control program based on 3-axis program
Technical Field
The invention belongs to the technical field of numerical control machining, relates to a method for programming a numerical control program of a 5-axis machine tool based on a 3-axis program, and particularly relates to a technical method for solving the problem that a certain geometric axis exceeds the range during vertical drilling and milling machining of a swing head and swing table type 5-axis machining center.
Background
When a numerical control program for a 5-axis machine tool is created, machining may be impossible for a pure 3-axis program because of a certain geometrical axis limitation. In this case, the problem of the limit of a certain geometric axis can be solved by properly participating in the movement of the following axis, so that the part can be machined. However, such a program is difficult to directly implement by only a certain CAM software. By taking a turntable and a swinging head type 5-shaft vertical machining center (with an RTCP function) as an example, a machining center control system is Siemens840Dsl, a geometric shaft is X, Y, Z, a following shaft is A, C, and a certain limit is arranged in the Y-direction (the limit position in the Y-direction is assumed to be 50 away from the rotation center of a workbench). When pure 3-axis milling or drilling is performed in the A0 state, the numerical control program directly output by the CAM software through post-processing completes machining through X, Y, Z movement, and the C axis is always C0. Here, the geometric axis is output preferentially following the axis. Once the Y-direction reaches the limit position Y-50, the machine tool alarms, and the program cannot continue to run. In this case, the position of the machining portion is adjusted by the rotation of the C axis (for example, the feature of the Y-half region is shifted to the Y + half region by adding the C180 interpolation motion), so how to add the corresponding C value to each simple X, Y, Z linear interpolation line can be realized.
For a pure 3-axis program, each line of the program is X, Y, Z linear or circular interpolation, and if the problem of Y-axis negative limit is solved, each interpolation line needs to be adjusted to a certain area in the positive direction of the Y-axis or the positive direction of the Y-axis through C-axis rotation. For interpolation in the negative-going region of the Y axis, the Y + direction can be changed from Y-to Y + direction by adding a C180 at the beginning of the program. However, for interpolation across the Y-and Y + regions, it becomes difficult, if not impossible, to solve this problem by adding a fixed C value.
Disclosure of Invention
The invention aims to provide a method for programming a numerical control program of a 5-axis machine tool based on a 3-axis program, aiming at solving the technical problem of over travel of a certain geometric axis in the vertical drilling and milling process of the existing 5-axis machine tool head and swing table type 5-axis machining center.
Therefore, the invention adopts the following technical scheme: a method for programming a numerical control program of a 5-axis machine tool based on a 3-axis program comprises the following steps:
firstly, establishing a functional relation: c ═ f (X, Y), the value of C being such that each interpolated line rotates onto the Y-axis normal ray;
second, connect the coordinates (x, y) of a certain position with the origin (0, 0) of the G17 plane, let this straight line be L, L be R (R) in length2=x2+y2) L and Y axes in the forward directionThe included angle α is the angle that the C axis needs to rotate, sin α is x/R;
thirdly, according to the right-hand rule, the C value of the positive plane of the X axis is 0-180 degrees, the C value of the negative plane of the X axis is 0-180 degrees, and meanwhile, according to the monotonous interval of the inverse function of the sin function, the relation of C with X and y is established as
When x is more than or equal to 0 and y is more than or equal to 0, C is-asin (x/R)
When x is less than 0 and y is more than or equal to 0, C is-asin (x/R)
When x is less than 0 and y is less than 0, C is 180 degrees + asin (x/R)
When x is more than or equal to 0 and y is less than 0, C is-180 degrees + asin (x/R)
And converting the functions into the algorithm of CAM software post-processing to output effects.
In addition to the above technical solutions, the present invention also includes the following technical features.
For a 5-axis machine tool without an RTCP function, all X coordinates are output to be 0, and Y coordinates are output according to an R value; and force the output of 2 lines of content in front of each line:
ROT
AROT Z ═ β (β is the inverse of the C value);
the program origin must be placed in the center of the machine table.
The method also comprises the judgment conditions of the error-proof statement: if A ≠ 0 or there is a non-zero value following TRANS or AROT, an error message should be prompted or output disabled.
The invention can achieve the following beneficial effects: the invention is suitable for pure 3-axis programs (including drilling holes) of a 5-axis machine tool, ensures that the whole machining area is completely positioned in a certain area in the Y + direction by adding a proper (changed) C value behind each interpolation line, outputs all 3-axis motions in a linear interpolation mode, then adds a corresponding C value behind each linear interpolation line, ensures that the whole machining is positioned in the positive direction of the Y axis by establishing a functional relation between the C value and the X, Y value, and solves the problem of negative limit of the Y axis.
Detailed Description
First, such a functional relationship is established: c is f (X, Y), the value of C being such that eachAn interpolated line is rotated onto the Y-axis forward ray. Connecting the coordinate (x, y) of a certain position with the origin (0, 0) of the G17 plane, and setting the straight line as L and the length of L as R (R)2=x2+y2) The angle α between L and the positive direction of Y axis is the angle that C axis should rotate.
sinα=x/R
According to the right-hand rule, the C value of the positive plane of the X axis is 0 to-180 degrees, the C value of the negative plane of the X axis is 0 to 180 degrees, and meanwhile, according to the monotonous interval of the inverse function of the sin function, the relation of C with X and y is established as
When x is more than or equal to 0 and y is more than or equal to 0, C is-asin (x/R)
When x is less than 0 and y is more than or equal to 0, C is-asin (x/R)
When x is less than 0 and y is less than 0, C is 180 degrees + asin (x/R)
When x is more than or equal to 0 and y is less than 0, C is-180 degrees + asin (x/R)
In the algorithm for converting the above function into the post-processing of the CAM software, the following is the comparison of the output effect of the 3-axis milling program at the angle of A0:
Figure 1
introducing a function of f (X, Y), and outputting a result comparison table (milling) by a front NC and a rear NC
The following is a comparison of the output of the drilling program at the angle a 0:
Figure BDA0002522036560000032
introducing the function of C ═ f (X, Y), and outputting result comparison table (drilling)
The above solution is for a 5-axis machine with RTCP, then for a 5-axis machine without RTCP?
On the basis, two kinds of expansion are carried out:
firstly, outputting all X coordinates to be 0, and outputting Y coordinates according to the R value;
second, the content of 2 lines is forced to be output in front of each line:
ROT
AROT Z ═ β (β is the inverse of the C value).
Of course, for a machine tool without RTCP functionality, the program origin must be placed in the center of the machine tool table.
For a pure 3-axis program (including drilling) of a 5-axis machine tool, the above post-processing scheme is a special treatment for post-processing, so the post-processing can only be used in this case, and cannot be used in the rest of the cases. In order to make the technical scheme strict, a technical error-proofing statement needs to be added in the post-processing so as to prompt when the post-processing is wrong.
For the above-mentioned cases, whether 3-axis milling or drilling, we can generalize to a case where the a value is always zero. At the same time, we think of this problem again from the opposite perspective: is it not the case that all a values are zero, the post-processing can be used? After tests, the post-treatment can be used under the condition that all A values are zero except the condition of standard 3+2 positioning processing.
Then, the judgment condition for adding error-proof statements is as follows: if A ≠ 0 or there is a non-zero value following TRANS or AROT, an error message should be prompted or output disabled, making the overall calculation scheme very rigorous.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (3)

1. A method for programming a numerical control program of a 5-axis machine tool based on a 3-axis program is characterized by comprising the following steps of: the method for programming the numerical control program of the 5-axis machine tool based on the 3-axis program comprises the following steps of:
firstly, establishing a functional relation: c ═ f (X, Y), the value of C being such that each interpolated line rotates onto the Y-axis normal ray;
second, connect the coordinates (x, y) of a certain position with the origin (0, 0) of the G17 plane, let this straight line be L, L be R (R) in length2=x2+y2) An included angle α between the L and the Y axis is an angle to be rotated by the C axis, and sin α is x/R;
thirdly, according to the right-hand rule, the C value of the positive plane of the X axis is 0-180 degrees, the C value of the negative plane of the X axis is 0-180 degrees, and meanwhile, according to the monotonous interval of the inverse function of the sin function, the relation of C with X and y is established as
When x is more than or equal to 0 and y is more than or equal to 0, C is-asin (x/R)
When x is less than 0 and y is more than or equal to 0, C is-asin (x/R)
When x is less than 0 and y is less than 0, C is 180 degrees + asin (x/R)
When x is more than or equal to 0 and y is less than 0, C is-180 degrees + asin (x/R)
And converting the functions into the algorithm of CAM software post-processing to output effects.
2. The method for programming the numerical control of a 5-axis machine tool based on a 3-axis program according to claim 1, characterized in that: for a 5-axis machine tool without an RTCP function, all X coordinates are output to be 0, and Y coordinates are output according to an R value; and force the output of 2 lines of content in front of each line:
ROT
AROT Z ═ β (β is the inverse of the C value);
the program origin must be placed in the center of the machine table.
3. The method for programming the numerical control of a 5-axis machine tool based on a 3-axis program according to claim 2, characterized in that: the method for programming the 5-axis machine tool numerical control program based on the 3-axis program further comprises the judgment conditions of error-proof statements: if A ≠ 0 or there is a non-zero value following TRANS or AROT, an error message should be prompted or output disabled.
CN202010493747.0A 2020-06-03 2020-06-03 Method for programming numerical control program of 5-axis machine tool based on 3-axis program Active CN111624949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010493747.0A CN111624949B (en) 2020-06-03 2020-06-03 Method for programming numerical control program of 5-axis machine tool based on 3-axis program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010493747.0A CN111624949B (en) 2020-06-03 2020-06-03 Method for programming numerical control program of 5-axis machine tool based on 3-axis program

Publications (2)

Publication Number Publication Date
CN111624949A true CN111624949A (en) 2020-09-04
CN111624949B CN111624949B (en) 2024-05-17

Family

ID=72260326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010493747.0A Active CN111624949B (en) 2020-06-03 2020-06-03 Method for programming numerical control program of 5-axis machine tool based on 3-axis program

Country Status (1)

Country Link
CN (1) CN111624949B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112454003A (en) * 2020-10-14 2021-03-09 沈阳透平机械股份有限公司 Method for preventing machine tool from overtravel in machining ternary impeller by horizontal five-axis machine tool

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788804A (en) * 2009-12-29 2010-07-28 上海维宏电子科技有限公司 Method for realizing processing of five-axis machine tool system by utilizing three-axis machine tool system
CN102004467A (en) * 2010-06-27 2011-04-06 深圳市众为兴数控技术有限公司 Processing control method and system of rotary grater
CN102269984A (en) * 2011-03-17 2011-12-07 华中科技大学 Post-processing method for five-axis linked numerical control processing
CN108549319A (en) * 2018-04-02 2018-09-18 西南交通大学 A kind of double general post-processing approach of turntable five-axle number control machine tool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788804A (en) * 2009-12-29 2010-07-28 上海维宏电子科技有限公司 Method for realizing processing of five-axis machine tool system by utilizing three-axis machine tool system
CN102004467A (en) * 2010-06-27 2011-04-06 深圳市众为兴数控技术有限公司 Processing control method and system of rotary grater
CN102269984A (en) * 2011-03-17 2011-12-07 华中科技大学 Post-processing method for five-axis linked numerical control processing
CN108549319A (en) * 2018-04-02 2018-09-18 西南交通大学 A kind of double general post-processing approach of turntable five-axle number control machine tool

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112454003A (en) * 2020-10-14 2021-03-09 沈阳透平机械股份有限公司 Method for preventing machine tool from overtravel in machining ternary impeller by horizontal five-axis machine tool
CN112454003B (en) * 2020-10-14 2022-02-25 沈阳透平机械股份有限公司 Method for preventing machine tool from overtravel in machining ternary impeller by horizontal five-axis machine tool

Also Published As

Publication number Publication date
CN111624949B (en) 2024-05-17

Similar Documents

Publication Publication Date Title
JP4316850B2 (en) Machining method in complex machine tool
US10146204B2 (en) Machining method and a control device for a machine tool
CN109471408A (en) The three axis lathe geometric error compensation methods based on NC code refactoring
US20030118416A1 (en) Method for setting a machining feed rate and a machine tool using the same
CN111624949A (en) Method for programming 5-axis machine tool numerical control program based on 3-axis program
CN108549319B (en) Universal post-processing method for double-turntable five-axis numerical control machine tool
US20190271965A1 (en) Numerical controller and numerical control method
CN105302070A (en) Post-processing method for non-orthogonal swing head rotary table type five-axis machine tool
CN110851919B (en) Inclined hole machining method
CN111367237A (en) Post-processing method of non-orthogonal five-axis vertical-horizontal conversion numerical control machine tool
CN111580461A (en) Machine tool control method based on open type five-axis numerical control system RTCP algorithm
CN110412939B (en) Method for realizing tool tip following function in four-axis horizontal machining center by using macro program
CN111413924A (en) Post-processing method for non-orthogonal five-axis numerical control machine tool with universal angle head
CN107942947B (en) Numerical control machine tool circular arc machining programming method
CN106896782B (en) Generating tool axis vector method for fairing is processed based on BC type five-axle number control machine tool ball head knife
CN112578730A (en) Method for quickly converting reference coordinates in self-adaptive machining
CN116859821A (en) Post-treatment method for optimizing four-axis turning and milling composite machining track
CN107861467B (en) Four axis dead axle of endless knife processing knife position determines method, apparatus and electronic equipment
JPH0788737A (en) Five-axis working machine
CN108549323B (en) General post-processing method for five-axis numerical control tool grinding machine
JP2003005811A (en) Method and program for generating 6-axis control nc program, generating device and computer readable recording medium with the program stored therein
CN114535941A (en) Machining method of arc-shaped workpiece
JP3116129B2 (en) Processing method
Yun et al. A geometric postprocessing method for 5-axis machine tools using locations of joint points
CN109396747B (en) Workpiece machining process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant