QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

全站
6天前
查看: 2191|回复: 3
收起左侧

[已解决] 后处理的问题

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

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

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

x
怎样生成螺旋铣的程序 现在出来的程序都是点坐标   恳请各位大师给解决一下
发表于 2016-4-6 22:01:20 | 显示全部楼层 来自: 中国台湾
多爬文,論壇裡有
发表于 2016-8-1 16:20:56 | 显示全部楼层 来自: 中国上海
1.首先保往你NX里的刀轨是圆弧的
& m) f, ^2 w6 ]2.使用高版本(比如8.5)就可以直接输出了
) _+ X% e# }$ |) _3.如果不是高版本可以参考一下高版本的PB_CMD_helix_move用户命令3 D; I( ]0 p7 V' Y
  1.    global mom_pos_arc_plane1 p  l5 q. ?0 ^+ k; n. L5 r( f
  2.    global mom_sys_cir_vector8 |8 I3 g) N0 ?4 g9 \
  3.    global mom_sys_helix_pitch_type. ]; O- q% Z/ W! ~/ v) _
  4.    global mom_helix_pitch3 v+ [2 J/ d' [$ ^8 B, k# c
  5.    global mom_prev_pos mom_pos_arc_center
    1 G! c$ x0 ]8 d" s/ }2 h
  6.    global PI
    - F7 [5 e7 @9 j6 J! J$ F
  7. / N+ C* r% i9 U5 m" s+ K
  8.   n3 z' Z& ?' M& r1 T5 l3 x
  9.    switch $mom_pos_arc_plane {
    - B/ J" \& V% V8 |  C& J0 v
  10.       XY { MOM_suppress once K ; set cir_index 2 }
    * h0 w8 G( S, K% e  Q
  11.       YZ { MOM_suppress once I ; set cir_index 0 }" _7 [2 p& m& E
  12.       ZX { MOM_suppress once J ; set cir_index 1 }
    # W5 I$ ?+ I, ^7 }2 S1 _" y, l
  13.    }
    : ^  `2 t; s0 N6 M
  14. " X( |! r- @. b1 ]# V
  15.    switch $mom_sys_helix_pitch_type {
    . ?% n* o3 ~9 d1 a
  16.       none { }( ]2 Q9 H* L  h0 W
  17.       rise_revolution { set pitch $mom_helix_pitch }
      I! n% M: R/ k. ]
  18.       rise_radian     { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}3 q. S; I6 j5 b+ T
  19.       other {' p, X' W. H( P
  20. #
    , j9 K/ C; O( W4 _% X
  21. #  Place your custom helix pitch code here# n) [. k% g% j  ]$ b/ {) k
  22. #
    : E8 i9 z% x$ V1 w, f+ o8 ~
  23.       }
    8 u2 ~4 Z9 r( j
  24.       default { set mom_sys_helix_pitch_type "none" }, G3 a* N4 h% b) x
  25.    }8 |8 q( n2 f  e0 x8 ^6 n
  26. % z# S6 t7 |7 i: Y8 k- X8 v
  27.    # Make sure all X/Y/Z are output: a" x' H! p% z
  28.    MOM_force once X Y Z' ]$ q$ W4 m2 U$ \

  29. 8 n5 }. u0 O; r' S
  30.    if { [string compare "none" $mom_sys_helix_pitch_type] } {  {7 R9 j2 k4 r* W7 p% P/ U, ]

  31. / P( Q5 g% b, o# n8 y
  32.       MOM_force once I J K
    2 D6 l/ d( M0 H

  33. 6 s3 C( w  S3 a" T) \
  34.       switch $mom_sys_cir_vector {1 s7 y6 Q4 n; u7 K
  35.          "Vector - Arc Center to Start" {
    # p4 r, M' ?0 Z% A% H# R
  36.             set mom_prev_pos($cir_index) $pitch
    1 ]6 _) c0 M% e# t
  37.             set mom_pos_arc_center($cir_index) 0.08 }: U# L% G+ W6 E4 n  V
  38.          }& E0 F' t+ M( c5 [
  39.          "Vector - Arc Start to Center" -" R6 R! R- K( A2 _" `' G
  40.          "Unsigned Vector - Arc Start to Center" {
    + d" Q& b8 ~3 z! s  b
  41.             set mom_prev_pos($cir_index) 0.0' |3 Y4 A$ G* M0 R
  42.             set mom_pos_arc_center($cir_index) $pitch
    4 s0 D) |3 X6 `8 z* I6 i
  43.          }
    9 ?  s) _3 r0 D) ?
  44.          "Vector - Absolute Arc Center" {% t* K4 s6 K8 ?" [; V2 }! p& u
  45.             set mom_pos_arc_center($cir_index) $pitch
    5 D3 T  i; h3 R% ^
  46.          }
    8 P% T4 c* r& \
  47.       }, y! e$ L% a7 d3 o* g2 f
  48.    }, O9 |  N' x+ q" a  W1 y. p+ r8 I

  49. 1 s& w$ T- V: K( M
  50. #
    : ]2 B0 I5 c$ N! ~5 g
  51. #  You may need to edit this line if you output more than one block
    , X' s- n# `, V" r: D
  52. #  or if you have changed the name of your circular_move block template* ~( _$ P6 l" I( `
  53. #
    6 I& t* q3 _, t$ v. D7 C
  54. #  ==> Do not call MOM_circular_move where CIRCLE_SET will suppress
    " b9 _! ^. C% g& o0 x" s
  55. #      the Address of principal axis. Unless the "$mom_motion_event == helix_move?"
    3 z( j9 {1 @# y% }& ?0 J
  56. #      condition can be reliably used in MOM_circular_move to resurrect the Address of principal axis.
    2 g# y; k( ]4 J; d; E
  57. #
      V8 n4 s6 A. x1 f' s
  58.    MOM_do_template circular_move
复制代码

6 q$ k/ h/ `2 x4 ]& @6 r( F
% y/ e+ j+ S, a& C
+ @  k; k9 f$ m) F+ \3 u- d7 y
 楼主| 发表于 2016-11-15 19:24:40 | 显示全部楼层 来自: 中国河北保定
张文汽车 发表于 2016-8-1 16:20
7 L$ t+ p2 h2 E& l: t( @1.首先保往你NX里的刀轨是圆弧的
2 K. w- ~# ~: X2.使用高版本(比如8.5)就可以直接输出了
( g3 c- O% l; n, y3 o8 S! L3.如果不是高版本可以参考一 ...
1 D/ O; W$ P7 X' p7 \* s& B
张老师  这个代码是什么意思   我看不懂  不知道怎么弄  
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则


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

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

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