找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 285|回复: 5

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

[复制链接]

5

主题

60

回帖

37

积分

注册会员

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

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

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

×
本帖最后由 sdafew000 于 2014-7-9 12:29 编辑 ' c% u$ P/ g, D' D& U
5 a9 C1 K, M$ i& K
不知道后处理哪个参数不对,处理出来螺旋下刀是直线,程序太长了。7 I: M5 E4 g9 u) K+ I% k
还有这个后处理我把第四轴改成B轴了,不是联动的情况下,在B轴转动前一行,加个M11;转动之后加个M10;& M$ ~9 N$ w0 k- `
# --------------------------------------------------------------------------
) [. ]( u/ O7 }, q# General Output Settings' E6 H& U8 t; ^; \& z0 {8 H; `
# --------------------------------------------------------------------------# M8 w0 c: A$ i0 A  ~
sub_level   : 1     #Enable automatic subprogram support7 ]4 B' _9 k  Q5 H* L
breakarcs   : 2     #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcs
" \( L5 V9 z# v1 narcoutput   : 1     #0 = IJK, 1 = R no sign, 2 = R signed neg. over 180; c( G7 }5 t# B7 I
arctype     : 2     #Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.
9 v/ S0 T* {) V' ?: @3 y, p# kdo_full_arc : 0     #Allow full circle output? 0=no, 1=yes! r. }6 a- e/ u1 g
helix_arc   : 2     #Support helix arc output, 0=no, 1=all planes, 2=XY plane only9 L$ @. m  Q) ~' {9 u. W: n! s
arccheck    : 3     #Check for small arcs, convert to linear" J& r1 L2 s! x7 n
atol        : .01   #Angularity tolerance for arccheck = 2& J( \0 @! [' \4 s
ltol        : .002  #Length tolerance for arccheck = 1; S4 L6 ^9 v1 ?: C. X( `1 X7 y
vtol        : .0001 #System tolerance, G$ ~# _' s+ T& M1 O: {
maxfeedpm   : 500   #Limit for feed in inch/min
+ K: S" `; k2 y. O/ jltol_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       1 k# s. f( I9 v0 J2 ^* i+ W# k
4轴夹紧松开
回复

使用道具 举报

5

主题

60

回帖

37

积分

注册会员

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

使用道具 举报

433

主题

5759

回帖

901万

积分

管理员

积分
9014266
发表于 2014-7-9 17:43:47 | 显示全部楼层
回复 1# sdafew000 - T+ V9 g* y7 ?# `/ y

& s; o2 i6 o8 o  {. J6 ~) }) Q2 i' G+ z8 \# K* o7 }
    你的后处理不支持螺旋程序,智慧输出G1线段,缺少相应的代码。) |4 _9 E& A; i# o/ M) o5 L
9 q& M+ L# [. Y0 Y
替换你的原有的即可
6 @+ ~7 N* j4 ^) s. |0 J+ e7 h9 d+ a9 M. l/ A; ]
pcirout         #Output to NC of circular interpolation
, J" u5 \$ a: I9 i  O      if full_arc_flg,* }, \& p' Q. m( T. U0 M
        [3 m- Q' m. Y+ Q' p: X& g
        if plane = zero, result = force(xabs,yabs)   #force coordinate on full arc              3 O( k9 z; c: @# W, R6 ^$ ]# o
        if plane = one,  result = force(yabs,zabs)   #force coordinate on full arc              & J# \4 z% o+ a' G, C# S# _
        if plane = two,
- X9 O+ O2 J% N" T5 }2 D          [
6 |8 K% }0 i- ^4 E  c# N# l: b          result = force(xabs,xabs)   #force coordinate on full arc              
: ?$ q1 H, X9 t  I% a" t, h. E          result = force(zabs,zabs)   #force coordinate on full arc                V: S" c3 b& M$ u9 b8 C; X  F2 p
          ]
  W) h* L& c- l; J9 S) f        ]* i% N9 l# D2 X  y- Q# ]
      if hel_2100 = one, pcirout2
6 Q1 f' g& Z6 }, r      else, pcirout1
! I( a6 }) e/ E& L1 a8 n/ W& h/ O
1 r3 d( @) Y) |pcirout1        #Output to NC of circular interpolation7 h- `: F+ a. v* f7 }8 T4 q
      pcan1, pbld, sgcode, sgabsinc, pccdia,
2 c7 R3 G; s% I9 m3 m& M) O, s9 e% _        pxout, pyout, pzout, pcout, parc, feed, strcantext, scoolant, e9 j- g6 v4 W; ~, F
        
6 k" g9 x; ]: E# ~9 r0 ~fmt  "K" 2  lead        #Helical lead
: R/ S. Y% t9 q0 ?$ @hel_2100    : no   #Acramatic 2100 style helical moves, 0=no, 1=yes/ B6 M- c! ^1 S' i5 U. L" n
% _( w6 R8 n; o/ G# B. q/ z3 g
pcirout2        #Output to NC of circular interpolation; x% p: a% l$ `" Y5 A1 @' w' ?
      if (plane = zero & fmtrnd(zinc)<>0)( f; ~2 m0 V9 x& X
       | (plane =  one & fmtrnd(xinc)<>0)! \1 M1 @( D4 {* z+ T) y
       | (plane =  two & fmtrnd(yinc)<>0), phelout
& W' y+ P+ k. e9 N      else, pcirout1
6 p" o0 z5 R5 j6 u# h$ p  i
1 H; H; s* G9 X8 @8 C% l) e( Lphelout         #Output to NC of helical interpolation8 x) i/ |2 x6 X: y; C) c
      if plane = zero,
' o3 r( Y2 a9 n2 n9 n        [8 d/ K% t) @4 L+ v3 a; R
        result = nwadrs(strk, lead)- t2 H; @- Y3 F1 @
        lead = abs(zinc/sweep*360)" _2 q2 p7 n8 P) Z
        ]
! w8 Q) C) x0 _* J; {+ c8 a      if plane = one,2 l' g" R$ O* S8 C' R. |: F
        [" ?# A" `7 j8 n
        result = nwadrs(stri, lead)/ o4 o7 J% B1 h+ z( g6 F
        lead = abs(xinc/sweep*360)
7 L# s9 y% k% q4 ~        ]
4 T7 `' c6 T9 B: P: o      if plane = two,
, u+ A+ `" y( D        [
* u3 a! ]$ X' p: r( T, ?: I& e$ f  {        result = nwadrs(strj, lead)
% [2 @7 l1 E4 r' S$ i        lead = abs(yinc/sweep*360)
, q* E) O; p) l/ S' Y- w" I        ]' Q3 C! v9 \, N  K7 ^/ e# U
      pcan1, pbld, `sgfeed, sgplane, sgcode, sgabsinc, pccdia,. `8 P) C) l. ]* D6 d" y
        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-8-23 06:09 , Processed in 0.251787 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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