QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

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

[已解决] 后处理的问题

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

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

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

x
怎样生成螺旋铣的程序 现在出来的程序都是点坐标   恳请各位大师给解决一下
发表于 2016-4-6 22:01:20 | 显示全部楼层 来自: 中国台湾
多爬文,論壇裡有
发表于 2016-8-1 16:20:56 | 显示全部楼层 来自: 中国上海
1.首先保往你NX里的刀轨是圆弧的% V& G! _" f( k; {. |
2.使用高版本(比如8.5)就可以直接输出了
1 f( W& f$ u7 l& ?3.如果不是高版本可以参考一下高版本的PB_CMD_helix_move用户命令
' `; Q# \  J. n8 h8 r8 J
  1.    global mom_pos_arc_plane  w- T% X0 j  U8 n: l# Q; }4 i
  2.    global mom_sys_cir_vector
    0 ^- s2 u$ y7 B/ ?7 y6 a% }" d
  3.    global mom_sys_helix_pitch_type- m* d# V" H# M6 W
  4.    global mom_helix_pitch$ R/ m. e. r3 u* E/ g5 Z, K& {. a% a) c/ H
  5.    global mom_prev_pos mom_pos_arc_center
    ' X' M, s  r# H8 X8 O
  6.    global PI' _9 y% s* R" w7 l+ [' y& ^  ]  x
  7. + y- C$ ?5 S4 g: M/ \
  8. % J+ q. }1 A; n4 E3 C( T8 \3 p; @
  9.    switch $mom_pos_arc_plane {
    . m  T+ U( w* o4 L6 l1 v9 Y
  10.       XY { MOM_suppress once K ; set cir_index 2 }
    ' v8 D' u7 {* z+ K- O& B
  11.       YZ { MOM_suppress once I ; set cir_index 0 }' J) J  T# S& b% ~! l
  12.       ZX { MOM_suppress once J ; set cir_index 1 }
    7 i% e. r, \) g/ K- o
  13.    }
    . ~: h, ~- u; _% k( |" z
  14. ; H( V. `2 S1 c
  15.    switch $mom_sys_helix_pitch_type {
    & O, c- f9 E6 M1 i$ e# R5 ^: J
  16.       none { }
    6 k/ k2 G3 B! k+ p! w* |
  17.       rise_revolution { set pitch $mom_helix_pitch }
    / [; |6 u* ?$ S5 b2 }
  18.       rise_radian     { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}% f" i3 {; k" J4 m6 U: W2 v: G
  19.       other {$ w% x9 N/ z# m2 k4 g0 ?9 _
  20. #
    , q& s. u2 I8 X  l5 v, D9 q
  21. #  Place your custom helix pitch code here
    # N' H) Z& ^! U* j
  22. #
    3 @+ v0 V* N0 ^6 l
  23.       }5 N/ v! \  M2 k4 E3 R
  24.       default { set mom_sys_helix_pitch_type "none" }& Z; H5 }+ }/ v  z
  25.    }5 ]6 K& L' x( [$ u! g0 A

  26. 8 I; p' Y8 C7 h. R( U: B. E9 g
  27.    # Make sure all X/Y/Z are output
    , ^3 j( D# y9 `  O! e
  28.    MOM_force once X Y Z) m& k  W! B2 E% F

  29.   V. Y1 I: |; _7 o5 ~
  30.    if { [string compare "none" $mom_sys_helix_pitch_type] } {
    1 N: F% M" ]" o* f( I" j

  31. : N) F) F' b1 ^. B7 w% C
  32.       MOM_force once I J K! T: B2 u" E: g4 x6 A5 u( n& ~

  33. ! P1 f1 \: H2 J  k: A/ T. q4 j
  34.       switch $mom_sys_cir_vector {( f/ s, @  p, k3 J- b/ W9 c
  35.          "Vector - Arc Center to Start" {; l+ b! \1 n. |4 n- S; N
  36.             set mom_prev_pos($cir_index) $pitch
    - E4 `! o# l0 x9 c2 E/ j8 Q
  37.             set mom_pos_arc_center($cir_index) 0.0
    ( {3 s4 y$ Q" {/ P" i/ c9 Y. d
  38.          }
    ( O5 A( k/ O6 Z& j8 h; h5 `6 {
  39.          "Vector - Arc Start to Center" -6 I. K! a" q7 `! U
  40.          "Unsigned Vector - Arc Start to Center" {
      S/ V: b1 h2 T* Z5 I! T
  41.             set mom_prev_pos($cir_index) 0.0( D- }& s' }/ J
  42.             set mom_pos_arc_center($cir_index) $pitch
    # E+ j! A5 T! N6 [' p7 u
  43.          }
    ' ?: s- }7 n* v, }
  44.          "Vector - Absolute Arc Center" {
    8 h8 D0 {4 c: F- Q* W. y4 @! H+ ]+ Z
  45.             set mom_pos_arc_center($cir_index) $pitch
    ) j1 ^5 Q+ s  M5 p& J6 U
  46.          }
    $ i' d( X7 T. t/ s! G
  47.       }. ]5 Z* z: s* O$ u
  48.    }5 v+ Y/ j1 g% T* p7 \

  49. ' x5 X+ j. ?9 z6 s
  50. #0 x. l& J( O# K* k3 A" H! T
  51. #  You may need to edit this line if you output more than one block
      |! W( [* g+ }+ p
  52. #  or if you have changed the name of your circular_move block template
    9 g; `  r5 [' \
  53. #
    ! \, c5 g2 C. d6 ~) D0 U
  54. #  ==> Do not call MOM_circular_move where CIRCLE_SET will suppress, K( r! a( Q2 w- E% O6 W
  55. #      the Address of principal axis. Unless the "$mom_motion_event == helix_move?"8 X- d. W# D$ Z  P4 Z* p
  56. #      condition can be reliably used in MOM_circular_move to resurrect the Address of principal axis.
    0 I0 O7 s/ R1 _6 [' ]3 _6 K
  57. #
    % u% M) k$ |1 m5 @: \+ Z1 D
  58.    MOM_do_template circular_move
复制代码
: c* h3 o9 r0 W( a* F( w
5 ?/ b2 R. Y7 o5 f, N

' D1 |; A4 `4 w! K$ E  Y+ a
 楼主| 发表于 2016-11-15 19:24:40 | 显示全部楼层 来自: 中国河北保定
张文汽车 发表于 2016-8-1 16:20
  Z! E& o' P, B) h+ W4 C1.首先保往你NX里的刀轨是圆弧的
( ~9 Y3 P7 W) }' ]" S) Y  n2.使用高版本(比如8.5)就可以直接输出了
# P- b% F3 B% T0 ]- h% }0 h3.如果不是高版本可以参考一 ...

4 j0 r* z; ^7 O( G# @2 ^张老师  这个代码是什么意思   我看不懂  不知道怎么弄  
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则


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

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

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