QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

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

[已解决] 后处理的问题

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

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

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

x
怎样生成螺旋铣的程序 现在出来的程序都是点坐标   恳请各位大师给解决一下
发表于 2016-4-6 22:01:20 | 显示全部楼层 来自: 中国台湾
多爬文,論壇裡有
发表于 2016-8-1 16:20:56 | 显示全部楼层 来自: 中国上海
1.首先保往你NX里的刀轨是圆弧的5 ?5 [. F5 ^& G+ i
2.使用高版本(比如8.5)就可以直接输出了
" t! E& K. }3 g: }0 ~/ z3.如果不是高版本可以参考一下高版本的PB_CMD_helix_move用户命令
" d0 K$ n7 o- m
  1.    global mom_pos_arc_plane1 f& Q% @" \( a
  2.    global mom_sys_cir_vector4 t1 I! d! O% o# L
  3.    global mom_sys_helix_pitch_type$ j. t1 F4 [6 f& n9 d1 [( b2 I
  4.    global mom_helix_pitch4 D/ L' B( a; k
  5.    global mom_prev_pos mom_pos_arc_center& D) K5 t! G5 W- a
  6.    global PI, M$ I' c4 g9 e! _$ \

  7. / S+ i  z* l' g1 `) K! i; y

  8. ' n' F: B7 ?* Y: }. c8 U0 j
  9.    switch $mom_pos_arc_plane {/ _. Z5 u/ V; h  X. k7 B( w
  10.       XY { MOM_suppress once K ; set cir_index 2 }
    3 o7 M* ~  k; T/ \
  11.       YZ { MOM_suppress once I ; set cir_index 0 }
    & _# v5 ^3 w# o" C$ [. L
  12.       ZX { MOM_suppress once J ; set cir_index 1 }
    6 `/ X" d7 N6 G) k2 H" m9 e
  13.    }
    3 G- J0 Q+ d0 w8 u' J
  14. 7 Y: S6 G/ P4 ^" m# f  X9 a6 Z
  15.    switch $mom_sys_helix_pitch_type {
    4 @+ G/ g' B: Z' l
  16.       none { }
    4 J. B: u* t( ?
  17.       rise_revolution { set pitch $mom_helix_pitch }" W1 M" b" l& Y6 y: Q$ G
  18.       rise_radian     { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}9 e" @* n) j* _4 Q; J) x3 l1 W6 L
  19.       other {
    5 h/ T- o9 _, g) P! L/ L; Y1 k1 f
  20. #) `2 T: |" `9 }: A' v- g; C  c: R
  21. #  Place your custom helix pitch code here
    ; ^) r" l+ S% h3 Q
  22. #
    ( l# _- Q0 x  E/ z  w2 z( T
  23.       }
    4 h/ }; Y. B8 b0 w
  24.       default { set mom_sys_helix_pitch_type "none" }( O, y# |! |/ i2 g# D5 B2 Q
  25.    }
      W4 s1 R( I+ J( d4 C

  26. , {; j. y! @+ Z7 H% l
  27.    # Make sure all X/Y/Z are output
    3 R9 F. V0 `: |. l" j# O
  28.    MOM_force once X Y Z" K# p# b5 J7 S, [

  29. 4 n% ~% Q  V! q. z0 u& K/ Z5 \
  30.    if { [string compare "none" $mom_sys_helix_pitch_type] } {
    5 Y1 Q9 O3 U; E

  31. ' j, @9 X# j! b
  32.       MOM_force once I J K
    ; M! M5 ?& R( e) N0 ?$ v/ `. }9 D
  33. 1 Y' u  x% \: v  a0 b. w
  34.       switch $mom_sys_cir_vector {
    0 q# Q) ?4 E6 s6 h9 w; ^
  35.          "Vector - Arc Center to Start" {3 S4 J' X% J* `0 b3 ]7 ^
  36.             set mom_prev_pos($cir_index) $pitch: H; g$ O, Q" y; u
  37.             set mom_pos_arc_center($cir_index) 0.0
    * o( q( |( C; h! i" y% B
  38.          }
    9 x7 m1 X( _$ k$ I3 d; t
  39.          "Vector - Arc Start to Center" -+ R; L0 z% E, Q3 |+ `. h( F1 d& r
  40.          "Unsigned Vector - Arc Start to Center" {
    " e7 z& |: G1 o! k
  41.             set mom_prev_pos($cir_index) 0.0) p& ?5 r' E* Y& p# H
  42.             set mom_pos_arc_center($cir_index) $pitch, ^2 p# P+ Z" j0 a! e8 E
  43.          }* e2 I" p6 e8 T" ^
  44.          "Vector - Absolute Arc Center" {
    - y* V* V/ V# N$ c( \9 s
  45.             set mom_pos_arc_center($cir_index) $pitch
    # w& j* K9 L" g& r6 ]
  46.          }7 `' j: F  ^% b) t( H% M
  47.       }
    # u( P- }5 y4 p1 t! A) F: |$ y
  48.    }
    , \8 ~$ ~! M: h+ q- h9 j1 k
  49. & `; X) N% M  j9 `" ^8 A: I
  50. #
    ; G; ]% A$ D& l7 O
  51. #  You may need to edit this line if you output more than one block) ~  t  V( W* `7 o! w  ]
  52. #  or if you have changed the name of your circular_move block template
    9 G  Y& W6 ]2 A# d
  53. #
    ' ^5 C$ a$ D  Y1 [
  54. #  ==> Do not call MOM_circular_move where CIRCLE_SET will suppress4 M, \$ ^& t* f/ x. S  Z; ~
  55. #      the Address of principal axis. Unless the "$mom_motion_event == helix_move?"
    : [4 J0 y4 v  V( h/ z: H+ ?
  56. #      condition can be reliably used in MOM_circular_move to resurrect the Address of principal axis.5 r# V; w4 q3 M6 S6 R
  57. #) S) t. O* y  Q0 n6 V( d5 z: j+ h
  58.    MOM_do_template circular_move
复制代码

) \& m* G7 H3 B0 `+ i0 d$ T% j6 N: M0 l* W1 n1 h# A0 S- \: {4 Q0 R
) q% E% d. l, ]
 楼主| 发表于 2016-11-15 19:24:40 | 显示全部楼层 来自: 中国河北保定
张文汽车 发表于 2016-8-1 16:20
5 K; M% @; [, z  P2 n1.首先保往你NX里的刀轨是圆弧的5 n5 S0 F) s' e; I% R9 m
2.使用高版本(比如8.5)就可以直接输出了) J& h1 }7 w+ l) ~9 n9 ]1 U- f
3.如果不是高版本可以参考一 ...
& U* p0 a( \* I( p( c  P* m
张老师  这个代码是什么意思   我看不懂  不知道怎么弄  
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则


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

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

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