青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

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

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

  [复制链接]
发表于 2010-9-30 14:12 | 显示全部楼层 |阅读模式
%
+ f9 L: b  W& q  G( F  `* U" F
, O& u& X* O' x& n* g7 {G00 X0.0 Y0.0 A-26.565 B12.604 S3500 M03
. h8 y' b9 o3 ?G143 H01 Z100.
0 I, [, W* n/ Z8 aX22.606 Y16.29+ d$ p3 l  J. t% Y" H& R7 {/ z
Z13.81; r9 x3 D8 @$ v% t
X22.169 Y15.417+ G2 y  @8 r; n. B9 r9 F: K
Z12.064
4 o; z' E5 Z' I( x6 T( ~; DG93 G01 X21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.286! _5 U3 {7 D. ]: k
X21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.286
2 s5 {# b2 }2 j& z% |( q9 XX21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.286
1 f8 q7 Y2 t0 l1 i! `2 w* \X20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286
7 o$ S- m: m+ }* z+ S3 V5 eX20.53 Z7.654 F300. (如何修改ug后处理,在非旋转切削段加入G94)
% ]4 k+ v! P7 F/ G/ N! a# ?2 j% AX19.843 Y16.42 Z8.216 F300.
3 o/ A" @% A( m2 ZX19.791 Y13.742 Z9.568 F300.3 a8 @" W& [, e, u7 r5 g5 B
X20.415 Y14.99 Z12.064 F300.! \( P9 Z+ i) w/ M$ k1 F
G94 G00 Z13.810 Z: G* h  R0 f- j) b+ d2 U. N
X20.852 Y15.863
5 g% Y9 i, r+ f' l% [( Q# s3 vZ100.
$ B1 q# M4 i) g- QX0.0 Y0.0
7 q2 s) _- O) E0 [2 ], t3 R* R# YM096 E3 u, G' V  D
M05
4 s6 c: G) j! Y2 r8 c9 G; ?- l3 b' lG91 G28 Z0.
' r3 r4 L( |. X+ E' fM30
$ z' D9 R1 M; ]* a  U" x, Q%
发表于 2010-10-3 10:48 | 显示全部楼层
在Linear那裏加.....
" Q7 S+ Y! s/ G% O, f6 o1 l" `% G9 x9 Y6 r, o: T8 e
另,G94模式下,F值也要重複輸出???還是沒法將G93/G94兩個不同模式的F模態搞定??
G94.jpg
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-4 09:38 | 显示全部楼层
%" i6 A; |7 s, l1 v4 v3 ~9 J
8 U2 ^* |6 h# R; }$ I
UG内设置F300,用mmpr单位;输出nc F300内部转化成F4.2860 K% x9 E/ w! G) R
G00 X0.0 Y0.0 A-26.565 B12.604 S3500 M03
, O7 G, C1 n/ W: R  xG143 H01 Z100.
: ~, x: F1 q; b: lX22.606 Y16.295 ]& w3 V, \( R$ i+ u/ y& k
Z13.811 u& s3 u3 f/ t& J' s4 A
X22.169 Y15.4179 Y- q& S4 T, R0 T
Z12.0645 N2 i1 e- i1 Z0 A0 V5 G: G
G95 G01 X21.421 Y13.92 Z9.071 F4.286 (按图改成G94-feed rate mode;输出成G95)1 {( p, ~" _7 @8 \+ p" J
Y16.604 Z7.729 F4.286 (在非旋转切削段,无角度变化加入G94,F300 )/ ]& h; o) c3 c3 I- i7 D0 M
X21.385 Y16.816 Z7.632 F4.286 (不用输出F,因为上行有F)1 i2 f: Y& z1 O" g4 G, G9 L
X21.256 Y17.006 Z7.569 F4.286
; G' Y( c! a8 {: ?1 JX21.063 Y17.144 Z7.549 F4.286  i9 p1 d1 m* H% _' H! ^
X20.836 Y17.199 Z7.578 F4.286
) W4 _: j5 g$ d" RX20.194 Y17.218 Z7.617 B12.223 F4.286 (旋转切削段 应改加入G93,模态)+ B& p# `( {6 O7 c: w+ Y# P# J
X19.548 Y17.23 Z7.64 B11.84 F4.286 (每行都有F4.286)% C+ g: U0 ?$ |' ~
X18.899 Y17.235 Z7.651 B11.456 F4.286! S* D# _0 Q4 n  D$ U' B

4 P9 ?2 C1 c: nX-20.836 Y17.199 Z7.578 B-12.604 F4.286
) B' q7 m) c! U2 q7 r& o5 T4 QX-21.137 Y17.191 Z7.574 A-26.549 B-13.202 F4.286
8 S# E. c0 S6 l# ~X-21.442 Y17.169 Z7.567 A-26.502 B-13.796 F4.286
, A' X4 y) H; w7 {) E% eX-21.748 Y17.134 Z7.558 A-26.425 B-14.386 F4.286
( w% f% x% _$ q/ t+ A7 @; E! v5 u. t, w' s
X21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.286/ p! j( j+ Q* B+ Y
X21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.286  p7 h3 F! {* K/ @8 j$ m) l
X21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.2861 v  P2 F7 y4 c# Z
X20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286% I) z9 f# K' Z7 L  A5 K
X20.53 Z7.654 F300. (在非旋转切削段,无角度变化加入G94,F300 )
$ \# P" ~) A" ~2 A) S4 XX20.253 Y17.103 Z7.772 F300.
4 {: e# i/ G$ PX20.031 Y16.929 Z7.914 F300.
7 O, T$ Z/ a/ ^0 VX19.886 Y16.694 Z8.068 F300.
. Q. ]) ~) i; D3 F3 X0 d* }X19.843 Y16.42 Z8.216 F300.
! \, N8 h* G) {* M! C. }* f5 ~X19.791 Y13.742 Z9.568 F300.4 o4 [7 f# ~$ D9 i8 Q3 v
X20.415 Y14.99 Z12.064 F300.
; q# {! i: D- w, w& \G94 G00 Z13.811 L+ W5 }5 i9 E, Y, R* r
X20.852 Y15.863
$ k  ^$ `+ ^3 J/ A# @Z100.9 K# K1 M) g2 e1 k! q
X0.0 Y0.0
+ W0 G& @4 p! j) _6 K4 ?3 @7 d% ]M09# b  e; H. y0 n# O( M7 [
M05) s( t: ]/ x4 M8 b
G91 G28 Z0.
* E: M- w0 V  A6 J4 FG28 B0.8 K9 F3 H8 U, A3 K8 K
G28 A0., |8 u4 e* R* C8 v! \7 s& B: w
G91 G28 Y0.7 z# z; r4 @0 j1 y2 l' y9 N  `
M10
+ u9 K5 ]4 Z0 p+ \' h% P/ D8 rM12; f, l: Q; @" |  P+ y, G4 v
M30
" [, R+ J& z/ r, p%
! P4 Q: r9 Q0 U+ o, G+ s4 m( \1 B: T9 q' X. O
没有达到要求!
回复 支持 反对

使用道具 举报

发表于 2010-10-4 10:15 | 显示全部楼层
樓主的看來是個五軸的POST,不好要求傳上網!! V: ]3 a; B0 x1 ^1 z
我作了一個近似的,若不嫌棄可下去試試!!!
& a1 w) J/ h$ _3 C5 S3 ^7 F1.G95部分由於不瞭解樓主的需求,沒特別設定它!若您願意說明使用MMPR的原因,或可再深入研究!
+ U2 O. c, Q' D6 \, v* y  I9 T% [# i+ y! t2.G93的F值上限定在6000.) A. X; P* I4 j* X. n6 p

