UG后处理刀补的正确输出方法

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

UG后处理刀补的正确输出方法.w/X;@-J4f*];Q前一段时间搞ug刀补的多刀处理问题,蛮头疼的,看到一强人Yeager给了一个方法.SS%D$y(R%\:m在CutcomOn里面增加一個CustomCommand.,.填入MOM_forceonceD,这个方法可以解决D号的模态省略的问题,即在分层刀路里第二层G41/G42后没有D号的问题.佩服啊!关于G40的处理:.T9B5\3r1J(B!r2t5e#i%L在Cutcomoff项中删除G40,生成程序的效果如下:u9o!m#F!y*E&a)j4L2J}:D2`$~6c;nN40G0G90X-58.Y30.M03S2000$u!C:@)~4X;_/RD2H.qN50G43Z3.H01N60Z1.077/U-D1Q*G(p7C4Z,k7gN70G1Z-1.923F250.;u0[8t1p!U:_N80G41X-55.D01&h8Y;r`9\(~0fN90G2X-50.Y35.I5.J0.07b9P8s)^D6x4i#\N100G1X50.8P4K:h6?#l(N;MiN110G2X55.Y30.I0.0J-5.;b1hj6B(h;dXN120G1Y-30.,O!y2V%X6}/nbN130G2X50.Y-35.I-5.J0.0N140G40G1Y-37.54,r2O5C)U%M)CN150G0Z1.077N160Y-38.0_.OA!h%|;lN170Z-.846/\j/nI8X9IN180G1Z-3.8466N7M8x-k'UL-U2AUN190G42Y-35.D01N200G3X55.Y-30.I0.0J5.!L:`1O:}%W$Y+[4D:F+hN210G1Y30.!@)v:r6\1MN220G3X50.Y35.I-5.J0.0N230G1X-50.N240G3X-55.Y30.I0.0J-5._;i,m3G.i$b#V.Nr%[-WN250G40G1X-57.54N260G0Z-.846N270X-58.N280Z-2.769N290G1Z-5.769N300G41X-55.D01N310G2X-50.Y35.I5.J0.0$\/J(c:J*q!Z,b%Sf!Q$o在fanuc、mazak等机床上试验过,在fanuc系统上如果G41后没有D号,可以执行前一个模态的有效的D号,在G40后如果没有撤销刀补的直线段,刀补撤销没有问题,在G40这一句不产生移动,在下一句G1xy的语句执行。如果将G41D1单独列一行,可以对下一个坐标点进行补偿,但是补偿点的位置有误在mazak系统中:G41D1单独列一行的语句运行后,立即对前一个坐标点进行补偿,G40也是如此,也就是说补的位置不是我们要补的位置。'~;k.M$n.a3|:Q-q(e所以我们为了程序的正确性,必须保证G41D1position7H0V-V1R;N)U*I,G40position的格式。2x,a&@;O!M8n/k%M做好刀补的方法:总结:1.在CutcomOn里面增加一個CustomCommand.,.填入MOM_forceonceD,这个方法可以解决D号的模态省略的问题1a2a+E/v;o2.删除CutcomOff的G40。3.在rapidmove里加入G40。%y6Q%U$f(R2v#K-w6n%A4.加入G545.刀具信息:globalmom_tool_name)l6_#N3v6w2rMOM_output_literal(TOOLNAME$mom_tool_name)1x6F/k*D;^4@)Y1~$Q4f6.加工时间:globalmom_machine_time:@#Y+u+h-L9@6r4`,d7v6c2^)p+H0L{)\MOM_output_literal(MACHINETIME[format%.2f$mom_machine_time]MIN)7.在每个操作前加入行号及路径名$mom_path_name(J(R*P-i+w:non$t8[,R#q&T%s.q7Mf,x-?%j路径名(operatormessage)'r5JP0g+z*G8Y,[4Uoff8.在rapidmove中,需对rap1,rap2,rap3及m13强制输出./L*x+|)T;e;i(_1S+K#p%A$z7@.{$f$X9|2l($mom_output_file_basename)(刀轨文件名)$mom_path_name(操作名)'wR(\4s2j7Ac4E#E6M*U9.MOM_forceonceM03。10.要用M8-CoolantFlood11.螺纹铣:init_helixuplevel#0{##Thisprocedurewillbeexecutedautomaticallyatthestartofprogramand#anytimeitisloadedasaslavepostofalinkedpost.#?&P%l%b+d'U0j!|#Thisprocedurecanbeusedtoenableyourposttooutputhelix.U,D&v$e'`2aC#Youcanchoosefromthefollowingoptionstoformatthecircle1g:c3p4JF7S5y3@#blocktemplatetooutputthehelixparameters.%d&j2|'p_8Z(Xy)G#setmom_sys_helix_pitch_typerise_radian;N0p4o*U/P(I##Thedefaultsettingformom_sys_helix_pitch_typeisrise_radian.#Thisisthemostcommon.Otherchoicesare:1L$i0u5e._)T:W/c(e,j7M##rise_radianMeasurestheriseoveroneradian.#rise_revolutionMeasurestheriseover360degrees.%c%m8n/C0j2D;M#noneWillsuppresstheoutputofpitch.#otherAllowsyoutocalculatethepitch;R9I0N$C2E)Z6e.H1q,xo#usingyourownformula.##Thiscustomcommandusestheblocktemplatecircular_movetooutputj2[;u(A8T:j&V/?#thehelixblock.Ifyourpostusesablocktemplatewithadifferent4t9s%z.o;\)o,zK1{.K#name,youmusteditthelinethatoutputsthehelixblock.b*U.\#]0|)J$lm9P@:F(t7E,Z:^##Thefollowingvariabledeinestheoutputmodeforhelicalrecords.(p;c%d3A6i$R#,E6R4X7T!P+^,w#FULL_CIRCLE--Thismodewilloutputahelixrecordforeach360#degreesofthehelix.5|*}2T&a/I2]+H#QUADRANT--Thismodewilloutputahelixrecordforeach907o!I,{)A&P1`#degreesofthehelix.:M'h0AT8y+Z#LINEAR--Thismodewilloutputtheentirehelixaslineargotos.#END_POINT--Thismodewillassumethecontrolcandefineanentire#helixinasingleblock.setmom_kin_helical_arc_output_modeFULL_CIRCLE&N!o#y5n(N.e#pMOM_reload_kinematics_9A2v#@1b$h.m8K7I$|/c7N+T-M0[M*K%X8w+a*M3@.BUb6[&m0U8l1b2I6B#=============================================================procMOM_helix_move{}{4`&r!z$T!M*S(C#=============================================================*M7h8Hb$_5@4{4d4n7rglobalmom_pos_arc_planeglobalmom_sys_cir_vector8q.@7l$D(O.`2h2~;z;Dglobalmom_sys_helix_pitch_type!ul,N$a2|:lglobalmom_helix_pitchglobalmom_prev_posmom_pos_arc_centerglobalPI9g+t3K8m.[*u9?#D7gswitch$mom_pos_arc_plane{XY{MOM_suppressonceK;setcir_index2}YZ{MOM_suppressonceI;setcir_index0}ZX{MOM_suppressonceJ;setcir_index1}(A4z!m/B1E.o}+_!{H!}&S-y5G-A/X!Pswitch$mom_sys_helix_pitch_type{&`7J7X8a.P5W%`none{}rise_revolution{setpitch$mom_helix_pitch}rise_radian{setpitch[expr$mom_helix_pitch/($PI*2.0)]}other{6^'v6Z)|8[/t#$t(q0l'l)_1B-|7I#Placeyourcustomhelixpitchcodehere0P/]'u7s'q5k3t2l#/m:J-e)?:L0n6]-^}default{setmom_sys_helix_pitch_typenone}};u4L4?'B,D*A8c$WMOM_forceonceXYZ3C1D!a/X0b#p0O!A6uif{$mom_sys_helix_pitch_type!=none}{MOM_forceonceIJKif{$mom_sys_cir_vector==Vector-ArcCentertoStart}{setmom_prev_pos($cir_index)0.0setmom_pos_arc_center($cir_index)$pitch}elseif{$mom_sys_cir_vector==Vector-ArcStarttoCenter}{,D4n(t'}#Fsetmom_prev_pos($cir_index)$pitch+P;Kd)r;E%|setmom_pos_arc_center($cir_index)0.0}elseif{$mom_sys_cir_vector==UnsignedVector-ArcCentertoStart}{setmom_prev_pos($cir_index)0.0!I2A&A$~$P.h.u.T3_.tsetmom_pos_arc_center($cir_index)$pitch.u#G([2n$V:M}elseif{$mom_sys_cir_vector==AbsoluteArcCenter}{setmom_pos_arc_center($cir_index)$pitch}4I$h-l7g;V5S}(I1k7O4v%J!]n*u%d*X6sn%M%O|##U*Q+zy.N/c*w#Youmayneedtoeditthislineifyououtputmorethanoneblock-J+I%n(|)z#orifyouhavechangedthenameofyourcircular_moveblock

1 / 5
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功