QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

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

[已解决] 后处理的问题

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

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

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

x
怎样生成螺旋铣的程序 现在出来的程序都是点坐标   恳请各位大师给解决一下
发表于 2016-4-6 22:01:20 | 显示全部楼层 来自: 中国台湾
多爬文,論壇裡有
发表于 2016-8-1 16:20:56 | 显示全部楼层 来自: 中国上海
1.首先保往你NX里的刀轨是圆弧的7 d! {+ J5 z; \% [/ m* g
2.使用高版本(比如8.5)就可以直接输出了
0 T' ^4 e6 x% @/ R8 b0 x" y: `/ u* v3.如果不是高版本可以参考一下高版本的PB_CMD_helix_move用户命令6 \% w- U# d. X7 D
  1.    global mom_pos_arc_plane* K8 f" T# V' m/ N+ ?: E1 ~
  2.    global mom_sys_cir_vector4 B; I9 Z: y0 J9 N
  3.    global mom_sys_helix_pitch_type4 |4 z& d& v% u1 h
  4.    global mom_helix_pitch( e0 l7 h7 V2 O
  5.    global mom_prev_pos mom_pos_arc_center
    ! ^+ i* X/ x# d8 @. ^% S
  6.    global PI
    3 E3 m2 K$ \% N
  7. , {" ~6 s: ^7 U( K. \1 e
  8. " ^. m" Z5 s+ a
  9.    switch $mom_pos_arc_plane {( [: V- W! @+ O. {) L3 V: n
  10.       XY { MOM_suppress once K ; set cir_index 2 }. `+ o0 D7 F' u
  11.       YZ { MOM_suppress once I ; set cir_index 0 }
    * k2 V2 j3 B, f! P$ w  B. G
  12.       ZX { MOM_suppress once J ; set cir_index 1 }  g. g+ |  @4 B9 o5 S
  13.    }: _3 q" F8 H7 F  r* M4 l8 j
  14. 8 V. a8 L. ]8 J
  15.    switch $mom_sys_helix_pitch_type {
    * G5 A6 n! ]/ i+ Q7 p2 {' z
  16.       none { }
      O- h9 v4 _! \3 M( b
  17.       rise_revolution { set pitch $mom_helix_pitch }
    7 t7 X, ]) z! t( Q. J
  18.       rise_radian     { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}! ^! E: t% x9 j+ E. J, q* }
  19.       other {2 B9 t; v3 [/ M. [# v2 E2 `
  20. #/ P7 b/ X7 J9 W5 r! I
  21. #  Place your custom helix pitch code here
    6 l' y! C8 v1 a5 |, p" b" t* _5 V
  22. #
    3 d& e0 I9 Y; u5 T3 W1 H2 T
  23.       }8 ]) ?4 [: [) \* T/ y
  24.       default { set mom_sys_helix_pitch_type "none" }
    - O2 O6 [8 ~7 m- n8 X
  25.    }0 ]2 H: n, i( y2 r
  26. 9 J( k1 Y  s& N3 v7 L0 T, a
  27.    # Make sure all X/Y/Z are output" e4 t1 y3 D& u4 B
  28.    MOM_force once X Y Z
    4 A+ N/ ~; U; s, q' A9 g# W
  29. & U" W# M( {: c+ i7 [2 s
  30.    if { [string compare "none" $mom_sys_helix_pitch_type] } {
    ' m) Z! O! h  L

  31. 4 ~" B$ \, _0 Q& \- O" z
  32.       MOM_force once I J K* H+ b4 U" W% I2 |9 S8 F: r8 X) `& \

  33. / Y8 [! Z1 O7 O( v+ T
  34.       switch $mom_sys_cir_vector {
    , U9 p* t8 a5 n2 J' U2 g3 a3 b
  35.          "Vector - Arc Center to Start" {+ ~! F7 L1 m! |% `
  36.             set mom_prev_pos($cir_index) $pitch
    / @4 @+ a" w2 o$ b* C" k5 n
  37.             set mom_pos_arc_center($cir_index) 0.0
    2 p) O- R" C+ a/ u
  38.          }0 W+ p, ^7 O- J( L8 S, W5 T
  39.          "Vector - Arc Start to Center" -7 `/ @& J$ X! r
  40.          "Unsigned Vector - Arc Start to Center" {
    ; C6 ?  G" \9 k
  41.             set mom_prev_pos($cir_index) 0.0" U: n$ z' U0 i  d, ~" w) g$ s9 K
  42.             set mom_pos_arc_center($cir_index) $pitch- t( h! V* K: L1 b. p
  43.          }7 S" ?0 d$ M8 V/ Q
  44.          "Vector - Absolute Arc Center" {1 e  A8 }! {' G: D
  45.             set mom_pos_arc_center($cir_index) $pitch
    8 S- i! y3 J4 m- q+ }3 }/ w) {
  46.          }( `! s, u' E# E+ ~" F& P6 z/ {0 G
  47.       }7 M3 O* Z' r; m
  48.    }
    % G. q6 a$ r9 _
  49. ) v8 H( N- l1 U/ `" e7 `
  50. #' v+ J$ l; V/ d( ~9 U7 {
  51. #  You may need to edit this line if you output more than one block
    - U( a( T5 S% p# p9 D( e
  52. #  or if you have changed the name of your circular_move block template
    & c+ F! b0 @( n; c) I
  53. #
    9 v5 r  l4 p5 D' J- z$ |
  54. #  ==> Do not call MOM_circular_move where CIRCLE_SET will suppress, i; O3 E3 O3 G1 E% g
  55. #      the Address of principal axis. Unless the "$mom_motion_event == helix_move?"! K& Q" i" }: u: ^% R6 |( j
  56. #      condition can be reliably used in MOM_circular_move to resurrect the Address of principal axis.8 y3 }4 z  ]& B4 k4 t: f
  57. #5 T' C- C4 z4 L
  58.    MOM_do_template circular_move
复制代码

$ z% o4 n6 {4 d% P. n" x. w1 I

; W  h- X! X. Q
 楼主| 发表于 2016-11-15 19:24:40 | 显示全部楼层 来自: 中国河北保定
张文汽车 发表于 2016-8-1 16:20- q2 ^) `# `; a2 L% [& @6 K
1.首先保往你NX里的刀轨是圆弧的
- w) D( Y" _+ ]/ v! U2.使用高版本(比如8.5)就可以直接输出了
1 s" w, V5 k8 I3.如果不是高版本可以参考一 ...

7 t" K( L6 F- y! h0 I4 O' e) E张老师  这个代码是什么意思   我看不懂  不知道怎么弄  
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

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