找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 610|回复: 9

[求助] 楓大能幫忙看一下後處理的問題嗎!

[复制链接]

2

主题

48

回帖

57

积分

注册会员

积分
57
发表于 2016-4-16 23:02:53 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区

您需要 登录 才可以下载或查看,没有账号?立即注册

×
楓大您好..因為需要一個AC的五轴後處理,自己改了一下後處理,NC出來的部份都不正確.能幫忙一下嗎?非常感謝.
( h) ~& U, F  X4 D: ]( x6 c5 `
. D% p5 F# U1 E& X- L- I" g/ c8 [# --------------------------------------------------------------------------1 o9 ^3 c0 V( A' W. C4 A. {
# 5 Axis Rotary Settings4 U& ^. y8 B: p# R
# --------------------------------------------------------------------------
7 M; g# A( I8 F, }) }#Assign axis address! y' \+ ?2 v! X0 i9 x6 m. X" h
str_pri_axis : "C": Z; q' U8 v& p+ q
str_sec_axis : "A"! x7 o4 g' u$ a2 @1 c
str_dum_axis : "B"
9 V( \7 R1 e8 M
  v7 H7 j( J% d4 o  x#Toolplane mapped to top angle position strings
. B/ K. V+ ~* C3 Y( @8 v* cstr_n_a_axis : "C"
: H# \. G3 P$ e, E/ Mstr_n_b_axis : "A"# i. n) |7 f$ G* c: w9 t
str_n_c_axis : "B"
, @! T$ g1 X' E$ @" h1 @' o6 j  o
#Machine rotary routine settings
/ B' D8 b0 V) X$ N6 ]mtype        : 0     #Machine type (Define base and rotation plane below)
$ p0 J5 w( B1 P. P+ \                     #0 = Table/Table
% m# f, n1 c" t9 p! o! ^5 O                     #1 = Tilt Head/Table
2 r9 P# {- {& D  g' e4 y/ t5 o                     #2 = Head/Head
3 _1 s' l1 H5 Y9 C; F                     #3 = Nutator Table/Table# W, j* H, p& L, x& S
                     #4 = Nutator Tilt Head/Table$ B3 E4 r% `9 \7 z
                     #5 = Nutator Head/Head
. F9 e. }3 b& x8 O9 `5 `5 y* G, A/ X; x" U* _- @: A
head_is_sec  : 1     #Set with mtype 1 and 4 to indicate head is on secondary
9 c- e  [! O6 m/ f
: y: m1 i( C- d( V; x#Preferred setup is pri. zero matches sec. zero/direction
& E: h- s4 S3 d7 n: V" q3 Q' Y7 R#Zero machine and determine the planes perp. to axis rotations
0 h- P7 r$ s1 j. j4 C9 E! F#These plane combinations are valid:% S. N- @3 T# d5 ]
#Primary plane   XY   XZ   YZ
0 p: f1 d# i; |) u) _9 S5 A+ f#Secondary or    XZ   XY   XY( ?: [8 |/ ^- U5 P
#Secondary        YZ   YZ   XZ! o2 N; \7 H) x9 o5 |
; ?7 j, f1 B) j$ j
#Primary axis angle description (in machine base terms)
" A3 C/ _" q' l- O#With nutating (mtype 3-5) the nutating axis must be the XY plane
/ d. _" H4 c0 k) ?7 n! I# urotaxis1$ = vecx  #Zero      
- U5 m; \; P8 G  |: Mrotdir1$  = -vecy  #Direction  7 S. t" `+ Y2 H+ }" E
6 T: }# b8 A$ T8 `" f4 l
#Secondary axis angle description (in machine base terms)
# M5 Q2 N' H7 A, N' p#With nutating (mtype 3-5) the nutating axis and this plane normal6 d0 v2 t" g$ s! X+ i+ Z0 b
#are aligned to calculate the secondary angle 9 r( [: p- g- N$ m( T6 `
rotaxis2$ = vecz  #Zero        
0 f# M% s# a7 D/ _rotdir2$  = vecy #Direction   
  X+ \4 i8 {0 L0 X) k2 m4 Z) S3 e! h1 ~: Y% C
#NOTE: Use of 'top_map' requires the dealer match the
' F/ U& K- M2 C+ T1 J- R#      above settings below.  These must match initial settings!!!
# [1 l2 [5 w$ W6 p7 ~p_nut_restore    #Postblock, restores original axis settings
  a$ c$ i+ N- j, b  I- E      result = updgbl(rotaxis1$, "vecx")#Zero
8 }, u  A9 P# p( a1 d0 `9 x( v      result = updgbl(rotdir1$, "-vecy")#Direction
8 w4 L) y9 W( X5 ]9 Z! ~      result = updgbl(rotaxis2$, "vecz")#Zero% }/ b( Y4 b5 O$ ^2 s$ O" \4 Q
      result = updgbl(rotdir2$, "vecy")#Direction

Posts.rar

795 KB, 下载次数: 1, 下载积分: 金钱 -5

售价: 2 金钱  [记录]  [购买]

433

主题

5759

回帖

901万

积分

管理员

积分
9014269
发表于 2016-4-17 17:33:53 | 显示全部楼层
回复 1# t0143921
. G5 J) S8 e1 U0 D
  W3 T+ b( f- `3 f$ A5 `7 z* w
& _. A: T2 `8 V3 e) D- d    哪里不正确,机器结构是怎样的,将讲楚
回复

使用道具 举报

2

主题

48

回帖

57

积分

注册会员

积分
57
 楼主| 发表于 2016-4-17 19:31:00 | 显示全部楼层
回复 2# 若枫 . ^" j* [$ C6 q. F7 O4 R( \

6 P0 u7 F5 h: N. S$ }楓大. 謝謝您的回覆..我機台是立式5軸.搖籃式雙轉台. A轴(+-360度) 平行於X轴 / C轴(+90度 - 35度) 為Z軸垂直  .$ a/ c9 J. c3 I
因為刀路輸出後,並不是像mastercam所編程的刀路軌跡一樣成現出來. 5 J+ M+ `- `' H+ d- u2 S

$ ]+ U! t$ D1 M" d' }1. 在MASTERCAM上等角視圖. 藍色刀具軌跡; \1 n, w5 q1 A
https://lh6.googleusercontent.com/-SClHTRj5kx8/VxNyH-OxvUI/AAAAAAAAEmU/Eg6SEBen184AHLLcmAGBG1309oqEGfzwQCL0B/w920-h720-no/1460891346617.jpg! U9 H% v8 y" q$ }# D7 U; y

& Q5 W) S6 i+ @- H& @2. YZ平面/上視圖 . 藍色刀具軌跡1 o  W0 J8 c# ~* ], _3 e; `
https://lh5.googleusercontent.com/-p8Sj_vYdIVg/VxNyHllvzjI/AAAAAAAAEmQ/p43Jq8JD0ckdaGqumpGWadDkh8Xa78HnwCL0B/w852-h714-no/1460891370283.jpg! V4 l$ e3 `6 d5 N8 F" q4 R- Q2 X
) B6 e, Z$ M8 U9 U
3. NC程式 . 座標平面似乎錯了..: n3 s3 N" Z0 }0 t  Z8 e3 s
https://lh6.googleusercontent.com/-_QnxYNy9Q7k/VxNyH5BBolI/AAAAAAAAEmY/8F5AFfwb3-w4SFI1BmSbXYtswff3iYTXQCL0B/w591-h836-no/1460891407600.jpg3 D4 ?" l/ C/ \  I; I7 [+ r0 c& e

