找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 437|回复: 5

[求助] 帮忙改下MA9.1后处理,螺旋下刀

[复制链接]

5

主题

60

回帖

37

积分

注册会员

积分
37
发表于 2014-7-9 12:25:55 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 sdafew000 于 2014-7-9 12:29 编辑 / S& G+ l% J  h  f. j1 R

$ `7 I5 W! A+ _' L不知道后处理哪个参数不对,处理出来螺旋下刀是直线,程序太长了。( ]* Q* r' I4 i6 l. n
还有这个后处理我把第四轴改成B轴了,不是联动的情况下,在B轴转动前一行,加个M11;转动之后加个M10;
. f+ C$ e* A, [0 b! a. c# --------------------------------------------------------------------------9 J( A0 D( [5 [+ ~" ?) f
# General Output Settings
8 V: ~: f/ u' H4 i; n; T1 D# --------------------------------------------------------------------------+ k4 d0 @. z) Z7 V# u
sub_level   : 1     #Enable automatic subprogram support
; \; ~2 M. Z- l! a5 w* z1 r4 z9 W* jbreakarcs   : 2     #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcs
! T3 Z& B% |" W* Narcoutput   : 1     #0 = IJK, 1 = R no sign, 2 = R signed neg. over 180
6 I8 B9 a8 V5 _& `8 L, S( zarctype     : 2     #Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.+ m7 _$ `2 r, L2 t8 P
do_full_arc : 0     #Allow full circle output? 0=no, 1=yes
9 b* Q: x: F, Z$ E+ i; g# \helix_arc   : 2     #Support helix arc output, 0=no, 1=all planes, 2=XY plane only
1 @! B+ D  r* x- S0 M$ X$ ]arccheck    : 3     #Check for small arcs, convert to linear: N: Y0 j  i* [, N
atol        : .01   #Angularity tolerance for arccheck = 2
. X# `6 E, o3 b$ rltol        : .002  #Length tolerance for arccheck = 1  Y& Z% J/ K$ ]' x+ P2 E
vtol        : .0001 #System tolerance
- S, \3 ]& U2 |% r) s, e- umaxfeedpm   : 500   #Limit for feed in inch/min
' `4 Q/ T* o) qltol_m      : .05   #Length tolerance for arccheck = 1, metric

发那科Mpfan原版.rar

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

5

主题

60

回帖

37

积分

注册会员

积分
37
 楼主| 发表于 2014-7-9 12:42:56 | 显示全部楼层
顶自己一下
回复

使用道具 举报

5

主题

60

回帖

37

积分

注册会员

积分
37
 楼主| 发表于 2014-7-9 12:50:15 | 显示全部楼层
http://postp.net/viewthread.php?tid=6538      
! e& x+ n1 x7 @( \$ b& p4轴夹紧松开
回复

使用道具 举报

5

主题

60

回帖

37

积分

注册会员

积分
37
 楼主| 发表于 2014-7-9 14:33:14 | 显示全部楼层
晕,我改了一天一夜,最后发现是软件设置问题,螺旋渐降斜插,设置打断成若干直线了。。。
回复

使用道具 举报

433

主题

5759

回帖

901万

积分

管理员

积分
9014271
发表于 2014-7-9 17:43:47 | 显示全部楼层
回复 1# sdafew000 3 u3 b' t' }" M& b, i3 l

" h& l$ [0 p+ O4 P8 L
6 S7 x; |, {( \+ \' P    你的后处理不支持螺旋程序,智慧输出G1线段,缺少相应的代码。5 o5 }) k2 G5 I% [/ F+ |
- ~: g# B3 u% U9 v( T+ u5 P% C' s' {
替换你的原有的即可3 I: q$ c- N# }. `! z$ R* G6 r
0 ]- f$ ~0 N: v& `2 O3 j/ h
pcirout         #Output to NC of circular interpolation
2 a! ^7 g. `; l! `# v/ m      if full_arc_flg,. ^7 F' `6 t/ G8 z5 H/ K
        [
6 }) _' t: {& ~# z        if plane = zero, result = force(xabs,yabs)   #force coordinate on full arc              8 v; f. d7 D. A$ `
        if plane = one,  result = force(yabs,zabs)   #force coordinate on full arc              
. s( ?5 S/ j5 B# j; }        if plane = two,7 a) m2 u( g, i3 D0 ]/ m  Y1 v
          [1 v* c5 X6 J* p+ p' @$ {! o
          result = force(xabs,xabs)   #force coordinate on full arc              ) S. p% F/ |$ B
          result = force(zabs,zabs)   #force coordinate on full arc              ; p0 @7 u" m) I: `( Y+ O6 d
          ]
4 c6 v$ L+ P8 D) p+ r        ]$ E2 i' B7 t3 R! f0 r8 [3 `& P
      if hel_2100 = one, pcirout2
