找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: 若枫

[原创] G68.2UG后处理

 火... [复制链接]

0

主题

112

回帖

60

积分

注册会员

积分
60
发表于 2020-1-12 09:01:29 | 显示全部楼层
谢谢,正需要!
回复

使用道具 举报

0

主题

4

回帖

3

积分

新手上路

积分
3
发表于 2020-3-9 18:31:02 | 显示全部楼层
你好我好大家好
回复

使用道具 举报

0

主题

24

回帖

33

积分

注册会员

积分
33
发表于 2020-3-12 19:50:29 | 显示全部楼层
向老大学习,看看自己能搞到点什么东西出来
回复

使用道具 举报

0

主题

1

回帖

2

积分

新手上路

积分
2
发表于 2020-3-16 08:32:26 | 显示全部楼层
· UG精品后处理· UG精品后处理
回复

使用道具 举报

1

主题

16

回帖

27

积分

注册会员

积分
27
发表于 2020-3-24 07:46:06 | 显示全部楼层
见识见识。。。
回复

使用道具 举报

0

主题

7

回帖

5

积分

新手上路

积分
5
发表于 2020-8-8 16:45:51 | 显示全部楼层
global mom_kin_machine_type- |3 A8 ]# R2 |: ^
  global mom_kin_4th_axis_type mom_kin_4th_axis_plane$ S, X7 r( P# W' Z6 e- j
  global mom_kin_5th_axis_type
% h$ |# R0 D0 A: F, c  global mom_tool_axis mom_sys_spindle_axis mom_kin_spindle_axis' H( }0 \9 @( L$ }8 c# l; n" P
  global mom_pos
, Z% U$ h$ O6 n6 C  global mom_cycle_spindle_axis mom_cutcom_plane mom_pos_arc_plane9 j+ a6 e* s* L! \
+ x! |: e9 t( \+ d: G2 c* D6 M' J$ P

0 l  z( y8 r  ? # Default cycle spindle axis to Z* E. N# B5 P( w# P7 s
  set mom_cycle_spindle_axis 2
5 X+ `$ n2 k1 G# H. E: R
2 m3 o" e  P0 I: {& O# @
  E" R( }9 j+ M  if { ![string match "*3_axis_mill*" $mom_kin_machine_type] } {. O2 z7 x- b, q+ [& v
/ L9 y/ Q/ |3 Q1 W6 T
    if { $mom_kin_4th_axis_type == "Head" } {' P$ i4 v% Q+ v( R& ?5 c; u% L
# D" w* l7 D( K8 R! \) E
      if [EQ_is_equal [expr abs($mom_tool_axis(0))] 1.0] {
( Q3 @6 ~2 r- v2 T9 z/ x        set mom_cycle_spindle_axis 0
" }, B6 r2 F- A4 ]! `3 m5 \. _      }
% \8 q: e/ m0 L* O( A, u; I9 B. y  W
0 c2 r9 m: S' b# e      if [EQ_is_equal [expr abs($mom_tool_axis(1))] 1.0] {
8 c4 L8 _5 |/ Z        set mom_cycle_spindle_axis 1
/ R  w9 x. x# `& q, ^1 I      }0 B" S9 l+ r6 Y; h$ s
- b* k3 d+ M# M9 Y/ g
      if { $mom_kin_5th_axis_type == "Table" } {6 ~' ?) j* b7 b) [: ~- {

7 e6 `9 T( t/ z% ^* }, a/ e        if { [EQ_is_equal [expr abs($mom_pos(3))] 90.0] || [EQ_is_equal [expr abs($mom_pos(3))] 270.0] } {
  C" I/ p2 _. a+ b6 z
( P) Y" E, l% Q; w          switch $mom_kin_4th_axis_plane {( Z6 l4 |6 y4 [" z* }! X- N
            "YZ" {
  J0 {0 J8 Y' y9 }$ y; H( U: W              set mom_cycle_spindle_axis 1
, t+ r$ u' v1 X7 M- T: c5 s, J  R            }
; p" t4 r0 I4 H            "ZX" {' ~) T8 s4 C4 A8 @( m
              set mom_cycle_spindle_axis 0) e+ `" _" R6 D* h/ E
            }
7 K/ N; Y2 c) D) C3 D4 L# d5 x          }  u! J, H6 b. V8 k
        }% n" l, {9 _3 _2 t; r# V# r
      }
, E1 \, v+ z# }* ~    }: x) U+ S2 s, y7 P) |. y7 g5 q2 H
  }
1 }9 ^+ M& K8 o4 h7 l6 {" r+ y! W
- C, B! o$ [4 ~3 \+ z  X
  switch $mom_cycle_spindle_axis {& O! V; e. U9 G. y/ G
    0 {
5 {6 k4 o! T8 N, `      set mom_cutcom_plane  YZ
$ F+ p, s' }) g  V# h* V      set mom_pos_arc_plane YZ! ]0 p; O4 r; @+ L2 Q  T5 w  e
      set principal_axis X! a5 F2 m1 z$ s5 L7 ^) [" \! u
    }
1 N; d- u3 [3 h    1 {
8 H9 X" B* B0 y: v$ i/ j* X      set mom_cutcom_plane  ZX
; Y8 b# ?/ H/ S4 Z! e      set mom_pos_arc_plane ZX
* r/ {- k+ w& x+ `! B& Z* Y      set principal_axis Y
2 }! f+ A: |/ m1 T5 p; y% f    }" P3 U( X# w0 m; X
    2 {
2 U* p+ U* E7 h6 y      set mom_cutcom_plane  XY: F, ?* v; w1 d" n8 X
      set mom_pos_arc_plane XY  A5 M3 p6 o. E: r0 V0 k2 u6 v; b
      set principal_axis Z# \6 V  O2 e9 u% s$ r
    }- b4 X) z- }: d( n) u- b4 M" J" {
    default {( R! B& Y* j1 x6 E! |
      set mom_cutcom_plane  UNDEFINED. m5 T" D5 r' [
      set mom_pos_arc_plane UNDEFINED
" R  C4 z1 p: j8 p1 q      set principal_axis ""
* r( S( f$ S' c) Q) i    }" J4 t& h, d' Q5 H* H8 u3 X
  }
. S5 }  v, P, |) Z7 D7 m" h5 [  _6 A) r( V& G: U

# L3 Z6 V7 E6 n3 C, T7 G3 W  if { $suppress_principal_axis && [string length $principal_axis] > 0 } {# e3 T7 y+ s" v& {4 O
    MOM_suppress once $principal_axis# h. x! a: i, U# g, \& `6 m
  }
0 X# f! h/ t& Y" h! M3 c2 c1 ?- e! e" w$ l
; T6 s; U* ~( R6 \( V
  if { $force_plane_code } {4 z: o( T8 y: {( ~& D& S
    global cycle_init_flag8 U8 w* _' X# _! C$ {; W
2 h6 R1 f; P* U
    if { [info exists cycle_init_flag] && [string match "TRUE" $cycle_init_flag] } {
: b, s3 G6 ~4 }1 R( Y5 t      MOM_force once G_plane
, _- @, m5 j7 M    }
( F- n5 h/ g  |; L; B) p& d2 V, b  }
回复

使用道具 举报

0

主题

16

回帖

97

积分

注册会员

积分
97
发表于 2020-8-18 19:37:56 | 显示全部楼层
謝謝分享...........
回复

使用道具 举报

0

主题

25

回帖

22

积分

注册会员

积分
22
发表于 2020-8-25 22:31:32 | 显示全部楼层
多谢大佬分享试试看
回复

使用道具 举报

0

主题

11

回帖

20

积分

注册会员

积分
20
发表于 2020-8-26 23:30:14 | 显示全部楼层
支持版主 谢谢
回复

使用道具 举报

0

主题

19

回帖

15

积分

新手上路

积分
15
发表于 2020-8-30 11:57:34 | 显示全部楼层
謝謝大大分享6 T/ g7 \* [/ U
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /2 下一条

QQ|Archiver|手机版|小黑屋|若枫后处理论坛 ( 苏ICP备11015087号-1|苏公网安备32059002001368号 )

GMT+8, 2026-1-29 21:35 , Processed in 0.924530 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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