QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

全站
7天前
查看: 2193|回复: 3
收起左侧

[已解决] 后处理的问题

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

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

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

x
怎样生成螺旋铣的程序 现在出来的程序都是点坐标   恳请各位大师给解决一下
发表于 2016-4-6 22:01:20 | 显示全部楼层 来自: 中国台湾
多爬文,論壇裡有
发表于 2016-8-1 16:20:56 | 显示全部楼层 来自: 中国上海
1.首先保往你NX里的刀轨是圆弧的
! J3 B2 l' A. ^1 V! J4 ?1 M4 {2.使用高版本(比如8.5)就可以直接输出了
3 y" J! c4 f) K: h2 a3.如果不是高版本可以参考一下高版本的PB_CMD_helix_move用户命令! C% g( G. m/ X3 G; {5 q& a  Q- L
  1.    global mom_pos_arc_plane- e+ @) _7 d& J- F
  2.    global mom_sys_cir_vector
    6 B" \% z7 u7 e" u  h3 J
  3.    global mom_sys_helix_pitch_type
    - A% `: q# y# r: v  j% K
  4.    global mom_helix_pitch* q* |/ V+ H8 j
  5.    global mom_prev_pos mom_pos_arc_center. L8 L9 T/ T, F9 X# ~2 v& c) B# L
  6.    global PI5 B: R8 k! o7 E: P' a8 B  E9 H  C$ y; V
  7. 2 b# f0 j  {  F0 B1 f

  8. : k  }3 K1 |7 L
  9.    switch $mom_pos_arc_plane {
    2 y7 X. D7 U8 o& D# i, {% v: X
  10.       XY { MOM_suppress once K ; set cir_index 2 }" p# D, Q. Y4 Q! m
  11.       YZ { MOM_suppress once I ; set cir_index 0 }
    ' T$ p4 ]! Q1 }8 ~. C0 w
  12.       ZX { MOM_suppress once J ; set cir_index 1 }
    ' t( m# c6 N% Y" k3 g
  13.    }
    7 x1 F9 O' C2 F$ _# i6 c* ^

  14. " M3 |# m- J$ P" N* W+ m+ b
  15.    switch $mom_sys_helix_pitch_type {
    ( i: u! X9 i: ^: |6 L
  16.       none { }
    + e" w7 U- }$ F) M* m
  17.       rise_revolution { set pitch $mom_helix_pitch }
      _* [; t& }: t* X
  18.       rise_radian     { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}) Q+ ?* Y0 o. w# |& F7 ?- t
  19.       other {
    - l; V$ Z7 u* ]2 i
  20. #
    6 F$ g, i# s$ V5 o" k- x1 N
  21. #  Place your custom helix pitch code here8 u2 T; f8 T/ _) \. @9 ^
  22. #
    : [4 `$ T- c+ u5 x" r
  23.       }
    ( X( r" E1 {! Y% _
  24.       default { set mom_sys_helix_pitch_type "none" }! J+ o: y) y( V' \& {& E7 l
  25.    }
    # ]& T2 d: t, O7 ^6 k
  26. $ _! k4 k. n8 C7 f4 G% }& s7 Q, k
  27.    # Make sure all X/Y/Z are output
    " p: U% [# ?! V0 g; n" r& D
  28.    MOM_force once X Y Z0 p: h" T7 E; l6 v: A
  29. 9 r/ o' Q: O% \7 a, j9 \* W+ d% D
  30.    if { [string compare "none" $mom_sys_helix_pitch_type] } {
    & |6 L+ z+ P, K

  31. & y7 W% y1 C& P3 V7 J, o' C  j9 H6 i: ?
  32.       MOM_force once I J K
    9 K4 x2 P* c, R% W( I5 I4 F
  33. & p2 k5 \2 c3 t0 S4 k
  34.       switch $mom_sys_cir_vector {
    6 y& e2 t# H; p
  35.          "Vector - Arc Center to Start" {
    - G  W) G6 |: K/ a3 l0 y! W2 V! L
  36.             set mom_prev_pos($cir_index) $pitch
    : h1 U+ [$ f6 u' ]6 C. I( k
  37.             set mom_pos_arc_center($cir_index) 0.0
    - L, M+ ]: s2 E
  38.          }( ^! r1 ~2 s/ i' ]& T
  39.          "Vector - Arc Start to Center" -2 [4 q2 R9 z0 I
  40.          "Unsigned Vector - Arc Start to Center" {
    5 b7 B: D* f7 l! v7 f  M
  41.             set mom_prev_pos($cir_index) 0.0* m% r6 F' ]2 K# x8 q
  42.             set mom_pos_arc_center($cir_index) $pitch; q+ m9 E+ r4 `8 s
  43.          }  \+ p/ M8 @; X% B6 W* m* Z' k
  44.          "Vector - Absolute Arc Center" {
    2 T! }: L( x) n- L6 r
  45.             set mom_pos_arc_center($cir_index) $pitch% k- J) Y  P7 k6 Y* O3 M
  46.          }9 ^; O7 C& u. u4 a* s4 x7 \) C
  47.       }
    + C8 f8 k5 F+ ^! O
  48.    }
    ! M6 {/ \' M& H" G  |$ h( I: {

  49. $ F8 F" t8 \. q- l* c
  50. #* W0 y( R* F4 M1 y3 P8 l
  51. #  You may need to edit this line if you output more than one block) h) _$ n! D( k) V
  52. #  or if you have changed the name of your circular_move block template
    ) S3 R8 V5 g8 C# g; {
  53. #
    " c) |* V9 }- ]5 }7 \
  54. #  ==> Do not call MOM_circular_move where CIRCLE_SET will suppress
    ; h6 s& n: u. f
  55. #      the Address of principal axis. Unless the "$mom_motion_event == helix_move?"! K* _! \& E6 X) g& `, b
  56. #      condition can be reliably used in MOM_circular_move to resurrect the Address of principal axis.9 y9 I6 f0 b. F7 [5 N) w& j
  57. #2 }9 i2 {, @% i
  58.    MOM_do_template circular_move
复制代码

( I/ O- C7 E- }5 U3 J% b6 m1 l
5 p( u4 J1 C) A( ]  A! ?' Z) }( t+ _6 _  J/ c6 F7 D+ r7 r$ t8 M
 楼主| 发表于 2016-11-15 19:24:40 | 显示全部楼层 来自: 中国河北保定
张文汽车 发表于 2016-8-1 16:208 x! p- i, O; x" S; U) u/ @
1.首先保往你NX里的刀轨是圆弧的0 K; ?2 u/ `' z/ e, c! o0 A- H3 R
2.使用高版本(比如8.5)就可以直接输出了
+ \* |% h% K( R' [# Z# R3.如果不是高版本可以参考一 ...
- [) A/ i  P  F8 t* t# B
张老师  这个代码是什么意思   我看不懂  不知道怎么弄  
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则


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

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

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