数控加工技术201031,2,1,2(1,450015;2,212003):,,,Z,:;ROT;;:TG5:A:16713133(2010)03003703AstudyonthepostprocessingalgorithmoffiveaxisNCmachiningbasedonrotatedcoordinatesystemWANGMin1,YANGXinglin2,SHIYiming1,WANGMingqiang2(1ChinaShipbuildingIndustryCorporationNo.713ResearchInstitute,Zhengzhou450015,China;2JiangsuUniversityofScienceandTechnology,Zhenjiang212003,Jiangsu,China)Abstract:Viacoordinatetransformationandcalculation,aalgorithmforanglevaluesoftheworkpiececoordinatesystemisgivedwhentheworkpiececoordinatesystemrotatesarounditsgeometryaxesX,Y,Ztoanewmachingcoordinatesystem.CombinedwithspecifiedheadandtablefiveaxisNCmachinetoo,lacalculatingmethodforanglesofrotationaxesofthemachinetoolisalsogivedwhenthetoolvectorparallelswiththenewmachingcoordinatesystem.Keywords:rotatedcoordinatesystem;ROT;fiveaxisNCmachining;postprocessing,(SINUMERIK840DROTHEIDENHAINiTNC530CYCLE19),XYZ(),SINUMERIK840D,[1]:N110G0A...B...C...;N120ROTX...Y...Z...;ZYX,ZYX,1OXYZX(1,0,0)Y(0,1,0)Z(0,0,1),ZZ1,YY1,XX1[1],OXYZ(I0,I1,I2),(I3,I4,I5)(I6,I7,I8),OXYZ,11:(I0,I1,I2,1)=(1,0,0,1)TZTYTX(I3,I4,I5,1)=(0,1,0,1)TZTYTX3720103数控加工技术(I6,I7,I8,1)=(0,0,1,1)TZTYTX[2]:TXTYTZTX=10000cosX1sinX100-sinX1cosX100001TY=cosY10-sinY100100sinY10cosY100001TZ=cosZ1sinZ100-sinZ1cosZ10000100001:I0I1I21=cosZ1cosY1sinZ1cosX1+cosZ1sinY1sinX1sinZ1sinX1-cosZ1sinY1cosX11(1)I3I4I51=-sinZ1cosY1cosZ1cosX1-sinZ1sinY1sinX1cosZ1sinX1+sinZ1sinY1cosX11(2)I6I7I81=sinY1-cosY1sinX1cosY1cosX11(3)1)-180X1180-90Y190-180Z1180[1],ZYXZ1Y1X1(1)ZZ1(1)(2):cosY1=[(I0)2+(I3)2]1/2-90Y1+90:cosY1=[(I0)2+(I3)2]1/20sinZ1=-I3/[(I0)2+(I3)2]1/2cosZ1=I0/[(I0)2+(I3)2]1/2:Z1=arcsin{-I3/[(I0)2+(I3)2]1/2}(I30I00)Z1=180-arcsin{-I3/[(I0)2+(I3)2]1/2}(I30I00)Z1=arcsin{-I3/[(I0)2+(I3)2]1/2}(I30I00)Z1=-180-arcsin{-I3/[(I0)2+(I3)2]1/2(I30I00)Z1=180(I3=0I00)Z1=0(I3=0I00)Z1=90(I30I0=0)Z1=-90(I30I0=0)(2)YY1(3):sinY1=I6:Y1=arcsin(I6)(3)XX1(3):sinX1=-I7/[(I0)2+(I3)2]1/2cosX1=I8/[(I0)2+(I3)2]1/2:X1=arcsin{-I7/[(I0)2+(I3)2]1/2}(I70I80)X1=180-arcsin{-I7/[(I0)2+(I3)2]1/2}(I70I80)X1=arcsin{-I7/[(I0)2+(I3)2]1/2}(I70I80)X1=-180-arcsin{-I7/[(I0)2+(I3)2]1/2}(I70I80)X1=180(I7=0I80)X1=0(I7=0I80)X1=90(I70I8=0)X1=-90(I70I8=0)2)-180X1180Y1=90-180Z1180,ZXZ1X1(1)(2)(3):I0I1I21=0sin(Z1X1)cos(Z1X1)1(4)I3I4I51=0cos(Z1X1)sin(Z1X1)1(5)I6I7I81=1001(6)38数控加工技术20103(4)(5)(6),ZX,Z1X10,,X1=0(X),(4)(5):sinZ1=I1cosZ1=I4:Z1=arcsinI1(I40I10)Z1=180-arcsinI1(I40I10)Z1=arcsinI1(I40I10)Z1=-180-arcsinI1(I40I10)Z1=180(I40I1=0)Z1=0(I40I1=0)Z1=90(I4=0I10)Z1=-90(I4=0I10)22122XYZ(X,Y,Z),XAYBA-90~90(ZA=0),B-180~18022,Z(I6,I7,I8),ABA1B1,3A1=-arcsinI7B1=arctan(|I6/I8|)(I60I80)B1=180-arctan(|I6/I8|)(I60I80)B1=-arctan(|I6/I8|)(I60I80)B1=-180+arctan(|I6/I8|)(I60I80)B1=0(I6=0I8=0)B1=0(I6=0I80)B1=180(I6=0I80)B1=90(I60I8=0)B1=-90(I60I8=0)3ZA1B123,UGPostbuilder,TCLUGXYZ,,UG:[1]SIEMENS公司.SINUMERIK840D/840Di/810DFundamentalsProgrammingGuide.03.04Edition,2004.[2]孙家广,杨长贵.计算机图形学[M].北京:清华大学出版社,1995.作者简介:王敏,高级工程师,工学硕士,主要从事数控加工技术的科研和生产杨兴林,教授,博士,从事机械制造及其自动化专业CIMS方向及工业工程方向研究Emai:lCSIC713_WangMin@Sohu.com收稿日期:2009042239