8 ?- m. p% `1 l" z6 {" r2 H程式碼如下===6 b3 @# l/ X7 e! [. B
%8 x+ M% ^* n7 _0 a' s( P. c
G91 G28 Z0.0
  }$ ^- l$ @% L* _* \5 G$ p5 n6 mT11 M06
+ v: Y1 Z5 g( k$ dG00 B87.7877 x0 I. k3 l5 D& R( ~& T
A327.82
1 x4 [2 L5 t( Z# _4 l, cS3200 M03
' G9 p% b. L/ g: B; W8 _% `7 _G43 Z195.218 H11
+ O4 M$ q( j2 M- C/ w8 oG90 X-36.639 Y1.415" e4 d0 P' t7 U; x6 k  p& k5 o3 Q
Y1.416+ I' F3 [% g: f3 t3 {
Z95.2187 T* x2 r5 n" A3 \+ W1 P7 h1 J
G94 G01 Z89.618 F1000. M08
4 b$ O+ j$ J8 \' _8 s% U( A: cG93 X-37.06 Y1.168 Z89.003 A327.589 B88.075 F2794.207
4 h( J6 ~/ Y) hX-37.385 Y.978 Z88.522 A327.409 B88.3 F3578.6110 W2 ?9 f) |1 f0 r  a) j. @
:
  r1 h! B6 s$ s4 n( h; ?+ fX-77.216 Y-5.312 Z62.136 A306.411 B121.204 F2864.37* u4 d3 r* Y. {% X$ W
X-77.341 Y-5.515 Z62.148 A306.167 B121.322 F6000.
9 L4 a  D; S8 W: GG94 X-80.008 Y-9.925 Z70.718 F1300.  Q+ i# V# n4 t1 ?* f2 F
G00 Z170.718" j4 B  v% \2 `7 p& B$ |
Y-9.924" `% i' L  `' e" b1 E
G91 G28 Z0.0; U' R8 _% }0 q2 l% E5 l  ~& D
M09
7 q" B8 g& p! L2 IM05
* b4 k# T( R2 a$ l  H7 t  R0 b" MM30
9 F% V( r* ~" ^%

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,不好要求傳上網!- P) J/ Q& a) M% @0 @: |* b: t
我作了一個近似的,若不嫌棄可下去試試!!!; Y# N: c8 j% _& |
1.G95部分由於 ...
$ {0 b' b' E7 k( H2 P* cYeager 发表于 2010-10-4 10:15

& x! t$ k1 |+ E3 Z! q& ~" n
" F) r; I1 K- I( n  @
( G) R$ s4 r2 \4 Q8 ^1 k! g 有一新问题向Yeager请教,编程时给的切削进给F和后处理出来的G93的进给有着怎样的换算关系?为何编程时F给300,但后处理出来的G93后面的F仍会高达6000?这样子不能光刀呀!?
回复 支持 反对

使用道具 举报

发表于 2010-10-8 16:01 | 显示全部楼层
以下節錄自Mazak e650五軸車銑機的編程手冊,先啃啃e文吧:
' d; v8 G: Y$ |8 z" v2 x8 N
. J# B% E1 g& i/ n; e- C7-14 Inverse Time Feed: G93 (Option)
4 Z- e8 g9 |  o) e4 j1. Function and purpose
( q" v( t5 z! d. ^2 h" VWhen tool radius compensation is performed for a smooth linear or circular small-line-segment
0 x) W3 u7 L4 u' J5 s" v5 ]command, differences will occur between the shape defined in the program and that existing" `+ }7 P' ^. [" Q! D! x
after tool radius compensation. The feed commands with G94 and G95 only apply for the tool
( t( [$ c& \( q0 q! |path existing after compensation, and the tool speed at the point of cutting (that is, along the  X+ e" o/ H  [' U
programmed contour), therefore, will not be kept constant so that the resulting speed fluctuations0 ]& V1 J) v# l3 k1 m" ]
will cause seams on the surface machined.9 w5 v- J. c" A  L8 Z4 Z/ n1 X
Setting of an Inverse Time Feed command code makes constant the processing time for the, o9 i3 d8 }7 M$ h- {- i! w/ N# r
corresponding block of the machining program, and thus provides control to ensure a constant$ y1 {8 _% i, z
rate of feed at the point of cutting (along the programmed contour).' ~: g9 F9 M* p9 n( ^, M+ x
Setting of command code G93 specifies the inverse time assignment mode.: f. d9 i2 E4 d' R- }* z+ S
In the G93 mode, the reciprocal of the machining time for the block of cutting feed (G01, G02 or
3 Y! a" ^# ?; W) q2 g! y! P  p0 fG03) is to be assigned using an F-code. The setting range of data with address F is from 0.001; n2 ?4 |6 H. ~( S; G& B4 D9 ]
to 99999.999.1 t9 L. ?. ]7 W
The rate of feed for the corresponding block is internally calculated from the length of the+ k2 U! ?( m" q6 i3 W
programmed contour and the value of the F-code.) d" [- y' j% ]+ d# h& P- {% n
- For linear interpolation (G01)+ @( ^; ^" V0 x4 {0 _  o4 U) |
[Speed] : mm/min (for metric system) or
( L5 [6 E! r/ p2 linches/min (for inch system)
9 J: \* a  h. P7 f( K[Distance] : mm (for metric system) or
( Y9 @% ^9 \6 u0 y, w7 Binches (for inch system)# T, N( I% ^9 x. d" Z
- For circular interpolation (G02 or G03)8 N: p2 {! c+ Q
[Speed] : mm/min (for metric system) or8 m5 E, I1 Z5 a. A! d7 @
inches/min (for inch system)
* R  J" `  E; ?& O% K8 C0 M) O[Arc radius] : mm (for metric system) or
0 t/ d( p& j0 Q: Oinches (for inch system)8 R9 [8 V( G1 g6 S
2. Programming formats2 k' I3 W9 K) `
- Linear interpolation: G93 G01 Xx1 Yy1 Ff13 q9 G: b9 E% F+ C
- Circular interpolation: G93 G02 Xx1 Yy1 Rr1 Ff19 Q* o2 s3 D+ Y1 E( G, @* V4 _& W7 d
(Code G03 can be used, instead of G02, and code I, J and/or K instead of R.)
9 u6 m, \* E$ ?0 g+ f3. Precautions
4 c/ o' P" k5 [2 W3 n# P! v3 V- Code G93, which belongs to the same G-code group as G94 (feed per minute) and G95 (feed
7 a4 v' D4 v2 ]) X! N6 y1 o  Bper revolution), is a modal G-code.
  S1 F' F$ n# c7 j- L+ [. F7 Z- Since they are not processed as modal codes in the G93 mode, F-codes must be set for each1 _, U. `- U5 @* y! F, i, L
block. The absence of F-code results in alarm 816 FEEDRATE ZERO.
& h+ C4 [$ [2 M( b! F+ z. \1 I6 `- Setting of F0 during G93 mode results in alarm 816 FEEDRATE ZERO.
8 W5 }/ |# a0 A$ V8 h; L- N/ c- For a corner insertion block during tool radius compensation, the F-code value in the previous
" |5 f. m! L# M) o8 o1 \) O" Kblock is regarded as the inverse time command value.* h0 Y  w+ E, x1 y+ v' C
- 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-1-11 15:51 , Processed in 0.069170 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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