Summary of the invention
Object of the present invention is exactly mainly for five domestic axle Double swing head lathes, for avoiding the anglec of rotation of this structure lathe the 5th turning axle when exploitation postposition is processed to surpass the extreme angles of lathe self, cause the excess of stroke to be reported to the police and some crosses the problems such as limit interval cannot process, proposed a kind of specially for the rearmounted disposal route of the domestic Double swing head five-axis machine tool of five axle Double swing head lathes.
Solution of the present invention is such:
Whether the present invention adds brachium that two kinds of rearmounted processing modes are provided according to this domestic five-axis machine tool, and compare according to the limiting angle that the cutter spacing source file that pre-process generates calculates the maximal value and lathe self of the 5th axle rotation angle, then select corresponding processing mode.
Double swing head five axles (A, the C axle) linkage machine tool of take is example, illustrates and how to select rearmounted processing mode and how to solve the problems such as lathe the 5th axle rotational angle range transfinites.
The cutter spacing source file being generated by pre-process is a neutral file, comprising: tool-information (diameter, cutter number, cutter number picked up), rotating speed, multiaxis open, the information such as liquid coolant is opened, the cutter spacing position of cutter location and cutter spacing direction vector, this cutter location is all motionless with workpiece, the mode of tool motion obtains, and in the actual processing of this lathe, workpiece also moves, so cutter location information exchange need to be crossed to the spatial kinetics model of this type of lathe, changes, and becomes numerical control code.According to ISO (International Standards Organization) (ISO 841) standard, determine each coordinate axis and the direction of motion of Double swing head five-axis linkage machine tools, according to lathe coordinate system, be the intrinsic coordinate system of lathe itself and cannot change, and the coordinate system that adopts while being the programming of part to be processed of workpiece coordinate, name coordinate system is generally and adds the coordinate system of man-hour definition and consistent with lathe coordinate system direction, creates lathe coordinate system O in this lathe
cx
cy
cz
c﹑ workpiece coordinate system O
mx
my
mz
m﹑ name coordinate system O
rx
ry
rz
rand connect firmly with lathe bed, workpiece, cutter respectively, at workpiece coordinate system O
mx
my
mz
munder, R
w(w
x, w
y, w
z), R
v(v
i, v
j, v
k) represent respectively cutter location cutter spacing position and cutter spacing vector.Each axle of fixation workpiece coordinate system is all consistent with each direction of principal axis of nominal coordinate system, now R
w(w
x, w
y, w
z), R
v(v
i, v
j, v
k) initial position be respectively [0 0 0]
t[0 0 1]
t.The anglec of rotation of turning axle A, C is used respectively α
aand α
crepresent.Oscillation centre [X, Y, Z] is pendulum length L and is definite value to the distance of main shaft section, and main shaft end face is to cutter location cutter spacing position R
w(w
x, w
y, w
z) distance be the long K of cutter.Because the distance value from oscillation centre to cutter location cutter spacing position is cutter length and pendulum length sum, therefore the long K of cutter and pendulum length L sum are called to brachium H.The complex-curved digital control processing correlation technique of < < > > with reference to Chen Liangji, according to coordinate transform relation, derives lathe at workpiece coordinate system O
mx
my
mz
munder coordinates of motion value X, Y, Z, α
a, α
cmethod be:
α
A=L
Aarccos(v
k) L
A=(1,-1) (1)α
C=arctan(v
i/v
j)-L
Cπ L
C=(0,1) (2)
In formula: α
a, α
cbe respectively the anglec of rotation of turning axle A, C;
(w
x, w
y, w
z), (v
i, v
j, v
k) be respectively cutter location cutter spacing position and cutter spacing vector;
[X, Y, Z] is oscillation centre coordinate;
H is brachium value.
Make α
a=arccos (v
k)=β, α
a1=-β, α
c=arctan (v
i/ v
j)=φ, α
c1=φ ± π.By α
a, α
cwith α
a1, α
c1substitution formula (3) is launched respectively:
Formula (4) equates with formula (5) result as can be seen here.Can illustrate while obtaining a pair of known angle, by rotation angle α
abecome negative value, by rotation angle α
crotate 180 degree, cutter location coordinate is constant.While calculating the anglec of rotation accordingly, adopt whole positive-angle to calculate, as the α being calculated by cutter spacing source file
cbe greater than lathe rotation limiting angle C
maxtime, can make all α in this program
avalue becomes negative value, by rotation angle α
crotate 180 degree.Just can solve lathe rotation angle and cross limit problem.Structure by this lathe is more special, [X, Y, the Z] obtaining afterwards as calculated
tvalue is for oscillation centre trajectory coordinates, therefore title formula (1), (2), (3) are five axle Double swing head center of oscillation algorithms, and oscillation centre coordinate is by cutter spacing position, brachium, and rotation angle determines.Obviously, when brachium H=0, [X, Y, Z]
tbeing output as cutter spacing position coordinates is:
[X,Y,Z]
T=[w
xw
yw
z]
T (6)
Formula (1), (2), (6) are called to five axle Double swing head cutter center algorithms, under this pattern, must in the control system of lathe, insert brachium value and calculate, can process.And brachium is comprised of pendulum length and cutter length, pendulum length is certain value, and cutter length is a variate.Thus in production in enormous quantities, cutter will produce length wearing and tearing, can adopt traditional tool length compensation method in the control system of lathe, to fill into long poor of cutter cutter long and new cutter after wearing and tearing, also can meet processing request.The method is simple and practical, has greatly reduced processing technology time ,Wei enterprise raising productivity effect and has had important practicality meaning.
According to above-mentioned design philosophy, the present invention includes step:
(1), read in and receive data step: read at least comprise that tool-information, rotating speed, multiaxis are opened, liquid coolant is opened, the cutter spacing position of cutter location and the cutter spacing source file of cutter spacing direction vector, receive and at least comprise brachium H, rotary axis of machine tool greatest limit angle C simultaneously
maxlathe parameter;
(2), according to the greatest limit angle C of concrete rotary axis of machine tool C axle
max, the rotary stopper angle β of definition Double swing head five-axis machine tool C axle
c, its rotary stopper angle is according to the greatest limit angle C of concrete rotary axis of machine tool C axle
maxset, during setting, generally allow and make rotary stopper angle β
cbe slightly less than greatest limit angle C
max.General β
c∈ (180 °, 360 °).
(3), set up the spatial kinetics model step of lathe: according to lathe coordinate system, be the intrinsic coordinate system of lathe itself and cannot change, and the coordinate system that adopts while being the programming of part to be processed of workpiece coordinate, name coordinate system is generally and adds the coordinate system of definition in man-hour and the feature consistent with lathe coordinate system direction, creates lathe coordinate system O in lathe
cx
cy
cz
c﹑ workpiece coordinate system O
mx
my
mz
m﹑ name coordinate system O
rx
ry
rz
rand connect firmly with lathe bed, workpiece, cutter respectively, at workpiece coordinate system O
mx
my
mz
munder, R
w(w
x, w
y, w
z), R
v(v
i, v
j, v
k) represent respectively cutter location cutter spacing position and cutter spacing vector.Each axle of fixation workpiece coordinate system is all consistent with each direction of principal axis of nominal coordinate system, now R
w(w
x, w
y, w
z), R
v(v
i, v
j, v
k) initial position be respectively [0 0 0]
t[0 0 1]
t; The anglec of rotation of turning axle A, C is used respectively α
aand α
crepresent;
(4), brachium is set and treatment step: set: oscillation centre [X, Y, Z] is pendulum length L to the distance of main shaft end face, and main shaft end face is to cutter location cutter spacing position R
w(w
x, w
y, w
z) distance be the long K of cutter; The setting long K of cutter and pendulum length L are added and obtain brachium H; While automatically loading brachium calculating in machine tool system, make brachium H=0, the treatment step of employing comprises:
Adopt five axle Double swing head cutter center algorithm formula:
α
A=L
Aarccos(v
k) L
A=(1,-1)
α
C=arctan(v
i/v
j)-L
Cπ L
C=(0,1)
[X, Y, Z]
t=[w
xw
yw
z]
tcalculate;
In formula: α
a, α
cbe respectively the anglec of rotation of turning axle A, C;
(w
x, w
y, w
z), (v
i, v
j, v
k) be respectively cutter location cutter spacing position and cutter spacing vector;
[X, Y, Z] is oscillation centre coordinate.
(5), will adopt five axle Double swing head cutter center algorithm formula of step 4 to calculate all C axle rotation angle α in this cutter spacing source file
c, be put in an array.Extract a maximum rotation angle α
cmax; Compare the maximum rotation angle C of lathe
maxmaximum rotation angle α with cutter location
cmax:
If α
cmax> C
max, carry out again five axle Double swing head cutter center algorithms, preserve the rotation angle value α of first trip cutter location
c1, calculating the rotation angle value α to site of the second row
c2, compare α
c1with α
c2:
If α
c2-α
c1< β
cits treatment step is: another carries out five axle Double swing head cutter center algorithms, by the α after calculating at every turn
cprocess.Make α
c=α
c-180 °, α
a=-α
a, the NC code of having changed is returned to master routine;
If α
c2-α
c1>=β
c, its treatment step is: another carries out five axle Double swing head cutter center algorithms, the α after each calculating
cneed judgement.If α
c180 ° of >, output α
c=α
c-360 °, otherwise output initial value.α
abe worth constantly, the NC code of having changed is returned to master routine;
If α
cmax< C
max, its treatment step is: by five axle Double swing head cutter center algorithms, all are exported according to algorithm, and the NC code of having changed is returned to master routine.
By above-mentioned steps, the anglec of rotation that just can solve the 5th turning axle surpasses the extreme angles of lathe self, causes the excess of stroke to be reported to the police and some crosses the problems such as limit interval cannot process.
When the control system of lathe is when loading arm long value calculates, make brachium H ≠ 0, adopt five axle Double swing head center of oscillation algorithms to calculate all rotation angle α in this cutter spacing source file
c, be put in an array.Extract a maximum rotation angle α
cmax; Compare the maximum rotation angle C of lathe
maxmaximum rotation angle α with cutter location
cmax;
If α
cmax> C
max, adopt again five axle Double swing head center of oscillation algorithms to calculate, preserve the rotation angle value α of first trip cutter location
c1, calculating the rotation angle value α to site of the second row
c2, compare α
c1with α
c2;
If α
c2-α
c1< β
cits treatment step is: another adopts five axle Double swing head center of oscillation algorithms to calculate, by the α after calculating at every turn
cprocess.Make α
c=α
c-180 °, α
a=-α
a, the NC code of having changed is returned to master routine;
If α
c2-α
c1>=β
c, another adopts five axle Double swing head center of oscillation algorithms to calculate, the α after each calculating
cneed judgement.If α
c180 ° of >, output α
c=α
c-360 °, otherwise output initial value.α
abe worth constantly, the NC code of having changed is returned to master routine;
If α
cmax< C
max, adopt five axle Double swing head center of oscillation algorithms to calculate, all are exported according to algorithm, and the NC code of having changed is returned to master routine.
Advantage of the present invention is that the limiting angle that the cutter spacing source file that generates according to pre-process calculates the maximal value and lathe self of the 5th axle rotation angle is compared, then select corresponding processing mode, finally obtain rational job sequence, and can improve working (machining) efficiency and machining precision.
Embodiment
The XH/2024 five axle Double swing head lathes of Hanchuan Machinery Plant research and development of take are example, the rotation limit that this lathe is furnished with Siemens 840 D CNC System two turning axles (A axle, C axle) is respectively (110 °~110 °) and (200 °~+ 200 °). because the turning axle C axle of lathe can not integral cycle rotating, can be restricted man-hour adding, to processing, bring great constant.Therefore the present invention is head it off just, and can improve working (machining) efficiency and machining precision.The present invention is existing take that to process certain Impeller Parts runner be example, elaborates this rearmounted disposal route.First programming personnel, according to part feature and processing request, by using CAM software (as UG) that corresponding parameter Tool-path Generation is set, finally derives runner cutter spacing source file.
This example makes brachium H=0.And then change in conjunction with the rearmounted disposal route of five axle Double swing heads.Concrete steps are as follows:
(1) read in the cutter spacing source file (as Fig. 2) of runner, this process comprises: obtain total line number of this cutter spacing source file, utilize buffer stream to read in line by line, and the first key-strings of separated every row and the variable of back.According to obtaining key-strings (as TLDATA, LOAD, SPINDL, RAPID/GOTO, GOTO, FEDRAT, PAINT, END-OF-PATH etc.), judge its implication and store corresponding information.With this simultaneously, also obtain the parameters that set in rearmounted process software (as the range of brachium H, translation shaft, the rotation limiting angle C of turning axle
maxdeng);
(2) according to the greatest limit angle C of this rotary axis of machine tool C axle
max=200 °, the rotary stopper angle β of definition Double swing head five-axis machine tool C axle
c, make its β
c=180 °;
(3) the brachium information obtaining according to step (), H=0 carries out the rearmounted processing mode of the first, and the cutter spacing vector of current cutter location is R
v(v
i, v
j, v
k), and call five axle Double swing head cutter center algorithms (adopt entirely on the occasion of algorithm) formula (2) and calculate α
cthe all values at angle, puts into array and finds out α
cmax, judgment expression (α next
cmax200 ° of >), IF expression (α
cmax200 ° of >) be true, redirect execution step (four), otherwise execution step (five);
(4) carry out again five axle Double swing head cutter center algorithms, the α calculating
cvalue be on the occasion of.Preserve the rotation angle value α of first trip cutter location
c1, calculating the rotation angle value α to site of the second row
c2, compare α
c1with α
c2:
If 1 | α
c2-α
c1| 180 ° of <, another carries out five axle Double swing head cutter center algorithms, by the α after calculating at every turn
cprocess.Make α
c=α
c-180 °, α
a=-α
a.The NC code of having changed is returned to master routine.Redirect execution step (six);
If 2 α
c2-α
c1>=180 °, another carries out five axle Double swing head cutter center algorithms, the α after each calculating
cneed judgement.If α
c180 ° of >, output α
c=α
c-360 °, otherwise output initial value.α
abe worth constant.The NC code of having changed is returned to master routine, redirect execution step (six);
(5) carry out five axle Double swing head cutter center algorithms, all are exported according to algorithm.Redirect execution step (six); (6) receive the NC code of having changed, the NC code of having changed is write to specified file, output NC code.