QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

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

[已解决] 后处理的问题

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

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

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

x
怎样生成螺旋铣的程序 现在出来的程序都是点坐标   恳请各位大师给解决一下
发表于 2016-4-6 22:01:20 | 显示全部楼层 来自: 中国台湾
多爬文,論壇裡有
发表于 2016-8-1 16:20:56 | 显示全部楼层 来自: 中国上海
1.首先保往你NX里的刀轨是圆弧的
4 \" W# _$ ~; |- A( k2.使用高版本(比如8.5)就可以直接输出了6 t5 f7 K+ m' ?, o+ q' W$ ]
3.如果不是高版本可以参考一下高版本的PB_CMD_helix_move用户命令
( K- m) a$ t* X* ?9 r
  1.    global mom_pos_arc_plane
    8 Y' V! l, k: m
  2.    global mom_sys_cir_vector
    6 o: }9 M: L: j( E4 \
  3.    global mom_sys_helix_pitch_type
    1 f& u+ R9 F9 c
  4.    global mom_helix_pitch
    $ C/ x- ]! u; b& M3 f' |3 u; I
  5.    global mom_prev_pos mom_pos_arc_center
    7 n3 j6 l7 ]6 W2 g
  6.    global PI
    5 [: }8 _/ a* Y6 P9 _$ u

  7. 2 o6 Z! N% M# |8 |1 S" J
  8. ) Y: P0 h4 a. f5 A4 c8 p) e
  9.    switch $mom_pos_arc_plane {
    0 Y9 s5 H7 y7 u% `
  10.       XY { MOM_suppress once K ; set cir_index 2 }
    - J4 t; f' ~, ]2 H! P, @0 I
  11.       YZ { MOM_suppress once I ; set cir_index 0 }
    : T& a% S- x4 p$ F. n3 J8 t, J6 m+ C
  12.       ZX { MOM_suppress once J ; set cir_index 1 }
    9 G/ S+ F9 R- H8 i/ I  T7 [. i: y
  13.    }5 f& f, S. C9 s  v

  14. , A% `& W) T; r  r( L& }
  15.    switch $mom_sys_helix_pitch_type {
    * T  G- K* `5 G
  16.       none { }5 ~  {- T- |! O* M- ]$ g
  17.       rise_revolution { set pitch $mom_helix_pitch }( h, R4 p, y# ]% Y4 j; A! [: A
  18.       rise_radian     { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}- U5 _$ o  G7 c) K) k
  19.       other {6 Q* }. R4 B. r! }
  20. #
    ! q, S* a+ b& e4 V, |
  21. #  Place your custom helix pitch code here
    : H- T, u' ?6 N/ A4 V' x
  22. #
    ; t# r' ?8 c" f& Q
  23.       }
    , m1 h+ m/ n. z3 Y2 J: v' t
  24.       default { set mom_sys_helix_pitch_type "none" }. V" ~& d+ z  n; Y4 {' F5 E" e
  25.    }
    ( U, j- T( z) ^; q
  26. / S, H( w! X/ P( _3 F6 c9 S
  27.    # Make sure all X/Y/Z are output( b) T/ L. ?  j1 `3 P7 T7 n5 n/ H
  28.    MOM_force once X Y Z
    , p4 o7 A  k& q. R' G
  29. ) _1 M! ^) m, ~3 C0 L, R3 A
  30.    if { [string compare "none" $mom_sys_helix_pitch_type] } {' W% {# x  d# Y: V: _: p) R0 q

  31. 1 v% ~) V8 L) X4 M( L! i
  32.       MOM_force once I J K$ R! D) C/ B) N8 {- J# M/ N/ y
  33. # c# c% K: I+ L4 {
  34.       switch $mom_sys_cir_vector {
    & @! X- F, Z7 t$ b; q# ?! m6 y) g
  35.          "Vector - Arc Center to Start" {, y. t$ W* b9 h8 h
  36.             set mom_prev_pos($cir_index) $pitch
    : s; T  M' J: U7 i0 n- A2 r. [
  37.             set mom_pos_arc_center($cir_index) 0.0, v8 m( [& o5 p$ r- o( V
  38.          }
    3 ]1 t' C/ C3 C
  39.          "Vector - Arc Start to Center" -; S2 I4 g7 R- V/ s0 d% W# L: l
  40.          "Unsigned Vector - Arc Start to Center" {, `5 [. d# |! C$ e4 r
  41.             set mom_prev_pos($cir_index) 0.00 d8 N2 o7 v) @8 A0 f( N" g
  42.             set mom_pos_arc_center($cir_index) $pitch
    3 [; V2 Z/ n% B: N
  43.          }% r) d" V! C6 |7 O1 w$ ^* ?7 R
  44.          "Vector - Absolute Arc Center" {
    ! \% J2 t# u# [3 ~* f
  45.             set mom_pos_arc_center($cir_index) $pitch2 U+ e7 Y  H% v/ d5 H
  46.          }' n# J6 R( {6 K; n& ?0 e6 b
  47.       }' u4 ^7 g/ u8 F) I1 o. I1 C
  48.    }0 b  f& ?. O! ]. ~" O, |

  49. 1 r" k7 {2 X+ ^
  50. #
    & s8 N4 s+ B0 b) ~
  51. #  You may need to edit this line if you output more than one block  W9 h% w: i0 d8 j( K
  52. #  or if you have changed the name of your circular_move block template- R9 R# h: o7 v' ^" w: f
  53. #
    , U  u! H5 ^/ E, Y9 y) q; S3 Y
  54. #  ==> Do not call MOM_circular_move where CIRCLE_SET will suppress
    : v  a( U) `$ s$ @" q
  55. #      the Address of principal axis. Unless the "$mom_motion_event == helix_move?"5 e" y3 J0 {4 G
  56. #      condition can be reliably used in MOM_circular_move to resurrect the Address of principal axis.
    ; g" t( H( B5 a  B/ N, Z
  57. #0 i7 w/ [. p. V
  58.    MOM_do_template circular_move
复制代码
3 r9 Y5 ]8 f4 S/ N5 `
, F/ y) u, v9 k9 k, }+ J2 z
; l; d* f# ]) ?& v2 I
 楼主| 发表于 2016-11-15 19:24:40 | 显示全部楼层 来自: 中国河北保定
张文汽车 发表于 2016-8-1 16:20, H+ T5 C- F& ]0 j/ g
1.首先保往你NX里的刀轨是圆弧的
4 o6 L* T1 Q) b) D1 H  a2.使用高版本(比如8.5)就可以直接输出了
0 f8 \9 \* w0 ^; B( R6 T3.如果不是高版本可以参考一 ...

' C% I# Q+ N6 g张老师  这个代码是什么意思   我看不懂  不知道怎么弄  
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则


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

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

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