QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

查看: 2200|回复: 3
收起左侧

[已解决] 后处理的问题

[复制链接]
发表于 2016-4-6 11:04:40 | 显示全部楼层 |阅读模式 来自: 中国河北保定

马上注册,结识高手,享用更多资源,轻松玩转三维网社区。

您需要 登录 才可以下载或查看,没有帐号?注册

x
怎样生成螺旋铣的程序 现在出来的程序都是点坐标   恳请各位大师给解决一下
发表于 2016-4-6 22:01:20 | 显示全部楼层 来自: 中国台湾
多爬文,論壇裡有
发表于 2016-8-1 16:20:56 | 显示全部楼层 来自: 中国上海
1.首先保往你NX里的刀轨是圆弧的- V0 c: e( Y$ J. v+ J% b4 M
2.使用高版本(比如8.5)就可以直接输出了
* w" S& f  g' Q4 `2 l2 @4 m! C3.如果不是高版本可以参考一下高版本的PB_CMD_helix_move用户命令
4 b2 U" f6 D; u0 c+ U% l
  1.    global mom_pos_arc_plane' b0 N  f5 `# }" b# |
  2.    global mom_sys_cir_vector
    # a7 P: p; l+ \4 A* x- W
  3.    global mom_sys_helix_pitch_type4 j0 ?! w. e+ ]
  4.    global mom_helix_pitch4 H7 E  k: Z6 v1 y; q
  5.    global mom_prev_pos mom_pos_arc_center
    + m1 i$ e* J! M! f3 a* B0 l
  6.    global PI
    ) n, W& }! _5 h8 x
  7. # M* U* w& }! a/ p) K0 ~4 w9 {
  8. % x$ |' _# r/ M/ H9 R+ F/ I( v8 u9 V8 a
  9.    switch $mom_pos_arc_plane {
    8 \3 R% ?; ^& I% y5 A
  10.       XY { MOM_suppress once K ; set cir_index 2 }: Z6 F* Q% a7 T: M1 Y) C" h
  11.       YZ { MOM_suppress once I ; set cir_index 0 }8 v' I; n- t! a  Q& [
  12.       ZX { MOM_suppress once J ; set cir_index 1 }6 a# H& C3 z7 K; [4 \3 L
  13.    }1 V- T, r7 |. [9 |! a4 v
  14. " |: U& O: Q* q, O9 c) n. r3 [
  15.    switch $mom_sys_helix_pitch_type {/ h; V! ~; D% r& o. e
  16.       none { }
    ; D- X6 n, \" T- `6 ^4 G4 \
  17.       rise_revolution { set pitch $mom_helix_pitch }
    1 D" V" y- H' N
  18.       rise_radian     { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}3 R; P$ K8 f, [, Y# E3 b2 p6 h% q
  19.       other {+ J- W6 u* t1 s: o: C' A
  20. #; f8 B7 `) x# l# G, t# r8 k
  21. #  Place your custom helix pitch code here
    0 J1 K* s; \1 m" R& s) {
  22. #$ k$ J: A4 O$ y" M2 U, w8 V
  23.       }. p/ C! L) O6 \
  24.       default { set mom_sys_helix_pitch_type "none" }( i: X, J2 ~  r  T
  25.    }
    & D! M, O9 H3 r& P3 r7 p/ A; n

  26. ; s, [1 V4 R' j+ T' k0 z: [
  27.    # Make sure all X/Y/Z are output3 o3 q: X2 c2 \7 g2 i7 c  \' v3 w; C
  28.    MOM_force once X Y Z
    2 L% }/ C# ], I( E, e, {
  29. 8 R2 F+ |: J* @& m5 C4 ^
  30.    if { [string compare "none" $mom_sys_helix_pitch_type] } {* m9 q$ u2 P* n: F
  31. , Q* H5 S! T% g9 p  c) R/ _  e
  32.       MOM_force once I J K
    0 _1 ]- k6 N( z3 e* W9 ^5 D) _

  33. ) h5 Z3 Y+ ~' o
  34.       switch $mom_sys_cir_vector {
    ' y7 s( _+ r; U6 L+ N! q- L+ }0 K
  35.          "Vector - Arc Center to Start" {. p3 g# }9 X$ w" i/ {% O
  36.             set mom_prev_pos($cir_index) $pitch
    % G0 ~3 S$ W2 {. _/ I7 u! H; g
  37.             set mom_pos_arc_center($cir_index) 0.0
    1 {# H/ d$ x+ X* X
  38.          }. i3 q$ f  H& Z: ]$ d  t# X
  39.          "Vector - Arc Start to Center" -* A+ m' ^3 o5 ?0 ?7 w  C% s# f
  40.          "Unsigned Vector - Arc Start to Center" {
    ) ~) A! W6 x" ^
  41.             set mom_prev_pos($cir_index) 0.0
    2 G( ~3 [. H* K7 s( V" g1 `3 Z% T
  42.             set mom_pos_arc_center($cir_index) $pitch
    6 y, B) A' x+ n+ h
  43.          }+ n3 \2 R8 O- w( n# q& D0 q, @
  44.          "Vector - Absolute Arc Center" {
    8 J" T3 u$ ~6 |2 ?) S- u' o* ?
  45.             set mom_pos_arc_center($cir_index) $pitch
    ' q! R& c/ K1 ~2 P. U
  46.          }7 |  n8 s, f( X- q5 G/ n. }/ ]
  47.       }4 U$ [, L9 i% I) r5 s! u
  48.    }# Z; h2 L/ N4 z% C! W" Y& H' [9 E, J

  49. / W$ O- y8 r0 G- k1 d2 D1 G
  50. #6 d* I. S0 W! F- ~, n0 l/ \# ^& c
  51. #  You may need to edit this line if you output more than one block* ?  p& r3 |' E7 q8 c
  52. #  or if you have changed the name of your circular_move block template
    / ?* V& c4 ?9 d. X  E
  53. #6 f5 S/ ^9 B" \3 x
  54. #  ==> Do not call MOM_circular_move where CIRCLE_SET will suppress
    ) v5 r# g8 A9 O( W0 V  P
  55. #      the Address of principal axis. Unless the "$mom_motion_event == helix_move?"4 B5 W3 y' p: D2 V
  56. #      condition can be reliably used in MOM_circular_move to resurrect the Address of principal axis.9 C" |; C1 \2 }; S. Y4 @( ~/ @
  57. #
    5 o4 g1 ?! V' i+ C# ], c7 t/ ?6 c# r
  58.    MOM_do_template circular_move
复制代码

5 F' }7 C( c* O6 t; D  P% g$ \8 A) j, A/ [
4 u$ w' ?. ^" R& Q# s; {
 楼主| 发表于 2016-11-15 19:24:40 | 显示全部楼层 来自: 中国河北保定
张文汽车 发表于 2016-8-1 16:20
/ ]8 C* Z. }5 w/ v) i8 O1.首先保往你NX里的刀轨是圆弧的$ w+ s7 C; F5 ~0 S% d" n. m
2.使用高版本(比如8.5)就可以直接输出了$ M% ~; X: q# a( d0 Z" X0 H
3.如果不是高版本可以参考一 ...
2 C4 b) K/ L3 O( w( z7 A  }
张老师  这个代码是什么意思   我看不懂  不知道怎么弄  
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则


Licensed Copyright © 2016-2020 http://www.3dportal.cn/ All Rights Reserved 京 ICP备13008828号

小黑屋|手机版|Archiver|三维网 ( 京ICP备2023026364号-1 )

快速回复 返回顶部 返回列表