' O1 l5 _5 R$ n4. 所以機台上看到卻是如下..YZ平面/上視圖
* N; k. ]  m9 r: ehttps://lh5.googleusercontent.com/-asVXVmBOSe8/VxNyIEqjqlI/AAAAAAAAEmc/rSl_x2K2mdkvgo94kSCozdc3HpG-Ab2UgCL0B/w435-h449-no/1460891480581.jpg( N- G4 [9 L: v  z) Z* p$ ]# p

. w& Y1 T& [2 h, B: ~1 K5. 機台上看到卻是如下..ZY平面/上視圖
* S( j+ c# ~9 e0 {5 Bhttps://lh6.googleusercontent.com/-55yIzYCU0PY/VxNyICKyM9I/AAAAAAAAEnA/qAmGILWSjoku5SWuuUtiRzNKOS2XpodVwCL0B/w467-h454-no/1460891500782.jpg
回复

使用道具 举报

0

主题

39

回帖

20

积分

注册会员

积分
20
发表于 2016-4-18 21:24:08 | 显示全部楼层
繁体字看不懂
回复

使用道具 举报

0

主题

39

回帖

20

积分

注册会员

积分
20
发表于 2016-4-18 21:31:55 | 显示全部楼层
都不知道回复什么了
回复

使用道具 举报

2

主题

48

回帖

57

积分

注册会员

积分
57
 楼主| 发表于 2016-4-19 09:43:57 | 显示全部楼层
回复 5# 735582557 / s( b& `" d) I5 m9 n9 B/ K

/ }+ b, ^$ m8 ?$ P* Z
7 k# `* ?8 B$ O, Q. c& ]! F    前辈抱歉。我转换简体也请你帮忙一下。
, D/ V+ k# G: N. N因为我需要一个AC的五轴后处理。自己学着该看看。出来的NC似乎完全不正确能帮忙看一下问题出在哪里吗?
. [5 z9 \+ B' n. U0 r, t我想另外请教一下.MASTERCAM在设定五轴的部份.机床是不是也要设定到对应的轴向位置?还是只需要更改后处理的对应轴向就可以了?
回复

使用道具 举报

433

主题

5759

回帖

901万

积分

管理员

积分
9014269
发表于 2016-4-19 18:01:35 | 显示全部楼层
回复 6# t0143921 9 ~, @# |! R  l% y  I

% {0 |& H8 R, f9 C- _6 o  P' V& v% O! E/ \( E$ d% A  B7 B3 U
    你的软件版本太高了,我打不开,只能支持X5以下的版本
回复

使用道具 举报

433

主题

5759

回帖

901万

积分

管理员

积分
9014269
发表于 2016-4-19 18:15:14 | 显示全部楼层
回复 3# t0143921
/ k7 t1 O9 u$ G# a6 e# t
: ^! _6 e# E9 F* P9 S应按照你的描述该是这种设置7 O1 s  ?9 D. ^
rotaxis1$ = vecy  #Zero      
( s- g" ^! ]6 rrotdir1$  = vecx  #Direction  # D2 w' T* F, M8 g4 B
rotaxis2$ = vecz  #Zero        $ R( `* D- P3 I- ^2 s, x/ X- \7 n4 a  \' j
rotdir2$  = vecy #Direction
回复

使用道具 举报

2

主题

48

回帖

57

积分

注册会员

积分
57
 楼主| 发表于 2016-4-21 22:40:08 | 显示全部楼层
回复 8# 若枫
4 p$ c: b6 `; s( K0 k( f
; l) r! N  Z) y1 _+ r- M
  @# v' P+ ]* Z, h& [! `. a    謝謝楓大..我等下來試試看
回复

使用道具 举报

8

主题

61

回帖

56

积分

注册会员

积分
56
QQ
发表于 2016-4-23 21:49:18 | 显示全部楼层
楼主是哪里人,为什么要用繁体字,看的好辛苦
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /2 下一条

QQ|Archiver|手机版|小黑屋|若枫后处理论坛 ( 苏ICP备11015087号-1|苏公网安备32059002001368号 )

GMT+8, 2026-9-2 03:14 , Processed in 0.241488 second(s), 29 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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