青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

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

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

  [复制链接]
发表于 2010-9-30 14:12 | 显示全部楼层 |阅读模式
%
% y$ \$ Y! f. V
2 b$ |% {6 s! b* e$ rG00 X0.0 Y0.0 A-26.565 B12.604 S3500 M030 z' J1 H+ W. O8 d/ F
G143 H01 Z100.) D  p4 D8 p5 [6 b$ H: y9 L
X22.606 Y16.29
! C1 M  |! f/ q( d9 uZ13.81
* f# I) Q7 `, b! s1 t2 B$ vX22.169 Y15.4176 A: {- }/ @  m
Z12.064; L* v7 F2 R1 c# e9 q
G93 G01 X21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.286
( O, s4 t) \' b. L+ Z9 b6 y- FX21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.2867 x7 [7 K% d) k+ G% ^
X21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.286; k2 R7 y, [* L$ c+ P
X20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286% [, s# L3 X) `) m
X20.53 Z7.654 F300. (如何修改ug后处理,在非旋转切削段加入G94)
" n; x" r: W: \1 [1 |X19.843 Y16.42 Z8.216 F300.) y3 X/ N6 Z+ F( u3 _& O/ h0 U( I
X19.791 Y13.742 Z9.568 F300.
7 z2 x9 ^, X& {9 G$ f5 S' \. f. kX20.415 Y14.99 Z12.064 F300.
. L/ S6 T/ q5 E$ w, X- rG94 G00 Z13.81
8 ?+ n6 Y6 s) {) w8 VX20.852 Y15.863
7 Y% H2 i4 T2 h: }- rZ100.  u1 s* p& k7 ], ?* U5 Q6 ~
X0.0 Y0.0
, l% _2 _8 w6 ?& s/ NM09
# w6 U) x- R/ p5 F' M+ |M05
) ?$ S$ s1 l5 b# U9 _G91 G28 Z0.
( c& f' m4 \* [/ c, g" o2 CM30
/ `$ I+ @& J7 e/ e7 m%
发表于 2010-10-3 10:48 | 显示全部楼层
在Linear那裏加....." g6 a: W: F2 C; Z+ ^/ s  _
3 o+ }/ P; R( w* ~; B9 d" R  y
另,G94模式下,F值也要重複輸出???還是沒法將G93/G94兩個不同模式的F模態搞定??
G94.jpg
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-4 09:38 | 显示全部楼层
%
- @/ l: d% o; \- ?6 \" T' Z& k# y8 c) s% }
UG内设置F300,用mmpr单位;输出nc F300内部转化成F4.2861 ^( [) f- d; B# R9 r  R9 n- L& k
G00 X0.0 Y0.0 A-26.565 B12.604 S3500 M03, b( W3 O7 }  E& C! m& G7 a
G143 H01 Z100.
- L  ]( s0 @/ M4 O" W2 UX22.606 Y16.29
3 O4 H# T! J9 jZ13.811 A5 @1 z; A" s7 o
X22.169 Y15.417+ B, _+ D, N% [+ S
Z12.064
" O( s( f) m  X) {G95 G01 X21.421 Y13.92 Z9.071 F4.286 (按图改成G94-feed rate mode;输出成G95)
2 j& `- _; w7 M* M7 n, {6 IY16.604 Z7.729 F4.286 (在非旋转切削段,无角度变化加入G94,F300 )
, m7 l' K) m3 Y) x1 ?X21.385 Y16.816 Z7.632 F4.286 (不用输出F,因为上行有F)4 m) ~5 u' p2 i/ a
X21.256 Y17.006 Z7.569 F4.286
$ h" X! g" }& _7 kX21.063 Y17.144 Z7.549 F4.2868 v0 [; u. Z# M6 V
X20.836 Y17.199 Z7.578 F4.286
4 M* b; H7 W& S% X- M# s3 e9 q& P" @. hX20.194 Y17.218 Z7.617 B12.223 F4.286 (旋转切削段 应改加入G93,模态)
: J1 h7 x) ~2 W8 J" DX19.548 Y17.23 Z7.64 B11.84 F4.286 (每行都有F4.286)* u6 e  a* p# v; e9 A' q
X18.899 Y17.235 Z7.651 B11.456 F4.286& G& h! H4 V6 C: {( u- w' S
2 G3 p$ p" D: V
X-20.836 Y17.199 Z7.578 B-12.604 F4.2862 Z' z# a8 W" Y8 A) _( O5 _
X-21.137 Y17.191 Z7.574 A-26.549 B-13.202 F4.286' w+ t. E- M. ^& n$ n+ @. I; P
X-21.442 Y17.169 Z7.567 A-26.502 B-13.796 F4.286' [" |+ W% ?9 F/ T3 A1 R
X-21.748 Y17.134 Z7.558 A-26.425 B-14.386 F4.286
$ J7 v& Q9 l% i' s
- J- d: T, j8 ^, oX21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.286
$ c! z9 D4 O2 }' \! A# nX21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.286. A3 f; v7 B  B* f8 C
X21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.2868 j/ B# L+ d$ Z
X20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286+ y4 f; N! B6 X* k' E6 ^6 B0 t: j
X20.53 Z7.654 F300. (在非旋转切削段,无角度变化加入G94,F300 )
1 w7 O$ s5 A: e* s. NX20.253 Y17.103 Z7.772 F300.
; l/ x5 d1 @2 r) o8 WX20.031 Y16.929 Z7.914 F300.
3 b: G! w  R) G8 y2 v% p9 S. d  oX19.886 Y16.694 Z8.068 F300.
9 i: [7 p% x' a8 D& T2 C5 r# Q  wX19.843 Y16.42 Z8.216 F300.0 l3 |) x# A2 ?0 S3 B0 ?
X19.791 Y13.742 Z9.568 F300.0 b0 ~! a4 [, W' l) b
X20.415 Y14.99 Z12.064 F300.8 G0 X0 J- B8 C" {; R$ k
G94 G00 Z13.81
+ e- u8 I, F8 g6 f& ^" z' jX20.852 Y15.8630 {% M7 t) ^, b- {( x
Z100.
+ K/ m" u' }# \) A: X  aX0.0 Y0.0
2 g$ j) X1 l' U" U2 jM09! _9 b/ w( ^# O8 T0 X! ?  s7 V! a
M053 S& Y6 {5 W% n. U2 E+ v
G91 G28 Z0.; V; h0 ~) n" R  X6 t
G28 B0.) U$ N# v! }8 b5 K- J7 w
G28 A0.. O2 A2 |/ A- w- v
G91 G28 Y0.* Z4 A" |* E9 i4 K) P. B: B% \
M10
+ ^) n: C# Y$ WM12
% ?" g. m. e7 R. R3 y/ X) ZM30
8 k/ E& b: O* @%
. ]6 L1 L. G( }+ a7 e
1 j) S3 r8 L3 f) x没有达到要求!
回复 支持 反对

使用道具 举报

发表于 2010-10-4 10:15 | 显示全部楼层
樓主的看來是個五軸的POST,不好要求傳上網!
  z% }0 R  i' `# Z3 y我作了一個近似的,若不嫌棄可下去試試!!!$ H* a% r+ S$ ^# S6 v
1.G95部分由於不瞭解樓主的需求,沒特別設定它!若您願意說明使用MMPR的原因,或可再深入研究!, F- j. k" C( Y% ?' @6 ?) |9 S
2.G93的F值上限定在6000.
* |! g0 @' J2 Z& E  R
6 Q+ c6 b, R2 m1 P5 R程式碼如下===
: F) L8 g8 ?* P%5 m3 C$ j* l: a5 [8 y
G91 G28 Z0.0* D( J& I2 J4 [' i2 J
T11 M06/ ^% Q0 c9 s/ I8 B
G00 B87.787
9 o/ `! r1 a) KA327.82# K, a/ O. }, D' ~7 K) w
S3200 M03
5 ]* q: f3 f) q( E% GG43 Z195.218 H11
0 {. ^# J0 G. b2 o% N* d: vG90 X-36.639 Y1.415
9 K. B3 u$ x9 J, J  L+ CY1.416
6 f' g. j- Q& N6 n) Q; {6 K  c7 IZ95.218; V0 Y4 J1 `2 M; J3 D; J# M- [
G94 G01 Z89.618 F1000. M08
3 ~+ I: h, S. l" AG93 X-37.06 Y1.168 Z89.003 A327.589 B88.075 F2794.207
7 J7 o) V% o6 v1 T" ?X-37.385 Y.978 Z88.522 A327.409 B88.3 F3578.611( e# e4 |/ `0 b
:
# O( J0 ~6 y% s6 cX-77.216 Y-5.312 Z62.136 A306.411 B121.204 F2864.37
$ W% Y( K$ q3 |2 b8 y. _X-77.341 Y-5.515 Z62.148 A306.167 B121.322 F6000.
5 x' J% O' `/ s$ y+ `) c' H  AG94 X-80.008 Y-9.925 Z70.718 F1300.
& ~7 Y0 K1 _/ x! e! I) cG00 Z170.718# A" _, `1 M. ]* E, ~, l7 I
Y-9.924
5 ?9 G$ |- P* j$ T3 ^  @" pG91 G28 Z0.00 ?( }$ o" }- ?" Z/ r/ f
M09
# N1 [* W( _; jM05$ p+ S% I! C' Z: b" e
M309 D+ o* R2 g5 u/ c6 ~9 Z  s. ?8 S
%

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,不好要求傳上網!# c1 @4 w# P) y" `
我作了一個近似的,若不嫌棄可下去試試!!!
5 V0 c1 p; r& G0 |5 q: b1 x1.G95部分由於 ...
2 D+ g# j) j9 M/ cYeager 发表于 2010-10-4 10:15

