QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

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

[已解决] 后处理的问题

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

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

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

x
怎样生成螺旋铣的程序 现在出来的程序都是点坐标   恳请各位大师给解决一下
发表于 2016-4-6 22:01:20 | 显示全部楼层 来自: 中国台湾
多爬文,論壇裡有
发表于 2016-8-1 16:20:56 | 显示全部楼层 来自: 中国上海
1.首先保往你NX里的刀轨是圆弧的
  E2 [$ `; s& m. p9 _2.使用高版本(比如8.5)就可以直接输出了
, f/ b" d% H5 j/ g$ V) A. {3.如果不是高版本可以参考一下高版本的PB_CMD_helix_move用户命令' }! m( W, Q& ~7 n
  1.    global mom_pos_arc_plane: i: m2 a% W- d, \, v
  2.    global mom_sys_cir_vector
    . q" b7 C2 H  b3 w
  3.    global mom_sys_helix_pitch_type- R2 I3 x  M1 o0 R. }3 U! n# q
  4.    global mom_helix_pitch! q6 }+ d: g, _" L
  5.    global mom_prev_pos mom_pos_arc_center
    9 `9 L3 K1 U8 [1 T* J
  6.    global PI
    1 E/ \! ~- c0 J) @
  7. % n+ `7 B5 Z+ F

  8.   }  k4 X, z4 K8 P$ L4 ?- g- @
  9.    switch $mom_pos_arc_plane {
    3 {" G) q8 U/ D
  10.       XY { MOM_suppress once K ; set cir_index 2 }
    * x- |, [7 Y. Z6 B2 V" }8 S
  11.       YZ { MOM_suppress once I ; set cir_index 0 }; L! f" D5 q! M, \0 f0 _: o1 Q# I: n
  12.       ZX { MOM_suppress once J ; set cir_index 1 }3 g  X7 Y) S5 F3 z; z; v3 S
  13.    }
    # G4 u0 J0 j3 J: X
  14. - [( u" b: Y1 K
  15.    switch $mom_sys_helix_pitch_type {  J$ r4 W0 h4 e
  16.       none { }
    3 M) s5 X3 {" T! H$ |0 J8 ?
  17.       rise_revolution { set pitch $mom_helix_pitch }
    ) M3 G) X  `9 q6 L
  18.       rise_radian     { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}6 I( x% @9 U3 A; ]- w0 }; i8 j
  19.       other {
    : a) n- w% O, |5 J7 e0 X: |
  20. #7 m# ~+ p# @# G) o6 T* P* Y: f# @8 i
  21. #  Place your custom helix pitch code here
      E" ~9 i- D# x' ]( k$ W
  22. #5 p" w9 b0 e* J4 X/ V. f- R
  23.       }& F6 k: |3 O9 D" v  L
  24.       default { set mom_sys_helix_pitch_type "none" }
    ; {+ o0 H+ E* w  f% T$ Q
  25.    }
    , c4 S3 O. o7 O8 M: b; `
  26. 4 @3 H, k5 H# f$ a" J
  27.    # Make sure all X/Y/Z are output
    5 Z$ D0 W* b( r" [8 |( b* X
  28.    MOM_force once X Y Z+ w6 y/ ?2 [4 L2 G& U

  29. 2 e7 h1 l" c+ o3 u5 X3 g" _: G* \
  30.    if { [string compare "none" $mom_sys_helix_pitch_type] } {
    / _3 m" o$ Y* l  _1 z

  31.   i" w, N" b+ q* e
  32.       MOM_force once I J K. Q3 [% L. S' D/ S
  33. " g" U$ z6 v! H
  34.       switch $mom_sys_cir_vector {5 N( H% H% F; ^: z4 X
  35.          "Vector - Arc Center to Start" {
    # f) J1 R, I( p, N
  36.             set mom_prev_pos($cir_index) $pitch3 H8 a! y/ @4 p. g  f
  37.             set mom_pos_arc_center($cir_index) 0.08 @! p& O5 c/ x
  38.          }: q1 y0 D2 z2 C* K* N6 A$ X
  39.          "Vector - Arc Start to Center" -
    ' |# U; }/ v; U! \: l6 @& ^' f7 ~
  40.          "Unsigned Vector - Arc Start to Center" {: ?4 a& d% |2 S5 }  O7 I5 c0 J; q
  41.             set mom_prev_pos($cir_index) 0.0- T  v( l& T% g2 K7 X
  42.             set mom_pos_arc_center($cir_index) $pitch
    7 B% ~5 t5 H6 C
  43.          }
    9 o9 q+ ~* t' s- U/ A; s
  44.          "Vector - Absolute Arc Center" {
    , e. L& m0 i$ s0 c: j3 ?
  45.             set mom_pos_arc_center($cir_index) $pitch; ]0 c5 o% [1 x: V7 N" J
  46.          }
    3 c) p  \( \5 {9 A0 W
  47.       }2 M& i# v' T' z7 P) |4 }) X
  48.    }" F8 e: \+ D6 ^
  49. + q  K/ @" _; J- Z# x6 `, a  P% z
  50. #
    $ |5 e$ p+ ^4 A" @' y: B4 T# o0 i
  51. #  You may need to edit this line if you output more than one block0 k- d: @7 o8 G9 ^
  52. #  or if you have changed the name of your circular_move block template$ R; r5 j" d( s8 t- f
  53. #: @# F& C" ~* W& P
  54. #  ==> Do not call MOM_circular_move where CIRCLE_SET will suppress
      i/ M0 h' \" E% X3 y# \( m
  55. #      the Address of principal axis. Unless the "$mom_motion_event == helix_move?"
    2 V) d8 M( \* o9 D( r7 Z: d* q
  56. #      condition can be reliably used in MOM_circular_move to resurrect the Address of principal axis.
    6 P5 M# i+ L0 f1 W8 T
  57. #* W" a9 v1 i: E  B/ N
  58.    MOM_do_template circular_move
复制代码
0 N/ z0 j# Z; Z+ z

' ~$ p7 O9 h6 n# J
/ c! C3 I9 z! U/ L* P
 楼主| 发表于 2016-11-15 19:24:40 | 显示全部楼层 来自: 中国河北保定
张文汽车 发表于 2016-8-1 16:203 f6 Y+ t# I- m# {2 E$ M& ]
1.首先保往你NX里的刀轨是圆弧的# z8 d3 l6 T1 @8 A
2.使用高版本(比如8.5)就可以直接输出了& L3 B& U' R0 e. M$ i3 X
3.如果不是高版本可以参考一 ...

( v' R0 X) n9 U# n张老师  这个代码是什么意思   我看不懂  不知道怎么弄  
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

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