CN104155916B - A kind of high accuracy quickly space circular arc interpolation method - Google Patents
A kind of high accuracy quickly space circular arc interpolation method Download PDFInfo
- Publication number
- CN104155916B CN104155916B CN201410339127.6A CN201410339127A CN104155916B CN 104155916 B CN104155916 B CN 104155916B CN 201410339127 A CN201410339127 A CN 201410339127A CN 104155916 B CN104155916 B CN 104155916B
- Authority
- CN
- China
- Prior art keywords
- interpolation
- circular
- circular arc
- arc
- feed speed
- 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.)
- Active
Links
Landscapes
- Complex Calculations (AREA)
- Numerical Control (AREA)
Abstract
A kind of high accuracy quickly space circular arc interpolation method, the method has six big steps: step 1, definition space circular interpolation code format;Step 2, decoding obtains space circular arc interpolation data message;Step 3, calculates the maximum adjustment of feed-rate value under circular interpolation radius, central angle, arc length and interpolation bow high level error constraint;Step 4, calculates interpolation parameters increment;Step 5, calculates interpolated point;Step 6, interpolation endpoint.This interpolating method can vow the circular interpolation in any space plane according to given circular arc starting point, terminal and circular arc planar process.
Description
Technical field
The present invention relates to a kind of high accuracy quickly space circular arc interpolation method, belong to Computerized Numerical Control processing technology field.
Background technology
Existing numerical control coefficient the most only possesses G01 space line interpolation and G02/03 two dimension circular interpolation, interpolation circular arc
Shi Bixu specifies circular interpolation plane simultaneously, i.e. XZ plane that X/Y plane that G17 code is specified, G18 code are specified or G19 code
The YZ plane specified.Therefore, space free curve is typically all separated into small space line section before processing, is formed big
Amount continuous print G01 code, digital control system uses space line interpolating method to complete adding of space free curve according to G01 code
Work.It practice, use space circular arc approximate spatial free curve can not only reduce the quantity of code in a large number, raising curve approaches essence
Degree, simultaneously can make machine tool motion more steady, it is to avoid the turning sudden change of straightway junction.Accordingly, it would be desirable to exploitation one
Interpolation precision is high, calculate fireballing space circular arc interpolation method approaches the processing mode of free curve to realize space circular arc.
Summary of the invention
The present invention is directed to problem above, it is provided that a kind of high accuracy quickly space circular arc interpolation method.This interpolating method energy
The circular interpolation in any space plane has been vowed according to given circular arc starting point, terminal and circular arc planar process.The present invention is led to
Crossing techniques below scheme to realize, Fig. 1 show interpolating method flow chart, specifically comprises the following steps that
Step 1, definition space circular interpolation code format:
Definition space circular interpolation code format of the present invention is: G02.1X (U) _ Y (V) _ Z (W) _ I_J_K_NX_NY_NZ_F
X, Y, Z are circular arc terminal absolute coordinate, and U, V, W are circular arc terminal relative coordinate (relative to starting point);
I, J, K are circular arc center of circle relative coordinate (relative to starting point);
NX, NY, NZ are that the method for circular arc plane is vowed, and specify that winding vows counterclockwise interpolation circular arc;
F is interpolation feed speed.
Step 2, decoding acquisition space circular arc interpolation data message:
The starting point making circular interpolation is (xs,ys,zs), i.e. the terminal of code the last period interpolation, for known;
If the circular interpolation code read is: G02.1Xxe Yye Zze Iic Jjc Kkc NXnx NYny NZnzFf, then
The terminal of circular interpolation is (xe,ye,ze), the center of circle is (xc,yc,zc)=(xs+ic,ys+jc,zs+kc), circular arc planar process is vowed and is
(nx,ny,nz), maximum feed speed is f;
Step 3, calculates the maximum feeding speed under circular interpolation radius, central angle, arc length and interpolation bow high level error constraint
Degree correction value: circular interpolation radius:
Circular interpolation central angle: zequin vector is Vs=(xs-xc,ys-yc,zs-zc), terminal vector is Ve=(xe-xc,
ye-yc,ze-zc), circular arc planar process is vowed as N=(nx,ny,nz), zequin vector, terminal vector are mixed with what circular arc planar process was vowed
Conjunction is amassed as (Vs,Ve, N) and=(Vs×Ve) N, if (Vs,Ve, N) and > 0, then circular interpolation central angle If
(Vs, Ve, N)≤0, then the circular interpolation center of circle
Circular interpolation arc length: L=R θ;
Maximum adjustment of feed-rate value: if the maximum interpolation bow high level error of regulation is δ, interpolation cycle is Tc, then maximum is entered
It is modified to speed
Step 4, calculating interpolation parameters increment:
If according to circular arc arc length and maximum feed speed, carrying out the feeding of the i-th interpolation cycle after feed speed planning
Speed is Vi, acceleration is Ai, acceleration is Ji, then Interpolation step-length isInterpolation parameters increases
Amount is calculated asThe three-dimensional euclidean mould that wherein | | N | | vows for circular arc planar process is long.
Step 5, calculating interpolated point:
Making current interpolated point is (xi,yi,zi), next interpolated point is (xi+1,yi+1,zi+1), it is calculated as follows:
Calculated (xi+1,yi+1,zi+1) it is interpolated point, control space circular arc interpolation by servo position.
Step 6, interpolation endpoint:
Update the residue a length of L=L-L of interpolationiIf, L > 0, then return step 4 and continue interpolation;Otherwise, interpolation terminates.
Wherein, the interpolation bow high level error related in described step 3 is that circular interpolation process interpolation track approaches circular arc and causes
Geometric error, as in figure 2 it is shown, figure cathetus section is that (actual interpolation track is the least straightway to interpolation track, is herein
Amplify result), interpolation track goes to approach when being interpolated circular arc, and the maximum deviation between interpolation track and circular arc is bow high level error,
I.e. bow high level error δ shown in figure.
Wherein, described step 4 relates to feed speed planning, for the feed speed planned according to circular interpolation arc length
Information, belongs to feed speed planning aspect, obtains the feed speed of each interpolation cycle, acceleration and acceleration etc. after planning
Information is for calculating Interpolation step-length and the interpolation parameters increment of each interpolation cycle.
Wherein, described step 5 relates to current interpolated point be known point, initial value be circular interpolation rise
Point, each interpolation cycle calculates an interpolated point.
A kind of high accuracy quickly space circular arc interpolation method that the present invention provides has the advantage that
1. Interpolation Spaces.Vow with circular arc planar process and describe circular arc place plane, the circle of space arbitrary plane can be completed
Arc interpolation;
2. interpolation uniformity.Specify to vow counterclockwise interpolation around circular arc planar process, unified the forward and reverse interpolation of circular arc, by
Circular arc plane direction of normal determines circular interpolation direction;
3. interpolation precision is high.Through theoretical validation, the interpolated point calculated by step 5 can guarantee accurate original
On circle, therefore the radial error of interpolated point is 0;
4. interpolation rate is fast.Interpolated point only has simple four arithmetic operation in calculating, and calculates in interpolation parameters increment and the most only relates to
And square root, it is to avoid the calculating of trigonometric function, therefore computational efficiency is high, and speed is fast;
5. interpolation flow process is simple.The quadrant avoiding circular interpolation judges, algorithm flow is simple, it is easy to accomplish.
Accompanying drawing explanation
Fig. 1 is interpolating method flow chart of the present invention;
Fig. 2 is that circular interpolation bends high level error schematic diagram;
Fig. 3 is to implement example interpolation result.
Symbol description:
In Fig. 2, δ represents bow high level error;
In Fig. 3, N represents that circular arc planar process is vowed;
In Fig. 3, C represents the circular arc center of circle.
Detailed description of the invention
Below in conjunction with the accompanying drawings the present invention is implemented example to elaborate.See with a full circle for interpolation object, flow chart
Fig. 1, one of the present invention high accuracy quickly space circular arc interpolation method, there is a step in detail below:
Step 1, definition space circular interpolation code format:
With a radius as 50mm, the center of circle is in zero (0,0,0), and circular arc planar process vows that the full circle for (4 ,-3,1) is
Interpolation object, definition circular interpolation Origin And Destination is (30,40,0), and interpolation feed speed is 100mm/s, G code form
For:
G02.1X30Y40Z0I-30J-40K0NX4NY-3NZ1F100
Step 2, decoding acquisition space circular arc interpolation data message:
Being obtained circular interpolation data message by G code decoding is:
Circular arc terminal: (30,40,0)
The circular arc center of circle: (0,0,0)
Circular arc planar process is vowed: (4 ,-3,1)
Interpolation maximum feed speed: 100
Step 3, calculates the maximum feeding speed under circular interpolation radius, central angle, arc length and interpolation bow high level error constraint
Degree correction value: circular interpolation radius:
Circular interpolation central angle: starting point vector Vs=(xs-xc,ys-yc,zs-zc)=(30,40,0), terminal vector Ve=
(xe-xc,ye-yc,ze-zc)=(30,40,0), circular arc planar process is vowed as N=(nx,ny,nz)=(4 ,-3,1), zequin to
Mixed product (the V that amount, terminal vector is vowed with circular arc planar processs,Ve, N) and=(Vs×Ve) N=0, then the circular interpolation center of circle
Circular interpolation arc length: L=R θ=2 π R;
Maximum adjustment of feed-rate value: if the maximum interpolation bow high level error of regulation is δ=0.001mm, interpolation cycle is Tc
=1ms, then maximum adjustment of feed-rate is:
Step 4, calculating interpolation parameters increment:
If during constant speed interpolation, interpolation rate Vi=100mm/s, acceleration and acceleration are 0, then Interpolation step-length is Li
=ViTc=0.1mm.Interpolation parameters increment is
Step 5, calculating interpolated point:
Making current interpolated point is (xi,yi,zi), next interpolated point is (xi+1,yi+1,zi+1), it is calculated as follows:
When making i=0, interpolated point is circular arc starting point (30,40,0), and the interpolated point obtained by the recurrence calculation of above formula is such as
Under:
In upper table, i represents i-th interpolation cycle;(x, y z) represent the interpolated point that each interpolation cycle generates;R represents every
The interpolated point of generation of individual cycle and the distance in the center of circle;L represents the distance of interpolated point that each cycle generates and a upper interpolated point,
I.e. Interpolation step-length.As can be seen from the above table, calculated each interpolated point all on original circle, the radial error of interpolated point
It is 0 (because the distance in each interpolated point and the center of circle is 50, equal to arc radius).And the interpolated point generated is in strict accordance with regulation
Interpolation step-length generate, the distance between adjacent two interpolated points is the most equal with Interpolation step-length, the most there is not velocity error
(Interpolation step-length of regulation and the relative error of actual Interpolation step-length).Therefore, the radial error of 0 represents with the velocity error of 0
The interpolation precision of the present invention is the highest.
Step 6, interpolation endpoint:
Update the residue a length of L=L-L of interpolationiIf, L > 0, then return step 4 and continue interpolation;Otherwise, interpolation terminates.Insert
The interpolation track formed after having mended is as shown in Figure 2;Fig. 3 is to implement example interpolation result, is a space circle, and some C is the center of circle,
Vector N is that the method for this circle place plane is vowed, interpolation direction is direction shown in arrow in figure, around vector N interpolation counterclockwise.
Claims (4)
1. a high accuracy quick space circular arc interpolation method, it is characterised in that: the method specifically comprises the following steps that
Step 1, definition space circular interpolation code format:
Definition space circular interpolation code format is: G02.1X (U) _ Y (V) _ Z (W) _ I_J_K_NX_NY_NZ_FX, and Y, Z are circle
Arc terminal absolute coordinate, U, V, W are the circular arc terminal relative coordinate relative to starting point;
I, J, K are the circular arc center of circle relative coordinate relative to starting point;
NX, NY, NZ are that the method for circular arc plane is vowed, and specify that winding vows counterclockwise interpolation circular arc;
F is interpolation feed speed;
Step 2, decoding acquisition space circular arc interpolation data message:
The starting point making circular interpolation is (xs,ys,zs), i.e. the terminal of code the last period interpolation, for known;
If the circular interpolation code read is: G02.1 Xxe Yye Zze Iic Jjc Kkc NXnx NYny NZnzFf, then justify
The terminal of arc interpolation is (xe,ye,ze), the center of circle is (xc,yc,zc)=(xs+ic,ys+jc,zs+kc), circular arc planar process is vowed as (nx,
ny,nz), maximum feed speed is f;
Step 3, the maximum feed speed calculated under circular interpolation radius, central angle, arc length and interpolation bow high level error constraint is repaiied
On the occasion of:
Circular interpolation radius:
Circular interpolation central angle: zequin vector is Vs=(xs-xc,ys-yc,zs-zc), terminal vector is Ve=(xe-xc,ye-
yc,ze-zc), circular arc planar process is vowed as N=(nx,ny,nz), the mixing that zequin vector, terminal vector are vowed with circular arc planar process
Amass as (Vs,Ve, N) and=(Vs×Ve) N, if (Vs,Ve, N) and > 0, then circular interpolation central angleIf
(Vs,Ve, N)≤0, then the circular interpolation center of circle
Circular interpolation arc length: L=R θ;
Maximum adjustment of feed-rate value: if the maximum interpolation bow high level error of regulation is δ, interpolation cycle is Tc, then maximum feed speed
It is modified to
Step 4, calculating interpolation parameters increment:
According to circular arc arc length and maximum feed speed, the feed speed carrying out the i-th interpolation cycle after feed speed planning is
Vi, acceleration is Ai, acceleration is Ji, then Interpolation step-length isInterpolation parameters incremental computations
ForThe three-dimensional euclidean mould that wherein | | N | | vows for circular arc planar process is long;
Step 5, calculating interpolated point:
Making current interpolated point is (xi,yi,zi), next interpolated point is (xi+1,yi+1,zi+1), it is calculated as follows:
Calculated (xi+1,yi+1,zi+1) it is interpolated point, control space circular arc interpolation by servo position;
Step 6, interpolation endpoint:
Update the residue a length of L=L-L of interpolationiIf, L > 0, then return step 4 and continue interpolation;Otherwise, interpolation terminates.
A kind of high accuracy quickly space circular arc interpolation method the most according to claim 1, it is characterised in that: described step 3
In relate to interpolation bow high level error be that circular interpolation process interpolation track approaches the geometric error that circular arc causes, straightway is interpolation
Track, interpolation track goes to approach when being interpolated circular arc, and the maximum deviation between interpolation track and circular arc is bow high level error δ.
A kind of high accuracy quickly space circular arc interpolation method the most according to claim 1, it is characterised in that: described step 4
In relate to feed speed planning, for the feed speed information planned according to circular interpolation arc length, belong to feed speed planning side
Face, obtains the feed speed of each interpolation cycle, acceleration with acceleration information for calculating each interpolation cycle after planning
Interpolation step-length and interpolation parameters increment.
A kind of high accuracy quickly space circular arc interpolation method the most according to claim 1, it is characterised in that: described step 5
In the current interpolated point that relates to be known point, initial value is the starting point of circular interpolation, and each interpolation cycle calculates once
Interpolated point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410339127.6A CN104155916B (en) | 2014-07-16 | 2014-07-16 | A kind of high accuracy quickly space circular arc interpolation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410339127.6A CN104155916B (en) | 2014-07-16 | 2014-07-16 | A kind of high accuracy quickly space circular arc interpolation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104155916A CN104155916A (en) | 2014-11-19 |
CN104155916B true CN104155916B (en) | 2016-12-07 |
Family
ID=51881442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410339127.6A Active CN104155916B (en) | 2014-07-16 | 2014-07-16 | A kind of high accuracy quickly space circular arc interpolation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104155916B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108062073B (en) * | 2016-11-08 | 2020-06-23 | 沈阳高精数控智能技术股份有限公司 | Circular arc smooth compression interpolation method for high-quality machining |
CN106950920A (en) * | 2017-04-18 | 2017-07-14 | 大连奥托股份有限公司 | Space circular arc interpolation method based on numerical control kind equipment |
CN109176526A (en) * | 2018-10-08 | 2019-01-11 | 南京信息工程大学 | A kind of three axis Cartesian robot space circular arc interpolation methods |
CN111630461B (en) * | 2018-12-21 | 2022-07-12 | 深圳配天智能技术研究院有限公司 | Numerical control machining method and system and device with storage function |
CN110286652B (en) * | 2019-06-19 | 2021-08-27 | 四川轻化工大学 | Control system method based on H-BOT structure |
CN113848802B (en) * | 2021-10-13 | 2022-04-01 | 南京航空航天大学 | Dynamic high-speed nested look-ahead planning method |
CN117226193B (en) * | 2023-11-10 | 2024-02-02 | 华潞科技(山西)有限公司 | Wire-cut electric discharge machine hardware interpolation method, device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140460A (en) * | 2006-09-06 | 2008-03-12 | 北京数码大方科技有限公司 | Method and apparatus for driving numerically controlled machine to execute space circular arc interpolation process |
CN103676787A (en) * | 2013-12-13 | 2014-03-26 | 大连理工计算机控制工程有限公司 | Circle center mode space circular interpolation method applied to motion control system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003308115A (en) * | 2002-04-17 | 2003-10-31 | Yamazaki Mazak Corp | Numerically controlled machine tool |
-
2014
- 2014-07-16 CN CN201410339127.6A patent/CN104155916B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140460A (en) * | 2006-09-06 | 2008-03-12 | 北京数码大方科技有限公司 | Method and apparatus for driving numerically controlled machine to execute space circular arc interpolation process |
CN103676787A (en) * | 2013-12-13 | 2014-03-26 | 大连理工计算机控制工程有限公司 | Circle center mode space circular interpolation method applied to motion control system |
Non-Patent Citations (2)
Title |
---|
五轴数控机床空间圆弧插补;詹泳 等;《华中理工大学学报》;20000531;第28卷(第5期);4-6 * |
连续短线段空间圆弧转接与插补;何均 等;《航空学报》;20100531;第31卷(第5期);1086-1092 * |
Also Published As
Publication number | Publication date |
---|---|
CN104155916A (en) | 2014-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104155916B (en) | A kind of high accuracy quickly space circular arc interpolation method | |
CN103064344B (en) | Non uniform rational B spline (NURBS) interpolation based speed smooth control method | |
CN104615084B (en) | Machining feed speed optimized tool path curve contour error compensation method | |
Jia et al. | A NURBS interpolator with constant speed at feedrate-sensitive regions under drive and contour-error constraints | |
Pateloup et al. | Bspline approximation of circle arc and straight line for pocket machining | |
CN101556472B (en) | Small straight-line section interpolation method of numerical control system on basis of multicycle optimal corner | |
CN103048953B (en) | Segmented interpolation method of NURBS (Non-Uniform Rational B-Spline) curve based on ARM9 (Advanced RISC Machines) embedded system and FPGA (Field Programmable Gate Array) | |
CN101907876B (en) | Command point shaping, compressing and interpolating method suitable for numerical control device | |
CN106647623B (en) | The smooth interpolating method of five-axle linkage that a kind of geometric accuracy and linking speed optimize | |
CN101539769A (en) | Method for fitting and interpolating G01 code based on quadratic B spline curve | |
CN102722140A (en) | Multi-period corner small straight-line segment interpolation method based on S curve acceleration/deceleration control | |
CN102799145A (en) | S-curve acceleration linear interpolation method adopting multi-period constant-acceleration transition for corner | |
CN102419570A (en) | Acceleration and deceleration look-ahead control method for high-speed machining of numerical control machine tool | |
CN105739436B (en) | A kind of adaptive high speed interpolation method of numerically-controlled machine tool spline curve | |
CN104204977A (en) | Track control device | |
CN102147599A (en) | Elliptic arc interpolation method | |
CN103926881A (en) | Speed-fluctuation-free parameter curve direct interpolation method based on secant method | |
CN108170101A (en) | Towards the interpolating method and system of polynomial spline curve | |
CN102707671A (en) | Processing path optimization method applied to machine tool | |
CN105005265A (en) | Numerical control machining feed rate programming method based on curve smooth deformation | |
CN102222138A (en) | Method for obtaining shortest lines based on section line division of curved surface | |
CN104020719A (en) | S-type acceleration and deceleration control interpolation algorithm of NURBS curve segmented by speed sensitive points | |
CN106292531B (en) | A kind of algorithm calculating processing ZN1 worm screw plate-like profile of forming cutter boundary | |
CN104317246A (en) | Method for carrying out cutter back-off compensation on multi-shaft processing path of weak-rigidity cutter | |
CN103454979A (en) | Quick variable-speed curve circular interpolation method packaged into PLCopen instruction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |