青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

青华模具培训学院
查看: 12011|回复: 32

[疑难] 制作哈斯5轴后处理

  [复制链接]
发表于 2010-9-30 14:12 | 显示全部楼层 |阅读模式
%
$ Q! x$ @  K! J9 [! R/ ]0 n, f, P4 Q. D: w0 p
G00 X0.0 Y0.0 A-26.565 B12.604 S3500 M03
* U- W2 a/ B2 V3 `G143 H01 Z100.
* l4 {" Z9 `! d' ^9 \1 o+ t1 dX22.606 Y16.29* E- O5 h) p3 e5 n  B) k( S" y* `0 R
Z13.81" d3 ~$ E- }, g/ ~7 k" o
X22.169 Y15.417
8 V; b& A% G6 z  t/ DZ12.0647 D0 H6 p  N0 T
G93 G01 X21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.286: |7 b# G; ]2 J% J: X. B4 P. v- Q' ^
X21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.286# @8 J% u1 D9 x2 i; \* s
X21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.286
6 @! o$ Y6 G# z% Q4 f' pX20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286
; r. p6 O: h3 n. tX20.53 Z7.654 F300. (如何修改ug后处理,在非旋转切削段加入G94)
8 p& q! d9 u9 d* J1 c) y' Y, PX19.843 Y16.42 Z8.216 F300.9 @( N: o4 _& f% v6 w
X19.791 Y13.742 Z9.568 F300.* E; [3 m) H2 Q- P9 m5 @
X20.415 Y14.99 Z12.064 F300.
% H) l: g; S$ d7 Y4 ZG94 G00 Z13.81
% y+ [2 P" U, m$ [) ]: }1 f+ GX20.852 Y15.863
7 H7 C' g4 I/ v. v& x4 eZ100.
0 ]0 P9 \% k  z" F$ T4 o" pX0.0 Y0.0
/ `1 v" f- C" S, mM09
4 |" v2 x& y/ D7 i2 G# b) t- eM05
5 K& w$ w( O/ cG91 G28 Z0.* V" d. o( N. c( g5 y$ \
M30
/ r' b: ?: U; G+ P. \% ^%
发表于 2010-10-3 10:48 | 显示全部楼层
在Linear那裏加.....
, r! `7 D, G* Y7 g/ g/ b
6 B7 g: k$ B% C/ r3 B+ x: M另,G94模式下,F值也要重複輸出???還是沒法將G93/G94兩個不同模式的F模態搞定??
G94.jpg
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-4 09:38 | 显示全部楼层
%( k2 Z/ ^$ T2 R" k3 g
  C2 W. L$ t- t" Y5 Y6 u! K+ n2 q
UG内设置F300,用mmpr单位;输出nc F300内部转化成F4.286
" J; i+ F. \2 tG00 X0.0 Y0.0 A-26.565 B12.604 S3500 M03
1 P% H6 u9 t# p7 C. CG143 H01 Z100.' Q9 Y% F$ X0 J& y! ]- l, A1 x
X22.606 Y16.29
$ Q( ^0 U. I* u" ]4 @6 uZ13.81
. ^* B+ c* j) }8 m& f# ?X22.169 Y15.417) C! T+ H2 _+ R) S1 y
Z12.064+ @3 d# @/ W& ?# }2 h: K, A+ Z
G95 G01 X21.421 Y13.92 Z9.071 F4.286 (按图改成G94-feed rate mode;输出成G95)
4 ~$ n4 f: P- `  PY16.604 Z7.729 F4.286 (在非旋转切削段,无角度变化加入G94,F300 )
3 Q/ z, q3 n& q9 l) A( KX21.385 Y16.816 Z7.632 F4.286 (不用输出F,因为上行有F)
8 r! I. n# a) d2 Z# kX21.256 Y17.006 Z7.569 F4.286 # |; Y1 {( Q  d) R3 m" [4 G2 o
X21.063 Y17.144 Z7.549 F4.286
3 |3 x7 G! _" K. L0 K1 j( W/ XX20.836 Y17.199 Z7.578 F4.286
! t( u. i! g6 V/ \1 y$ {/ h6 P9 GX20.194 Y17.218 Z7.617 B12.223 F4.286 (旋转切削段 应改加入G93,模态)
7 Q1 c. y2 X8 n9 r$ P0 P2 v- _8 YX19.548 Y17.23 Z7.64 B11.84 F4.286 (每行都有F4.286)
. g- T# L6 k( O7 {X18.899 Y17.235 Z7.651 B11.456 F4.286
- r2 n& x: u- y! f& B% b
3 ?& v3 @  _9 m* L2 RX-20.836 Y17.199 Z7.578 B-12.604 F4.2866 g- T# G# l% [
X-21.137 Y17.191 Z7.574 A-26.549 B-13.202 F4.286: F) b8 X1 T9 X" H2 O6 ?8 X
X-21.442 Y17.169 Z7.567 A-26.502 B-13.796 F4.286
5 R3 B  h/ e9 C* }9 |. f& iX-21.748 Y17.134 Z7.558 A-26.425 B-14.386 F4.2860 ?% H3 g. ~7 R, }3 I; ^' Z+ Q# o
9 @+ g# ^" w0 }3 `$ D2 x
X21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.2862 m' `1 Q. |  n8 ?* M4 V0 p
X21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.286& ]2 o; c3 X  p" z3 b; k
X21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.286
# Q9 [  f, k! q; c" }X20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286- l$ Y' e% S4 k1 x
X20.53 Z7.654 F300. (在非旋转切削段,无角度变化加入G94,F300 )1 ~- t+ Z: k0 H: o# y. u5 D
X20.253 Y17.103 Z7.772 F300.- i; X. H8 ~. s4 p
X20.031 Y16.929 Z7.914 F300.3 x* w& m6 A( e& w7 F' y0 ?
X19.886 Y16.694 Z8.068 F300.8 O, |# ~. ~2 V" b0 Z7 T( @) V
X19.843 Y16.42 Z8.216 F300.% n1 K) u, `" i3 v) ?5 F* s$ k
X19.791 Y13.742 Z9.568 F300.# R( d8 r+ F; |# n0 k, J
X20.415 Y14.99 Z12.064 F300.; t1 a+ u# B! P. O) W1 d9 X
G94 G00 Z13.81
5 W/ R# I# m2 Q2 k9 Y+ X2 ?X20.852 Y15.863* W& C& C( g' D; S& Q: x5 B
Z100.% h& ^, z, ?& j# f) V
X0.0 Y0.0/ R; Y5 W, [0 H2 g3 w, F$ Q: {
M09
1 t$ ]; F# ^7 VM05( b; l1 M' W3 }  V8 U
G91 G28 Z0.
& W/ A7 U: {* G% G3 EG28 B0.( d8 e2 E* |+ |- b' ]- ~- }* k
G28 A0.
7 L  [1 K  O" hG91 G28 Y0.* A9 S; @& ?1 w/ [2 v8 S3 P& y
M10
- S0 p3 n* w8 h# [; p2 j) X( _# D% tM12
+ w/ l5 ^  u& f* m. E5 i. O% q/ cM30* |+ g& Z( N: d3 D" r. x/ W
%! g+ x3 `1 Y( _3 t# ^& ^

. ~9 h. _# K3 Z5 v没有达到要求!
回复 支持 反对

使用道具 举报

发表于 2010-10-4 10:15 | 显示全部楼层
樓主的看來是個五軸的POST,不好要求傳上網!% N/ U) `: }) A
我作了一個近似的,若不嫌棄可下去試試!!!
3 C+ G2 a7 b* k2 m1.G95部分由於不瞭解樓主的需求,沒特別設定它!若您願意說明使用MMPR的原因,或可再深入研究!) a- F! A  W. e( P' @6 t  H
2.G93的F值上限定在6000.
0 B# c$ I3 C1 Q0 s3 h! i( m, q6 d/ }6 b, s1 `: m
程式碼如下===) W0 W* j1 h) J% C
%
, [! v" \: I8 E6 ]* dG91 G28 Z0.0# B4 C& B0 k: i  I
T11 M06
3 Z/ G( p, j/ Y* H* R9 D& BG00 B87.787
! ?* I+ }+ v2 o. g1 u: u6 _% r4 k( SA327.820 G* k! o( ^: _' ~
S3200 M03+ Z) W9 O+ o% J( a0 o7 a
G43 Z195.218 H11
! d$ A* o# N* A! D' @G90 X-36.639 Y1.415  g5 ~5 u& X' j0 }& h
Y1.416
5 Y- Z; f$ }& JZ95.218
0 d1 |! G% _' wG94 G01 Z89.618 F1000. M08. v3 Q/ r* Y& L5 t5 L
G93 X-37.06 Y1.168 Z89.003 A327.589 B88.075 F2794.207
! t) ~! O. H* |$ c' QX-37.385 Y.978 Z88.522 A327.409 B88.3 F3578.611
# J; U8 {& |* a0 N0 ]0 H:
  ~/ e; k6 S! a  r/ ~+ zX-77.216 Y-5.312 Z62.136 A306.411 B121.204 F2864.37, W, W0 l& K/ K, ~/ n3 N
X-77.341 Y-5.515 Z62.148 A306.167 B121.322 F6000.
+ `/ D1 z8 [( v! r0 }  u3 n( YG94 X-80.008 Y-9.925 Z70.718 F1300.
3 F5 U: _6 C* x1 c! s7 ?G00 Z170.718
$ n9 s$ s9 g; v( G" n% ?8 [Y-9.924
( Z/ h+ I+ Z- x. S2 ?G91 G28 Z0.02 R/ B- y( R- E# D8 c
M09* Q6 Q3 R( j; C( B2 }' F2 o
M05
2 b" V# i* k" G1 b3 n5 ZM30( G. x. M; V7 p( M; K6 `
%

Hass_Test.rar

35.85 KB, 下载次数: 362, 下载积分: G币 -1

回复 支持 反对

使用道具 举报

发表于 2010-10-4 19:24 | 显示全部楼层
这个问题也困扰我好久了。多谢Yeager指教!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-5 14:37 | 显示全部楼层
上传哈斯资料,供大家学习
ce1.jpg

哈斯资料.part1.rar

976.56 KB, 下载次数: 513, 下载积分: G币 -1

哈斯资料.part2.rar

976.56 KB, 下载次数: 439, 下载积分: G币 -1

哈斯资料.part3.rar

976.56 KB, 下载次数: 456, 下载积分: G币 -1

哈斯资料.part4.rar

680.26 KB, 下载次数: 287, 下载积分: G币 -1

回复 支持 反对

使用道具 举报

发表于 2010-10-5 22:40 | 显示全部楼层
樓主原本的問題,看似還未能解決?!?!?
回复 支持 反对

使用道具 举报

发表于 2010-10-8 03:40 | 显示全部楼层
樓主的看來是個五軸的POST,不好要求傳上網!
# f8 w* E. D. G5 O" Z我作了一個近似的,若不嫌棄可下去試試!!!
6 K0 D; i! W3 O& a6 l5 G1.G95部分由於 ...0 {8 E* p% a% B# J+ V) n# d
Yeager 发表于 2010-10-4 10:15
. c% r6 \4 ~+ F; `  ?# ~& q

2 J6 j( X3 S8 M1 C0 `$ \# |
0 j7 Y2 H* v/ q+ z" x9 D0 i" n 有一新问题向Yeager请教,编程时给的切削进给F和后处理出来的G93的进给有着怎样的换算关系?为何编程时F给300,但后处理出来的G93后面的F仍会高达6000?这样子不能光刀呀!?
回复 支持 反对

使用道具 举报

发表于 2010-10-8 16:01 | 显示全部楼层
以下節錄自Mazak e650五軸車銑機的編程手冊,先啃啃e文吧:9 i) U) g' U5 P4 G* X4 \+ m

