青华模具培训学校

用户名  找回密码
 注册

QQ登录

只需一步,快速开始

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

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

  [复制链接]
发表于 2010-9-30 14:12 | 显示全部楼层 |阅读模式
%% e5 ~& H' C% ~  }. x& f0 r
9 P# ?3 y& B0 b* k3 X% G. K
G00 X0.0 Y0.0 A-26.565 B12.604 S3500 M03
1 J& I/ E& O& f# g# U9 }& E4 ^G143 H01 Z100.4 Z+ V- k( e# F' P
X22.606 Y16.29
1 d# h( a2 y3 A& kZ13.819 N8 w3 T* |7 z* y5 @! y
X22.169 Y15.417# y& A  P  {0 Y3 i# T
Z12.064
5 ~: Z8 j! g" x) W& _, LG93 G01 X21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.286) R$ H7 y. f6 i: C  M* r8 m5 t0 d. |
X21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.286
$ g6 p% N* o' [4 @. Q. QX21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.286
3 G* @% \+ T, Z$ D& L! L( q. K5 x% g1 FX20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286- C( L  y( F# V
X20.53 Z7.654 F300. (如何修改ug后处理,在非旋转切削段加入G94)6 r6 ^- P+ ?+ ?0 Z
X19.843 Y16.42 Z8.216 F300.* c* }7 `' R; P' {8 z  J3 h
X19.791 Y13.742 Z9.568 F300.8 Q$ Q: A9 |% h3 l( o
X20.415 Y14.99 Z12.064 F300.
# x0 K. m5 `" V, A) Z" i# fG94 G00 Z13.81
5 y; N$ h; [2 pX20.852 Y15.863  z6 ]9 c) l( h/ H6 \8 M  J
Z100.
* u7 k5 C+ R% ~# d$ y. b6 dX0.0 Y0.0. ]* T/ T/ Z* p$ P( k8 S
M09  [7 P# w" Y' @1 D4 e  O
M055 G! A  ~) n/ `& M& G- @
G91 G28 Z0./ u% E& B4 j5 |6 t
M30
5 J- r! y! T; F' I! R%
发表于 2010-10-3 10:48 | 显示全部楼层
在Linear那裏加....., {9 x, u' _5 V' X
) \6 F) j6 h$ s- }7 v, P
另,G94模式下,F值也要重複輸出???還是沒法將G93/G94兩個不同模式的F模態搞定??
G94.jpg
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-4 09:38 | 显示全部楼层
%
; a$ g/ s! W- m# v6 u1 O5 I5 g2 X/ b% M" {' R1 d
UG内设置F300,用mmpr单位;输出nc F300内部转化成F4.286
! X) Q$ B4 z  D: U! cG00 X0.0 Y0.0 A-26.565 B12.604 S3500 M03
. P) @4 L7 Y; _) o! N. UG143 H01 Z100.6 h3 |' `! b4 u8 R5 S
X22.606 Y16.29( A" S9 ]5 ^& m- K$ q" ^$ O: k
Z13.81
' W( P& k  N$ aX22.169 Y15.417
3 d( M# B+ }9 W5 oZ12.064
) D0 Y6 h* ?7 u2 C: VG95 G01 X21.421 Y13.92 Z9.071 F4.286 (按图改成G94-feed rate mode;输出成G95)" y( Q% M3 y; j5 m8 W( i0 p
Y16.604 Z7.729 F4.286 (在非旋转切削段,无角度变化加入G94,F300 )
3 W% m1 n0 y( I% ~4 M+ M& bX21.385 Y16.816 Z7.632 F4.286 (不用输出F,因为上行有F)$ g* _$ Q/ I6 C( z  G& U
X21.256 Y17.006 Z7.569 F4.286 $ z# I5 S# P; Y% K" _$ s
X21.063 Y17.144 Z7.549 F4.286! b  t" D6 C5 d( b* N& q; l. {
X20.836 Y17.199 Z7.578 F4.286# k* u, T- Y+ E; Y0 r
X20.194 Y17.218 Z7.617 B12.223 F4.286 (旋转切削段 应改加入G93,模态)
$ c" U+ \/ G: m# C+ L$ iX19.548 Y17.23 Z7.64 B11.84 F4.286 (每行都有F4.286)  M6 U& C2 n, B0 S. e
X18.899 Y17.235 Z7.651 B11.456 F4.286
, q- a- C6 G4 |$ m
' q( k8 a1 {4 mX-20.836 Y17.199 Z7.578 B-12.604 F4.286& s* V  j! s; }) j( _9 o
X-21.137 Y17.191 Z7.574 A-26.549 B-13.202 F4.286
+ W4 H- H) \& R) E% b5 L& `X-21.442 Y17.169 Z7.567 A-26.502 B-13.796 F4.286
( l4 Z% u) a# c  h. `X-21.748 Y17.134 Z7.558 A-26.425 B-14.386 F4.286
$ Y& b% Y1 I" L# g  G8 W( k. X  P5 A- z& _4 O
X21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.286$ n! l+ Z! m3 h' @; i; {! e4 x
X21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.286
6 I2 ?* e" V! w+ kX21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.286
9 O/ f: d1 b1 a7 I6 l; |" E6 F' LX20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286+ F7 [/ g& O0 W0 Z# P6 W
X20.53 Z7.654 F300. (在非旋转切削段,无角度变化加入G94,F300 )
. t- |9 a# v" }7 ~9 O$ x2 J6 fX20.253 Y17.103 Z7.772 F300.- C7 V2 P0 P9 x/ M6 Y  Q
X20.031 Y16.929 Z7.914 F300.
8 n4 Y1 e9 }- S8 z: nX19.886 Y16.694 Z8.068 F300.3 j  o7 \7 B3 ?8 k
X19.843 Y16.42 Z8.216 F300.
  e; T6 R* L- F. UX19.791 Y13.742 Z9.568 F300.
! v3 H6 x. ?3 }9 W# q6 J' w/ \X20.415 Y14.99 Z12.064 F300.0 \" J  q* A1 t6 z0 `. R
G94 G00 Z13.81
1 O1 |. ~% X$ U* z3 Q% \& VX20.852 Y15.863
" g6 ?+ R  y* y# U" o0 o/ G- OZ100.! c! q/ [1 Q( i7 \
X0.0 Y0.0" i6 U2 F: U& r/ y6 `
M095 `7 G) ~$ e1 L& e; s# f8 E& G
M05# W, @! c* i( _. ~9 t
G91 G28 Z0., Y6 m5 m, N& k; Q
G28 B0.
$ a6 h9 d( j: k; `" e- \G28 A0.( B# a# O4 }7 _! _% T1 j
G91 G28 Y0.) N7 L! l- t* H: H8 Z4 p& H
M105 f5 K; U$ v# C& ^, W; Y
M12+ [) V+ M8 W6 n! c$ g' ^
M300 m1 ?4 F7 w4 w# T% l" V
%; A* c2 S, Q+ L5 i* c5 Z3 A# g

8 ~) E- J. x9 w8 ~没有达到要求!
回复 支持 反对

使用道具 举报

发表于 2010-10-4 10:15 | 显示全部楼层
樓主的看來是個五軸的POST,不好要求傳上網!9 v; c* t% |, x1 n4 B& N7 Q
我作了一個近似的,若不嫌棄可下去試試!!!
  \+ k3 m# j4 _. ?1.G95部分由於不瞭解樓主的需求,沒特別設定它!若您願意說明使用MMPR的原因,或可再深入研究!
" Y8 R0 s2 T7 `& a7 x2.G93的F值上限定在6000./ n' Y" V/ i( B' \. d! D
( R. n* x$ ?7 [% I3 s. X. y
程式碼如下===+ v! T# J1 k2 b8 {- g' {  ~, ?
%
# t6 f* o# \5 o2 {; YG91 G28 Z0.0
, j9 d( F0 T  \: sT11 M06
% P4 K0 h* ^9 j% P( ^0 [G00 B87.787( G5 M5 U% n/ U
A327.824 X3 s2 w+ ]! A- D$ f$ Y+ z2 g
S3200 M039 U! c; r$ {0 t# \7 y
G43 Z195.218 H11
. x5 d6 s  ~" v& uG90 X-36.639 Y1.415
/ D. w' N4 M4 E) QY1.416
3 O: s* z& P. H1 I0 nZ95.218
# ?3 ]% E" s- V" X  mG94 G01 Z89.618 F1000. M080 r' w* I: `* E/ E' E: D! k
G93 X-37.06 Y1.168 Z89.003 A327.589 B88.075 F2794.2076 H/ c) t5 k7 ?# w% ~
X-37.385 Y.978 Z88.522 A327.409 B88.3 F3578.611
$ D, ]/ w! u& {7 u:
: o6 L" N4 v; G& X' R6 B" yX-77.216 Y-5.312 Z62.136 A306.411 B121.204 F2864.371 Q( K+ ?1 U' Q/ A, ?
X-77.341 Y-5.515 Z62.148 A306.167 B121.322 F6000.
3 p9 K! Z" k( `. S2 _G94 X-80.008 Y-9.925 Z70.718 F1300.: S+ e* r( G, p* O' O6 K5 I) P' }
G00 Z170.718/ i1 L0 }! L- C, X% s& O
Y-9.924
5 n! v. W  e& N- P0 GG91 G28 Z0.0) z/ _# y7 @7 f; @( H7 R
M09$ F, |+ D- ^0 ?6 \
M05
3 a+ F, a- a" f+ M8 `' P. HM30. ]* ~- K5 ^9 ]9 J' O6 j. O! i& K) {
%

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,不好要求傳上網!7 H% L  j9 k7 I4 M3 |
我作了一個近似的,若不嫌棄可下去試試!!!
  G! U& ?; U( o/ v  }+ H5 c" {. V. l1.G95部分由於 ...5 N3 F1 l, r; c7 u6 |" e/ W
Yeager 发表于 2010-10-4 10:15
  i/ B' z, O. Q6 C/ ]

- D2 T+ [+ B$ |5 h* ]# [1 F& u- l* n  W6 D! i
有一新问题向Yeager请教,编程时给的切削进给F和后处理出来的G93的进给有着怎样的换算关系?为何编程时F给300,但后处理出来的G93后面的F仍会高达6000?这样子不能光刀呀!?
回复 支持 反对

使用道具 举报

发表于 2010-10-8 16:01 | 显示全部楼层
以下節錄自Mazak e650五軸車銑機的編程手冊,先啃啃e文吧:
/ @8 L4 I6 D* [/ W* F6 H
: l, Y) n2 C2 m! }; o7-14 Inverse Time Feed: G93 (Option)  ~8 F  D& [4 C% G! a4 X
1. Function and purpose
; ]9 R2 z! o2 t1 P6 QWhen tool radius compensation is performed for a smooth linear or circular small-line-segment
( c- @5 a. U9 n+ ~7 C; i% }command, differences will occur between the shape defined in the program and that existing" d5 ~1 s  u$ t7 t' |  P, x
after tool radius compensation. The feed commands with G94 and G95 only apply for the tool
# b* R6 v2 t1 ^9 k' ?- ypath existing after compensation, and the tool speed at the point of cutting (that is, along the
9 o/ Z' Z* V' [" M- j# Uprogrammed contour), therefore, will not be kept constant so that the resulting speed fluctuations! Q3 N1 e; }7 l; ]3 n7 _
will cause seams on the surface machined.
& A; L3 m& Z- Y% Z' D) R6 eSetting of an Inverse Time Feed command code makes constant the processing time for the
& e8 B2 H& v/ M5 W7 `corresponding block of the machining program, and thus provides control to ensure a constant
* D" G6 N! Q  x* h0 O8 F) Mrate of feed at the point of cutting (along the programmed contour).& @+ u5 b% ~" d9 _, M, |' b* [6 _
Setting of command code G93 specifies the inverse time assignment mode.* K2 I1 D0 u3 N
In the G93 mode, the reciprocal of the machining time for the block of cutting feed (G01, G02 or
  X7 B) _+ [# g! cG03) is to be assigned using an F-code. The setting range of data with address F is from 0.001
3 ^, B3 E* H- ~0 o0 C! pto 99999.999.
- A8 |. H; T6 ~# Z" ?The rate of feed for the corresponding block is internally calculated from the length of the
, i1 S- [  W& j- m- L- Uprogrammed contour and the value of the F-code.2 ]: a+ w+ h/ A# \, [& [2 t
- For linear interpolation (G01)
4 g! o/ v. D& j: K/ E[Speed] : mm/min (for metric system) or# K' Q9 N( b% r
inches/min (for inch system)
" C' \+ D% }( @/ w[Distance] : mm (for metric system) or9 G: y- i" [* y5 A% N) Q3 f+ p
inches (for inch system)
- v3 j# |+ ?; _6 o- For circular interpolation (G02 or G03)# h$ Q" v3 q! K5 A6 z
[Speed] : mm/min (for metric system) or6 `  R* j* J% y' [3 n- @8 t, g
inches/min (for inch system)
+ s  M1 \. o( `7 V7 |$ R[Arc radius] : mm (for metric system) or
6 u. @0 }+ c4 `" I" Hinches (for inch system)+ V/ O4 y8 W4 E, a5 u7 n: ?  s
2. Programming formats
3 R6 @; t5 j  e! A2 [- Linear interpolation: G93 G01 Xx1 Yy1 Ff1
. Z, ^1 }$ J. i: g- Circular interpolation: G93 G02 Xx1 Yy1 Rr1 Ff1& G5 a/ \5 J& }0 g  k" @( A
(Code G03 can be used, instead of G02, and code I, J and/or K instead of R.)  |0 a/ ]) q  ?# n
3. Precautions! Y+ h4 ]0 a# D  Z/ n
- Code G93, which belongs to the same G-code group as G94 (feed per minute) and G95 (feed! Z4 Q  ?. [+ W) _
per revolution), is a modal G-code.: M- a8 Q& ^1 O
- Since they are not processed as modal codes in the G93 mode, F-codes must be set for each* Z/ a/ K) r' S+ V
block. The absence of F-code results in alarm 816 FEEDRATE ZERO.
5 k% W) A0 I3 Q2 h3 i- Setting of F0 during G93 mode results in alarm 816 FEEDRATE ZERO.
: E+ b9 L9 n. a0 y- For a corner insertion block during tool radius compensation, the F-code value in the previous3 P+ {" \% n; u  W* Z
block is regarded as the inverse time command value.
" X  O; R$ s- C) O/ y- 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, 2025-4-5 22:28 , Processed in 0.064717 second(s), 28 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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