|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区
您需要 登录 才可以下载或查看,没有账号?立即注册
×
楓大您好..因為需要一個AC的五轴後處理,自己改了一下後處理,NC出來的部份都不正確.能幫忙一下嗎?非常感謝.
' _/ ] I! X: G/ T: x( {1 X+ g
, @' K% J4 E! P: _- Z0 a5 ~# --------------------------------------------------------------------------
% y* l* W0 u' v5 F6 ~0 q: s# 5 Axis Rotary Settings4 _4 g' u8 {' O5 R$ ?+ ^: S. D
# --------------------------------------------------------------------------% J B Y3 l' y$ b6 v% \
#Assign axis address3 h6 Q6 y( [4 D6 k$ f) S/ x
str_pri_axis : "C"% n6 T" \: F; D2 i% a; N7 U6 b% M
str_sec_axis : "A"6 b/ z" k* T. a
str_dum_axis : "B"/ _" w# F! M3 q' R9 v! E
9 Q$ X& ~. E9 ~#Toolplane mapped to top angle position strings
0 E0 r; p; @/ q5 M @str_n_a_axis : "C"5 f& S) d- X* [/ u: ]1 ^& a
str_n_b_axis : "A"# G* E; v8 @1 P2 |/ p% N% v
str_n_c_axis : "B"
# _/ o+ c* U3 p; i
8 A% T+ P8 G* T* ]#Machine rotary routine settings& l0 `$ Z6 u& }( i) F i* r: @
mtype : 0 #Machine type (Define base and rotation plane below) 6 e n/ l3 k% E1 B' A. c) G
#0 = Table/Table- d! J U' X2 ~" V
#1 = Tilt Head/Table
f1 v% W$ U! y% {' \ #2 = Head/Head
" N1 ^5 D0 C# O: T: i' v #3 = Nutator Table/Table
# n! t9 F7 `) I( S" f4 E- ^ i$ l0 ? #4 = Nutator Tilt Head/Table. F) U% R2 Q/ N3 L$ B
#5 = Nutator Head/Head2 \' A. {: |" [ n
0 Z% R+ y# u* u) k s& F: j2 khead_is_sec : 1 #Set with mtype 1 and 4 to indicate head is on secondary
$ B3 U& Y+ M- A7 x
1 G$ {) G8 \$ }% D' Q9 L/ ]# r9 `#Preferred setup is pri. zero matches sec. zero/direction5 X& r9 B% C5 Y, E0 J
#Zero machine and determine the planes perp. to axis rotations
4 J5 G8 ?4 y# a# r/ |. I ]6 D#These plane combinations are valid:: v& J2 q) [( K+ `, u8 [
#Primary plane XY XZ YZ
1 V3 [" a& D. F! u0 t#Secondary or XZ XY XY! b, u) [* N) _2 ?
#Secondary YZ YZ XZ% _ r% w/ j5 z+ T: a
% q: y0 s8 `% P) Q# m% H8 s1 l#Primary axis angle description (in machine base terms)
6 |, O! c% ~& K" L: z3 P#With nutating (mtype 3-5) the nutating axis must be the XY plane# ^# P" H p4 n5 v! }/ ]
rotaxis1$ = vecx #Zero ' m) p9 X! b8 I6 Q
rotdir1$ = -vecy #Direction
- Y% U' P" H" Z. F5 n; x/ \+ `# m0 Z
; k! q5 P1 ?1 Q. n8 n% b1 C* q* w" j#Secondary axis angle description (in machine base terms)
$ T; H+ r* d. e# y6 m#With nutating (mtype 3-5) the nutating axis and this plane normal
- V- h) i) g) d' x; b' L0 h! N* \#are aligned to calculate the secondary angle : y6 j5 Z& a5 R
rotaxis2$ = vecz #Zero
. }" {, @7 S6 f3 T2 ^! x( u# j$ trotdir2$ = vecy #Direction
: D! T1 |( ^! y% _7 P; I w+ ^& S* |! D
#NOTE: Use of 'top_map' requires the dealer match the
1 c6 `8 Q3 A, U- [# above settings below. These must match initial settings!!!1 s. \! L& h# d0 O
p_nut_restore #Postblock, restores original axis settings J5 p# p* f6 V. X! T% [
result = updgbl(rotaxis1$, "vecx")#Zero
& R. G3 N8 ?& B3 U+ K) y2 N result = updgbl(rotdir1$, "-vecy")#Direction- G* c8 k& k* z% m# @8 ]* @" f
result = updgbl(rotaxis2$, "vecz")#Zero
1 q l5 i) g/ u7 Q! l1 E result = updgbl(rotdir2$, "vecy")#Direction |
|