9 U* k+ h/ }1 f& Y7-14 Inverse Time Feed: G93 (Option)
' y1 o2 R& l8 Y- P" A0 ?$ a! j5 N1. Function and purpose! M  `* B# H3 l# E  I' C
When tool radius compensation is performed for a smooth linear or circular small-line-segment
* E1 b$ Y; M; b/ u7 \2 \' Y3 s1 Pcommand, differences will occur between the shape defined in the program and that existing
4 L  ?0 o. A* d8 uafter tool radius compensation. The feed commands with G94 and G95 only apply for the tool
' k" a! ~0 P: b# _1 X* Vpath existing after compensation, and the tool speed at the point of cutting (that is, along the
! i& D* _5 n2 `; cprogrammed contour), therefore, will not be kept constant so that the resulting speed fluctuations
$ ]" n8 v4 w$ O+ u/ d  gwill cause seams on the surface machined.
  z; W& l- C0 fSetting of an Inverse Time Feed command code makes constant the processing time for the
& N3 r) g/ k& B0 j! ^" Scorresponding block of the machining program, and thus provides control to ensure a constant& A8 Q- V) C* p1 f2 l
rate of feed at the point of cutting (along the programmed contour).
# U6 s) F8 M/ H, f3 KSetting of command code G93 specifies the inverse time assignment mode.! G' F# _4 v6 g* x+ P
In the G93 mode, the reciprocal of the machining time for the block of cutting feed (G01, G02 or3 v6 p7 j5 Z7 K- ^& b! X
G03) is to be assigned using an F-code. The setting range of data with address F is from 0.001
7 Y2 x7 ?9 U' K- {to 99999.999.) k) ^; E2 u* w
The rate of feed for the corresponding block is internally calculated from the length of the# g4 g3 s* J# q0 ~8 M4 k
programmed contour and the value of the F-code.! z  R1 ^+ O5 j8 Y$ M. j" W! Y
- For linear interpolation (G01)
! c/ a' h, ]6 D# o$ I( p  x[Speed] : mm/min (for metric system) or- h+ W6 F! y, y4 M; ^% a
inches/min (for inch system)4 ]2 q  Q# O! x# Z
[Distance] : mm (for metric system) or  b) j) X0 F1 i, Y! n
inches (for inch system)- s0 H! m7 E' [  Q: w6 P5 N: {
- For circular interpolation (G02 or G03)
$ \# C3 F3 J7 Y' H: J[Speed] : mm/min (for metric system) or- _9 E) G! D3 P8 W6 v8 q
inches/min (for inch system)+ r4 c$ P* V. o' g8 S
[Arc radius] : mm (for metric system) or
. r4 `& A- V$ a( C1 \inches (for inch system)# E, O+ r$ U& N  M3 \% l7 u# R" _
2. Programming formats6 h- q0 _9 L! V6 C  |) h
- Linear interpolation: G93 G01 Xx1 Yy1 Ff1# r# e/ D2 q) d6 E  Z8 t
- Circular interpolation: G93 G02 Xx1 Yy1 Rr1 Ff1
. f7 S9 I0 L0 ~  `- t. ?(Code G03 can be used, instead of G02, and code I, J and/or K instead of R.)
4 S+ H+ n, ~* w3. Precautions- p  G) e+ U) x4 k. X
- Code G93, which belongs to the same G-code group as G94 (feed per minute) and G95 (feed
6 W7 Y. k) j- ~7 R' p/ Cper revolution), is a modal G-code.- ^- q2 \/ J$ Z- |9 |! s% k  g3 n
- Since they are not processed as modal codes in the G93 mode, F-codes must be set for each' \% j8 \% S5 n5 E  c3 a; C
block. The absence of F-code results in alarm 816 FEEDRATE ZERO.6 b7 g2 l9 w# b
- Setting of F0 during G93 mode results in alarm 816 FEEDRATE ZERO.
3 t& x7 P3 I$ ~4 u- For a corner insertion block during tool radius compensation, the F-code value in the previous
* m$ P# `" U0 a& j7 n) G- R0 x( eblock is regarded as the inverse time command value.
6 q  H& |  a. }/ x& Q- A modal F-code must be set if the G93 mode is changed over to G94 or G95.
G93.JPG
回复 支持 反对

使用道具 举报

发表于 2010-10-9 13:17 | 显示全部楼层
,再次感谢Yeager真情赐教!我厂的五轴为双转盘,A轴正负120度,B轴360度。由于机床设计上的原因,程式中A轴正角度输出时,经常会导致Y轴超程;而输出A轴负角度时,Y轴一般不会超程。我的后处理,有时输出A正,有时输出A负,很让人苦恼。那么,后处理要作何修改,使后处理出来的程式正确固定输出A轴负角度?
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|关于我们|sitemap|小黑屋|Archiver|手机版|UG网-UG技术论坛-青华数控模具培训学校 ( 粤ICP备15108561号 )

GMT+8, 2024-11-26 16:27 , Processed in 0.083364 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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