UG后处理刀补的正确输出方法_第1页
UG后处理刀补的正确输出方法_第2页
UG后处理刀补的正确输出方法_第3页
UG后处理刀补的正确输出方法_第4页
UG后处理刀补的正确输出方法_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、UG后处理刀补的正确输出方法. w/ X; - J4 f* ; Q前一段时间搞ug 刀补的多刀处理问题,蛮头疼的,看到一强人Yeager给了一个方法. S S% D$ y( R% : m在Cutcom On里面增加一個Custom Command.,.填入MOM_force once D,这个方法可以解决D号的模态省略的问题,即在分层刀路里第二层G41/G42后没有D号的问题. 佩服啊!关于G40的处理:. T9 B5 3 r1 J( B! r2 t5 e# i% L在Cutcom off项中删除G40 ,生成程序的效果如下:u9 o! m# F! y* E& a) j4 L2 J : D2

2、$ 6 c; nN40 G0 G90 X-58. Y30. M03 S2000$ u! C: ) 4 X; _/ RD2 H. qN50 G43 Z3. H01N60 Z1.077/ U- D1 Q* G( p7 C4 Z, k7 gN70 G1 Z-1.923 F250.; u0 8 t1 p! U: _N80 G41 X-55. D01& h8 Y; r9 ( 0 fN90 G2 X-50. Y35. I5. J0.07 b9 P8 s) D6 x4 i# N100 G1 X50.8 P4 K: h6 ?# l( N; M iN110 G2 X55. Y30. I0.0 J-5.; b1

3、h j6 B( h; dXN120 G1 Y-30., O! y2 V% X6 / n bN130 G2 X50. Y-35. I-5. J0.0N140 G40 G1 Y-37.54, r2 O5 C) U% M) CN150 G0 Z1.077N160 Y-38.0 _. O A! h% |; lN170 Z-.846/ j/ n I8 X9 IN180 G1 Z-3.8466 N7 M8 x- k UL- U2 AUN190 G42 Y-35. D01N200 G3 X55. Y-30. I0.0 J5.! L: 1 O: % W$ Y+ 4 D: F+ hN210 G1 Y30.! )

4、 v: r6 1 MN220 G3 X50. Y35. I-5. J0.0N230 G1 X-50.N240 G3 X-55. Y30. I0.0 J-5._; i, m3 G. i$ b# V. Nr% - WN250 G40 G1 X-57.54N260 G0 Z-.846N270 X-58.N280 Z-2.769N290 G1 Z-5.769N300 G41 X-55. D01N310 G2 X-50. Y35. I5. J0.0$ / J( c: J* q! Z, b% Sf! Q$ o在fanuc 、mazak等机床上试验过,在fanuc系统上如果G41后没有D号,可以执行前一个模

5、态的有效的D号,在G40后如果没有撤销刀补的直线段,刀补撤销没有问题,在G40这一句不产生移动,在下一句G1 x y 的语句执行。如果将G41D1 单独列一行,可以对下一个坐标点进行补偿,但是补偿点的位置有误在mazak系统中:G41D1单独列一行的语句运行后,立即对前一个坐标点进行补偿,G40也是如此,也就是说补的位置不是我们要补的位置。 ; k. M$ n. a3 |: Q- q( e所以我们为了程序的正确性,必须保证G41 D1 position7 H0 V- V1 R; N) U* I,G40position 的格式。2 x, a& ; O! M8 n/ k% M做好刀补的方法:总结:

6、1.在Cutcom On里面增加一個Custom Command.,.填入MOM_force once D,这个方法可以解决D号的模态省略的问题1 a2 a+ E/ v; o2.删除Cutcom Off的G40。3.在rapid move 里加入G40。% y6 Q% U$ f( R2 v# K- w6 n% A 4.加入G545.刀具信息:global mom_tool_name) l6 _# N3 v6 w2 rMOM_output_literal (TOOL NAME $mom_tool_name)1 x6 F/ k* D; 4 ) Y1 $ Q4 f6.加工时间:global mom_

7、machine_time: # Y+ u+ h- L9 6 r4 , d7 v6 c2 ) p+ H0 L ) MOM_output_literal (MACHINE TIME format %.2f $mom_machine_time MIN ) 7.在每个操作前加入行号及路径名$mom_path_name( J( R* P- i+ w: n on$ t8 , R# q& T% s. q7 Mf, x- ?% j 路径名(operator message) r5 JP0 g+ z* G8 Y, 4 Uoff 8.在rapid move中,需对rap1,rap2,rap3及m13强制输出./

8、L* x+ |) T; e; i( _1 S+ K# p% A$ z7 . $ f$ X9 |2 l($mom_output_file_basename)(刀轨文件名)$mom_path_name(操作名) wR( 4 s2 j7 A c4 E# E6 M* U 9.MOM_force once M03 。 10. 要用M8-Coolant Flood 11.螺纹铣:init_helix uplevel #0 # This procedure will be executed automatically at the start of program and# anytime it is lo

9、aded as a slave post of a linked post.# ?& P% l% b+ d U0 j! |# This procedure can be used to enable your post to output helix.U, D& v$ e 2 aC# You can choose from the following options to format the circle 1 g: c3 p4 J F7 S5 y3 # block template to output the helix parameters.% d& j2 | p_8 Z( X y) G#

10、set mom_sys_helix_pitch_type rise_radian; N0 p4 o* U/ P( I# The default setting for mom_sys_helix_pitch_type is rise_radian.# This is the most common.Other choices are:1 L$ i0 u5 e. _) T: W/ c( e, j7 M# rise_radian Measures the rise over one radian.# rise_revolution Measures the rise over 360 degree

11、s.% c% m8 n/ C0 j2 D; M# none Will suppress the output of pitch.# other Allows you to calculate the pitch; R9 I0 N$ C2 E) Z6 e. H1 q, xo# using your own formula.# # This custom command uses the block template circular_move to output j2 ; u( A8 T: j& V/ ?# the helix block.If your post uses a block te

12、mplate with a different4 t9 s% z. o; ) o, z K1 . K# name, you must edit the line that outputs the helix block.b* U. # 0 |) J$ lm9 P : F( t7 E, Z: #The following variable deines the output mode for helical records.( p; c% d3 A6 i$ R#, E6 R4 X7 T! P+ , w#FULL_CIRCLE- This mode will output a helix reco

13、rd for each 360 # degrees of the helix.5 |* 2 T& a/ I2 + H#QUADRANT- This mode will output a helix record for each 90 7 o! I, ) A& P1 # degrees of the helix.: M h0 A T8 y+ Z#LINEAR- This mode will output the entire helix as linear gotos.#END_POINT - This mode will assume the control can define an en

14、tire# helix in a single block. set mom_kin_helical_arc_output_mode FULL_CIRCLE& N! o# y5 n( N. e# p MOM_reload_kinematics_9 A2 v# 1 b$ h. m8 K7 I$ |/ c7 N+ T- M0 M* K% X8 w+ a* M3 . B U b6 & m0 U8 l1 b2 I6 B#=proc MOM_helix_move 4 & r! z$ T! M* S( C#=* M7 h8 H b$ _5 4 4 d4 n7 r global mom_pos_arc_pl

15、ane global mom_sys_cir_vector8 q. 7 l$ D( O. 2 h2 ; z; D global mom_sys_helix_pitch_type! ul, N$ a2 |: l global mom_helix_pitch global mom_prev_pos mom_pos_arc_center global PI9 g+ t3 K8 m. * u9 ?# D7 g switch $mom_pos_arc_plane XY MOM_suppress once K ; set cir_index 2 YZ MOM_suppress once I ; set c

16、ir_index 0 ZX MOM_suppress once J ; set cir_index 1 ( A4 z! m/ B1 E. o + _! H! & S- y5 G- A/ X! P switch $mom_sys_helix_pitch_type & 7 J7 X8 a. P5 W% none rise_revolution set pitch $mom_helix_pitch rise_radian set pitch expr $mom_helix_pitch / ($PI * 2.0) other 6 v6 Z) |8 / t#$ t( q0 l l) _1 B- |7 I

17、# Place your custom helix pitch code here0 P/ u7 s q5 k3 t2 l#/ m: J- e) ?: L0 n6 - default set mom_sys_helix_pitch_type none ; u4 L4 ? B, D* A8 c$ W MOM_force once X Y Z3 C1 D! a/ X0 b# p0 O! A6 u if $mom_sys_helix_pitch_type != none MOM_force once I J K if $mom_sys_cir_vector = Vector - Arc Center

18、 to Start set mom_prev_pos($cir_index) 0.0 set mom_pos_arc_center($cir_index) $pitch elseif $mom_sys_cir_vector = Vector - Arc Start to Center , D4 n( t # F set mom_prev_pos($cir_index) $pitch+ P; Kd) r; E% | set mom_pos_arc_center($cir_index) 0.0 elseif $mom_sys_cir_vector = Unsigned Vector - Arc C

19、enter to Start set mom_prev_pos($cir_index) 0.0! I2 A& A$ $ P. h. u. T3 _. t set mom_pos_arc_center($cir_index) $pitch. u# G( 2 n$ V: M elseif $mom_sys_cir_vector = Absolute Arc Center set mom_pos_arc_center($cir_index) $pitch 4 I$ h- l7 g; V5 S ( I1 k7 O4 v% J! n* u% d* X6 sn% M% O |# U* Q+ z y. N/ c* w# You may need to edit this line if you output more than one block- J+ I% n( |) z# or if you have change

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论