青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

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

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

  [复制链接]
发表于 2010-9-30 14:12 | 显示全部楼层 |阅读模式
%
. J% y! S+ I: B( r1 T  E
, m- d3 Q8 f* W: D7 z5 k) U; H: N# WG00 X0.0 Y0.0 A-26.565 B12.604 S3500 M039 g0 g" J! u; u6 N/ ~! z) Z
G143 H01 Z100.- ]9 C6 @/ I( J7 o/ G: ~: F7 T; Q$ T
X22.606 Y16.29
3 G& ]# X& U* l3 YZ13.81$ j6 Y- Q+ w" \# ]& X+ Q7 N5 B% c
X22.169 Y15.4179 i5 K+ k1 X7 I3 t
Z12.064
, U9 d6 `$ m- I& }- \G93 G01 X21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.286* A0 I. h1 v2 ?0 X( n5 `
X21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.286
; L6 y6 ]8 A9 yX21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.286
) i4 S: ~8 Y' v5 o0 z3 H, i1 h, C. RX20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286
8 X$ C! p! }2 N3 cX20.53 Z7.654 F300. (如何修改ug后处理,在非旋转切削段加入G94)
+ d4 p: V; n. i& m) J; U7 z) SX19.843 Y16.42 Z8.216 F300.1 v& F/ E+ f- o+ f& U5 l
X19.791 Y13.742 Z9.568 F300.- r- _" c6 r: D/ T8 O
X20.415 Y14.99 Z12.064 F300.% t8 h; @2 s. |4 ?
G94 G00 Z13.81# ?1 V! |. Y; o
X20.852 Y15.8636 Y6 R. x! e) W% u5 m! N/ Z
Z100.
; e9 y% t! ^! i9 f/ s! g: {+ N* M/ ^X0.0 Y0.0
: A# U1 E" Y8 p. k" PM09
% O* D& D  g+ ZM05( w* X: h" @7 B3 M' T* @
G91 G28 Z0.
5 J. ?, r! y. z6 G) x1 r" S) h" YM30! W6 G' l: o& c0 y! \4 u2 l+ q
%
发表于 2010-10-3 10:48 | 显示全部楼层
在Linear那裏加.....& P! q$ S. G5 V3 }) n# E/ O' W

9 C5 B4 X& X" P. A' b$ @. l另,G94模式下,F值也要重複輸出???還是沒法將G93/G94兩個不同模式的F模態搞定??
G94.jpg
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-4 09:38 | 显示全部楼层
%
* W9 b# O% [$ w/ m  J6 }7 ~7 h/ i1 G( U0 B: f- }
UG内设置F300,用mmpr单位;输出nc F300内部转化成F4.286% X0 b% D1 i) p( @% t
G00 X0.0 Y0.0 A-26.565 B12.604 S3500 M03
$ M* Q$ F( T* g1 e/ _3 H$ _G143 H01 Z100.
$ _4 h" q  {1 o/ c0 z* k: GX22.606 Y16.295 S" H+ A( x- K1 O  q
Z13.81* {0 H: @4 w/ R" ]7 R
X22.169 Y15.417
) D" z" ?! g" o& bZ12.064
9 @2 g1 z  z  s; N& ~G95 G01 X21.421 Y13.92 Z9.071 F4.286 (按图改成G94-feed rate mode;输出成G95)
9 p3 U  m% q) R9 p  u) e2 i; E3 ~Y16.604 Z7.729 F4.286 (在非旋转切削段,无角度变化加入G94,F300 )
9 k' ^% Z$ a+ d: h* b$ U0 M/ sX21.385 Y16.816 Z7.632 F4.286 (不用输出F,因为上行有F); L2 H0 p( n* w/ J% ?
X21.256 Y17.006 Z7.569 F4.286   u1 Y/ {' j# V& x
X21.063 Y17.144 Z7.549 F4.286
" o: C. x& D/ J4 qX20.836 Y17.199 Z7.578 F4.286
0 h/ @) ^' o) k5 xX20.194 Y17.218 Z7.617 B12.223 F4.286 (旋转切削段 应改加入G93,模态)
/ h( P; \3 t1 u) L+ KX19.548 Y17.23 Z7.64 B11.84 F4.286 (每行都有F4.286)0 D5 q$ R' ]1 V( @/ b5 y$ J+ j) `6 T) E; j
X18.899 Y17.235 Z7.651 B11.456 F4.286( U3 [4 d& P& L9 L) J1 |

! H4 L3 h: U* H" y! bX-20.836 Y17.199 Z7.578 B-12.604 F4.286
/ G9 t- @2 L8 Y; u8 oX-21.137 Y17.191 Z7.574 A-26.549 B-13.202 F4.286
  a0 `4 }; M6 e% @3 w* {X-21.442 Y17.169 Z7.567 A-26.502 B-13.796 F4.286
4 @. v2 o2 M( J4 {/ h" ?X-21.748 Y17.134 Z7.558 A-26.425 B-14.386 F4.286! A' `6 h3 t0 L1 Z1 D: q1 D

6 i) u; b* ?1 W8 w% qX21.749 Y17.134 Z7.558 A-26.425 B14.386 F4.2866 [& H5 j, P' K( m: z7 d" n
X21.442 Y17.17 Z7.567 A-26.502 B13.796 F4.286: t" t# t, Y' D! `! o9 P  C
X21.138 Y17.191 Z7.574 A-26.549 B13.202 F4.286
' [8 p8 L$ L- c6 tX20.836 Y17.199 Z7.578 A-26.565 B12.604 F4.286
3 J6 G# G9 S- ~! w. Z* ]X20.53 Z7.654 F300. (在非旋转切削段,无角度变化加入G94,F300 )
, x9 q& x0 H# N- xX20.253 Y17.103 Z7.772 F300.& \# L4 B  P: l. ~7 }! C6 O) m
X20.031 Y16.929 Z7.914 F300.
, t3 i- y5 K+ Q# J* D3 {X19.886 Y16.694 Z8.068 F300.- [; L- m, ?8 Z( _7 z6 Y
X19.843 Y16.42 Z8.216 F300.
) U3 ?" r. v# w# H/ MX19.791 Y13.742 Z9.568 F300.
' h8 V* G2 o; n" Q- z; DX20.415 Y14.99 Z12.064 F300.! [% w8 G3 y; @5 M) h9 D
G94 G00 Z13.81
* y, ?% z; q1 RX20.852 Y15.863
1 Q, m! M; j# u) s- c2 U! `Z100.' b: r. ?( F& `! p
X0.0 Y0.0+ b  M3 w2 G% {1 P' S1 b7 B
M090 M' H9 G" `. d% h- \2 D2 y
M05
( h6 r. B( {/ b1 ?* Y7 C7 XG91 G28 Z0.
/ H( G! t& F! F' }; MG28 B0.' T' A/ ?$ K8 D3 g# K
G28 A0.
: P7 c& G$ F1 Y# [& F" y" X. MG91 G28 Y0.: E3 K! C2 k. K) _+ x4 o
M10- S9 p& K* s& r4 y+ L9 b7 Q7 c  w: w
M127 i& |1 O1 l3 r3 u  W
M303 k- Z) Z+ M  @6 o! w+ b
%* ]$ n, B4 P6 _; V# w2 g0 a; ~
% n, z/ N5 g* ?% o6 @3 g  s
没有达到要求!
回复 支持 反对

使用道具 举报

发表于 2010-10-4 10:15 | 显示全部楼层
樓主的看來是個五軸的POST,不好要求傳上網!
; e- C; y0 W  Z: {. K* R我作了一個近似的,若不嫌棄可下去試試!!!* l6 X# x. ]% j9 J
1.G95部分由於不瞭解樓主的需求,沒特別設定它!若您願意說明使用MMPR的原因,或可再深入研究!3 @) m$ d( d# q8 g& e1 J* m5 J: z
2.G93的F值上限定在6000.8 {$ g, ~& m, j8 Z

+ X$ B# a  i% B! N( \. j程式碼如下===: D# z6 t# M/ }0 V2 d
%% k. U. D* J( A  t8 R  G; `
G91 G28 Z0.0
( O1 Y. k  z0 y" r, B) E4 e( bT11 M06
7 v) ]1 k" p/ s: Y* }; r1 o0 A9 k2 KG00 B87.787
2 m8 F' Q/ ^# h' g0 ^# R, jA327.824 Q; w, d' C' `" e8 V! l
S3200 M03
$ j. I- F6 D6 u/ m' z) @G43 Z195.218 H11
# x$ ]& X1 P7 q9 P' p  IG90 X-36.639 Y1.415
0 t. S  H5 f( R1 l0 j1 |/ VY1.416
+ v: S* u$ f+ W- U, Z4 k" C1 J$ rZ95.2184 q4 T$ ?% l6 a' r/ K4 r: z5 ~7 @$ ?  l
G94 G01 Z89.618 F1000. M08  h# d- g& ?1 U9 x1 f; Q2 `
G93 X-37.06 Y1.168 Z89.003 A327.589 B88.075 F2794.207  z" z8 o4 i1 u, h# }
X-37.385 Y.978 Z88.522 A327.409 B88.3 F3578.611- ]. H$ D  u  O! l8 ^
:
( Z9 w7 ^# [: V! F& {; FX-77.216 Y-5.312 Z62.136 A306.411 B121.204 F2864.37. ~1 U: T& T, m; c5 j9 a. C
X-77.341 Y-5.515 Z62.148 A306.167 B121.322 F6000.
+ z- e- B8 Z' S3 s) I8 mG94 X-80.008 Y-9.925 Z70.718 F1300.
& r: P# ?! X; L3 y6 U# i" rG00 Z170.7188 P( P' q) f) k" q
Y-9.924# V) m, Y* f2 l& n% G
G91 G28 Z0.03 V3 q4 l1 }% [
M09
. x  y. i9 v3 Y: f! IM05
2 R+ b& x: s0 `+ U0 W. }* H! F& gM30' H& g2 n2 m  C& g
%

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,不好要求傳上網!
. ?' @- I6 `8 l8 S3 I1 t; `, c我作了一個近似的,若不嫌棄可下去試試!!!
9 k! c$ A: b# J( z3 N  b8 v1.G95部分由於 ...
3 d4 E' k% S2 c8 KYeager 发表于 2010-10-4 10:15
4 B( z2 }( s* i

0 x+ ?1 |* N4 `) A& Q0 M. z5 F6 J! i
有一新问题向Yeager请教,编程时给的切削进给F和后处理出来的G93的进给有着怎样的换算关系?为何编程时F给300,但后处理出来的G93后面的F仍会高达6000?这样子不能光刀呀!?
回复 支持 反对

使用道具 举报

发表于 2010-10-8 16:01 | 显示全部楼层
以下節錄自Mazak e650五軸車銑機的編程手冊,先啃啃e文吧:1 f* T6 i, J4 X" B7 m; c
& L, l; a3 k# @; b; ?
7-14 Inverse Time Feed: G93 (Option)# o. u$ g- l2 Q; P; y% I
1. Function and purpose0 ?$ X; E' c2 e' Z, A, w
When tool radius compensation is performed for a smooth linear or circular small-line-segment" w: K* `2 h  a4 r
command, differences will occur between the shape defined in the program and that existing
- C% q3 d/ o& i2 o. Q! c" Jafter tool radius compensation. The feed commands with G94 and G95 only apply for the tool8 J  J! L7 W4 ~0 H) a
path existing after compensation, and the tool speed at the point of cutting (that is, along the6 C; l) z( s: }/ N# @, T* ~7 E
programmed contour), therefore, will not be kept constant so that the resulting speed fluctuations
: K; t" A0 h8 |8 z  g$ ~will cause seams on the surface machined.
0 t+ N) {) c. A1 O' E7 X; B- FSetting of an Inverse Time Feed command code makes constant the processing time for the
, H+ j3 o7 j# x! {7 ocorresponding block of the machining program, and thus provides control to ensure a constant# S0 Q* a$ U& h( i+ |% z% r
rate of feed at the point of cutting (along the programmed contour).
9 Q! |- {/ e: E1 k( ?Setting of command code G93 specifies the inverse time assignment mode.
  }! f% Y( r0 d% v: U, cIn the G93 mode, the reciprocal of the machining time for the block of cutting feed (G01, G02 or! {! y& K1 {7 T/ z
G03) is to be assigned using an F-code. The setting range of data with address F is from 0.001( |& U& C  P8 R/ P' p& |
to 99999.999.
. a! s9 P, r$ r. E# y' ?  `The rate of feed for the corresponding block is internally calculated from the length of the
6 K5 e7 ~! K* t+ \' H( cprogrammed contour and the value of the F-code.
- D1 W7 |9 [9 t) o0 Z- For linear interpolation (G01)
. @% R" M! J/ Z& j! N[Speed] : mm/min (for metric system) or
0 k" S; Z; q- G7 U8 W4 Cinches/min (for inch system)' I& G& z) b, i5 O: g
[Distance] : mm (for metric system) or0 U$ m8 E" n, W! L/ ], j1 f! c
inches (for inch system)
2 A' C: G5 J+ t' N& R- For circular interpolation (G02 or G03)- u, _) w8 s" s$ s# u2 a7 e
[Speed] : mm/min (for metric system) or. X& }- N4 d1 V4 B3 p3 N8 r
inches/min (for inch system)
6 [  ~/ W8 k* a4 v  T; Z/ c[Arc radius] : mm (for metric system) or
' _. T" s( y! m& b1 y) V& vinches (for inch system)  j8 @5 ]7 x, z  f: p' y; G
2. Programming formats
+ `- h  _* [% D9 e0 u* X- Linear interpolation: G93 G01 Xx1 Yy1 Ff1* |& {( L- N7 r* K$ @; t
- Circular interpolation: G93 G02 Xx1 Yy1 Rr1 Ff1# h1 b6 y  S: S5 s7 y
(Code G03 can be used, instead of G02, and code I, J and/or K instead of R.)+ |( Q8 F) B' |/ Z: H) Q
3. Precautions
7 n1 \# g3 \$ ]( j- Code G93, which belongs to the same G-code group as G94 (feed per minute) and G95 (feed  K5 p: P3 ^8 ~  r
per revolution), is a modal G-code.
. z0 @5 C5 G+ I4 h) f; k- Since they are not processed as modal codes in the G93 mode, F-codes must be set for each
, m, h3 o0 L) k& n6 P6 O! h7 dblock. The absence of F-code results in alarm 816 FEEDRATE ZERO.
- Q( {) Y. L: l/ q4 n! R- Setting of F0 during G93 mode results in alarm 816 FEEDRATE ZERO.8 _8 ], |4 n) J( O) i
- For a corner insertion block during tool radius compensation, the F-code value in the previous8 i8 Q; L3 Y( [' A  Q
block is regarded as the inverse time command value.
0 _" x. m6 O# V! J2 Z2 R$ t' [- 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-6-26 12:26 , Processed in 0.116970 second(s), 28 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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