QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

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

[已解决] 后处理的问题

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

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

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

x
怎样生成螺旋铣的程序 现在出来的程序都是点坐标   恳请各位大师给解决一下
发表于 2016-4-6 22:01:20 | 显示全部楼层 来自: 中国台湾
多爬文,論壇裡有
发表于 2016-8-1 16:20:56 | 显示全部楼层 来自: 中国上海
1.首先保往你NX里的刀轨是圆弧的, w& U3 G( P1 [" j3 n- D
2.使用高版本(比如8.5)就可以直接输出了
+ B/ {+ \  }/ ]; U. t) W" p, Q/ A3.如果不是高版本可以参考一下高版本的PB_CMD_helix_move用户命令8 L* b+ K/ M( U$ K
  1.    global mom_pos_arc_plane2 A+ O+ `( Y( ^  K# U
  2.    global mom_sys_cir_vector3 |2 S9 g+ u9 J5 ^
  3.    global mom_sys_helix_pitch_type! Q+ F- y; ^' K+ e$ [! c4 u
  4.    global mom_helix_pitch0 T* X( f% J4 w/ g9 ^
  5.    global mom_prev_pos mom_pos_arc_center$ ?' Z4 |1 Q4 y( j
  6.    global PI0 _! a' C/ j+ A5 `. E: _* k
  7. * @" P- W9 r9 t  s% X9 Z2 b+ K8 Q
  8. % }  U3 C# b3 N: P% E
  9.    switch $mom_pos_arc_plane {
    # M- f; m* E5 t0 a* |3 g6 d
  10.       XY { MOM_suppress once K ; set cir_index 2 }! [* K- L$ P% c3 m! T+ J6 k  C
  11.       YZ { MOM_suppress once I ; set cir_index 0 }* n+ b: }; s" ]. h' Z
  12.       ZX { MOM_suppress once J ; set cir_index 1 }# m* [8 {. N% z% h1 K! y* f
  13.    }
    " i' m3 R7 R6 v, ?

  14. ( n& Y$ A% g+ ~6 o+ S! U4 H5 S
  15.    switch $mom_sys_helix_pitch_type {
    ! i  k& |5 `1 @
  16.       none { }
    , I; c5 u% }3 Y9 Y6 U& k
  17.       rise_revolution { set pitch $mom_helix_pitch }1 R8 W2 F; M% B& h8 [$ F' N" A3 ^
  18.       rise_radian     { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}
    * V& ?3 i1 Z$ {. t* l
  19.       other {( ^! e2 ?- t* U, k; F0 `# f  f4 w
  20. #& l: P7 q% }: Y! J( g! {8 C' x
  21. #  Place your custom helix pitch code here5 }0 L( u  e2 p3 _" v
  22. #8 s5 M. {0 d5 h7 b  Q/ Q  e% h7 N
  23.       }
    9 h8 Z  @% j$ A: L7 q0 U0 X
  24.       default { set mom_sys_helix_pitch_type "none" }, x% P, V2 f6 n, `0 D4 c
  25.    }; L1 L% u1 K: ~  z! B
  26. 5 M5 W: A( x9 f) J" J" T2 H
  27.    # Make sure all X/Y/Z are output2 N8 t1 \2 Z8 }+ U0 C
  28.    MOM_force once X Y Z
    & z5 v  W3 y8 G4 u  t/ I( V( g1 k
  29.   J: B3 z# k; `9 i4 ^
  30.    if { [string compare "none" $mom_sys_helix_pitch_type] } {" e7 W# }# v7 l, f) m1 Q* a
  31. - Q- D4 A0 @, b" h5 Z) |% E
  32.       MOM_force once I J K% K7 F6 K! j" I
  33. " D1 `3 [! e+ u/ d' y4 j7 n
  34.       switch $mom_sys_cir_vector {9 C8 M% j$ t- b" l1 e' R: p- u
  35.          "Vector - Arc Center to Start" {
      L: {% d# ]# P
  36.             set mom_prev_pos($cir_index) $pitch3 O; ]) S& }& a6 @
  37.             set mom_pos_arc_center($cir_index) 0.0
    ) [5 @7 V$ m: s4 u
  38.          }# J, N4 \& {7 Q" J
  39.          "Vector - Arc Start to Center" -$ q& `; N: X7 [6 h* C9 B
  40.          "Unsigned Vector - Arc Start to Center" {
    4 Q  R, d" C% m4 `  T
  41.             set mom_prev_pos($cir_index) 0.0
    + Z5 t5 [; @, p3 |0 n
  42.             set mom_pos_arc_center($cir_index) $pitch
    . l- i: W  S. z7 C) [' Q9 O4 r
  43.          }# n* i9 e$ i: y6 i$ m) n4 s
  44.          "Vector - Absolute Arc Center" {/ s5 r& u5 R, e8 |% m& u# V/ J
  45.             set mom_pos_arc_center($cir_index) $pitch! i+ s- C) o+ V' u
  46.          }) \2 @7 r7 A; J5 z: n
  47.       }
    / B" m7 U1 L  L* M9 d9 v
  48.    }
    . N) Z5 ]8 E9 K" l4 k

  49. # E8 S1 W8 ~' H' D& ]6 y4 \4 y
  50. #
    9 b- `+ L( i" Q  V* I
  51. #  You may need to edit this line if you output more than one block
    ( }) q5 B, z  v/ ~; ~1 r* m
  52. #  or if you have changed the name of your circular_move block template0 z, I* k, z! f- d$ [
  53. #3 c, Z( s: r& d
  54. #  ==> Do not call MOM_circular_move where CIRCLE_SET will suppress
    $ _3 {' U& i4 c: A  G# e$ N
  55. #      the Address of principal axis. Unless the "$mom_motion_event == helix_move?"7 h; c" b  `1 f- n) M5 a; U2 j
  56. #      condition can be reliably used in MOM_circular_move to resurrect the Address of principal axis.$ @1 H7 e1 A) }9 i+ u# G) Z
  57. #1 m; Y- a9 _0 W. P0 y
  58.    MOM_do_template circular_move
复制代码
# B5 u4 [& y+ t  D& b9 ?
! a/ h' j! {9 D6 N0 U

% E# F5 b% U0 \8 C  d# I
 楼主| 发表于 2016-11-15 19:24:40 | 显示全部楼层 来自: 中国河北保定
张文汽车 发表于 2016-8-1 16:200 u) T% E$ o" u0 r- l0 G; E. C
1.首先保往你NX里的刀轨是圆弧的
0 L3 k! k2 U! b' c  k5 {2.使用高版本(比如8.5)就可以直接输出了2 ^7 Q2 T7 [! p: D/ K
3.如果不是高版本可以参考一 ...
" |1 F( @- y. z% s4 n& N' q
张老师  这个代码是什么意思   我看不懂  不知道怎么弄  
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

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