+ ^8 {0 B0 v, h
, S. X# I. H9 S' U2 ?/ y7 V' v: P8 T9 B  M
有一新问题向Yeager请教,编程时给的切削进给F和后处理出来的G93的进给有着怎样的换算关系?为何编程时F给300,但后处理出来的G93后面的F仍会高达6000?这样子不能光刀呀!?
回复 支持 反对

使用道具 举报

发表于 2010-10-8 16:01 | 显示全部楼层
以下節錄自Mazak e650五軸車銑機的編程手冊,先啃啃e文吧:
7 ^+ O# x) [% _& G) M
$ w9 {) \1 F- ?) C7-14 Inverse Time Feed: G93 (Option)* s; d+ R1 r  \* Z% J, _
1. Function and purpose) J- |" I& V$ h8 {2 r
When tool radius compensation is performed for a smooth linear or circular small-line-segment8 `, u: q" N- i, J
command, differences will occur between the shape defined in the program and that existing; v; |* u, D' s/ B
after tool radius compensation. The feed commands with G94 and G95 only apply for the tool3 Z2 J" M$ Z% T! I+ }
path existing after compensation, and the tool speed at the point of cutting (that is, along the
9 X' e. P! u' b! a: @4 h9 |programmed contour), therefore, will not be kept constant so that the resulting speed fluctuations
' P% k" U6 w5 n7 B, ?, e8 }  q9 hwill cause seams on the surface machined.
3 t# U) |& a+ x( a& VSetting of an Inverse Time Feed command code makes constant the processing time for the
: Y/ W6 n2 }/ ?' R3 ccorresponding block of the machining program, and thus provides control to ensure a constant
; L9 b2 o! D) W  X# e( o; G  crate of feed at the point of cutting (along the programmed contour).. s0 n, m. v; F# w
Setting of command code G93 specifies the inverse time assignment mode.& K9 ~, }- w$ r$ T3 c2 l
In the G93 mode, the reciprocal of the machining time for the block of cutting feed (G01, G02 or' s# M8 e4 a7 V) n7 J
G03) is to be assigned using an F-code. The setting range of data with address F is from 0.001, Q7 Z; V5 ^9 H- O# D6 I0 \
to 99999.999.
4 F; i( d8 R7 g& |; ~8 Y* DThe rate of feed for the corresponding block is internally calculated from the length of the1 m2 w* E7 j9 f& A
programmed contour and the value of the F-code.: L; E4 n8 s. v* |; J  ^% {9 T5 k
- For linear interpolation (G01)- I9 {9 |3 x/ k2 q
[Speed] : mm/min (for metric system) or
2 w8 j" {9 P7 q! c% K/ ^inches/min (for inch system)
- r: [0 u: d4 i! K" U[Distance] : mm (for metric system) or
+ X8 h9 A% u& Hinches (for inch system)
+ g1 Z  O% o* ^. i( o. g% W( {- For circular interpolation (G02 or G03); g: r3 }$ T' u4 j! a
[Speed] : mm/min (for metric system) or, d$ s* \5 {* q& p: _: v
inches/min (for inch system)
& C$ H, r( c6 G" \" E; y[Arc radius] : mm (for metric system) or. V- E0 o& l. m6 w
inches (for inch system)
0 l) W6 O0 Q' ~. r' m9 F) x2. Programming formats$ ^. Y) z* @8 B. B  U: t
- Linear interpolation: G93 G01 Xx1 Yy1 Ff1, p1 B/ n8 B) h  A
- Circular interpolation: G93 G02 Xx1 Yy1 Rr1 Ff1( }3 F% x; u! n8 A: c  R
(Code G03 can be used, instead of G02, and code I, J and/or K instead of R.)
& O$ W' ~" ~1 n5 V3 X6 _3. Precautions
# f; a6 Y; P& M: {1 c- Code G93, which belongs to the same G-code group as G94 (feed per minute) and G95 (feed/ d; v6 d' f. N# S4 u9 j9 q, n4 @
per revolution), is a modal G-code.
: ?, U, c. k# A3 \- Since they are not processed as modal codes in the G93 mode, F-codes must be set for each# z; o" T4 G3 M4 E3 n8 c) [7 K5 D) v
block. The absence of F-code results in alarm 816 FEEDRATE ZERO.0 ], |4 S5 I5 e' v4 W+ z' t
- Setting of F0 during G93 mode results in alarm 816 FEEDRATE ZERO.1 k$ ~: `% ^6 G0 y1 J
- For a corner insertion block during tool radius compensation, the F-code value in the previous3 _1 B( p) I3 E+ l
block is regarded as the inverse time command value.4 z1 I- B8 P4 E' ^
- 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-5-9 17:19 , Processed in 0.148675 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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