1 c$ t+ i0 p9 z! a+ r2 S      else, pcirout1
. d: }- C2 a0 ~1 O' Y) X" K4 S+ g3 D9 w. F1 C1 j# F3 \+ [
pcirout1        #Output to NC of circular interpolation
* I7 A6 `: z; a" S5 S      pcan1, pbld, sgcode, sgabsinc, pccdia,6 z* Q0 O, S8 ?$ B  o1 A
        pxout, pyout, pzout, pcout, parc, feed, strcantext, scoolant, e  J. {, h6 r0 j; P" U* M. }4 s: H
        # O* _4 B" p* e; b, V/ S. H8 V3 c
fmt  "K" 2  lead        #Helical lead  D4 c+ R: p1 {9 B& g7 d6 ^/ h& Y. u
hel_2100    : no   #Acramatic 2100 style helical moves, 0=no, 1=yes: {/ b1 \" ~/ K5 p

5 q" x* v; n4 R( @pcirout2        #Output to NC of circular interpolation' _& Z1 I5 w/ U8 B: g% ^* v
      if (plane = zero & fmtrnd(zinc)<>0): J. v6 d. @, m3 v
       | (plane =  one & fmtrnd(xinc)<>0)
& O3 K0 G7 B8 [) t       | (plane =  two & fmtrnd(yinc)<>0), phelout) }9 W5 K( i( a  `) F
      else, pcirout1- m( f; ?: _6 ^1 e, R) m5 Q$ P0 J

1 e  M; ?6 r0 e/ w; Jphelout         #Output to NC of helical interpolation
" l% |" m  p2 k6 S( w9 \6 X      if plane = zero,; `9 v% j# M* t8 v7 y. G
        [
* ~' B" r' R+ x4 N  I2 t& e        result = nwadrs(strk, lead)
4 r; o% L( O; S) @        lead = abs(zinc/sweep*360)
- K! J  J# S$ \0 h  U# Q* D        ]$ ^( ~4 j2 M3 p) p+ L$ ?  v7 s3 G
      if plane = one,% J6 Z7 q, k. A! e
        [
& E$ C$ C  b7 t. T2 x3 y8 T  w% o5 O" x        result = nwadrs(stri, lead)- I$ U1 W" `: t9 u
        lead = abs(xinc/sweep*360)7 B5 o3 c/ e" @  |! l
        ]
8 r1 S/ G* u0 R  [0 o! Z. r2 |, Y      if plane = two,
" o1 G+ q5 Z/ P/ a! F, x        [
9 O, N+ r: ^- m5 ]1 r& x/ u        result = nwadrs(strj, lead)9 @* |3 X: s, q0 c
        lead = abs(yinc/sweep*360)
& o$ W2 I! L& {; t" ~        ]
4 m; ?  [. z) q& }( J; M* {+ @      pcan1, pbld, `sgfeed, sgplane, sgcode, sgabsinc, pccdia,
1 b8 g* i$ W4 _7 u! N# Z        pxout, pyout, pzout, *lead, pcout, parc, feed, strcantext, scoolant, e
回复

使用道具 举报

3

主题

60

回帖

107

积分

注册会员

积分
107
发表于 2014-7-13 07:56:25 | 显示全部楼层
实在是太复杂了啊,不知道怎么改
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2026-10-20 14:41 , Processed in 0.190902 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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