找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 253|回复: 5

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

[复制链接]

5

主题

60

回帖

37

积分

注册会员

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

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

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

×
本帖最后由 sdafew000 于 2014-7-9 12:29 编辑
' y9 H: A6 W" q) L" W. e
/ O# w& V) o7 W% r9 L6 h不知道后处理哪个参数不对,处理出来螺旋下刀是直线,程序太长了。4 X  d* u7 q, W1 i- L8 ^
还有这个后处理我把第四轴改成B轴了,不是联动的情况下,在B轴转动前一行,加个M11;转动之后加个M10;
) Z  i) l) C% t, `" R7 q9 X# --------------------------------------------------------------------------% h3 Y1 a- V+ H  F
# General Output Settings
3 x; n3 k/ S: s7 |; ]+ X' \# --------------------------------------------------------------------------1 f# Q. d3 F& n: l( U
sub_level   : 1     #Enable automatic subprogram support
/ p% e1 K' W( \+ Ybreakarcs   : 2     #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcs
5 p, x0 f7 t! \* t. \arcoutput   : 1     #0 = IJK, 1 = R no sign, 2 = R signed neg. over 180
1 o& @$ x8 m4 ]- farctype     : 2     #Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.
: `; [" N% _2 p  q3 Q) [7 pdo_full_arc : 0     #Allow full circle output? 0=no, 1=yes
- s# ?2 n7 Q( i) F& qhelix_arc   : 2     #Support helix arc output, 0=no, 1=all planes, 2=XY plane only! ?/ R: Z. U$ r
arccheck    : 3     #Check for small arcs, convert to linear
6 x8 y  G' @3 H# m4 o) x& Q% Ratol        : .01   #Angularity tolerance for arccheck = 2! m5 J. l7 g# C& [) @* Y: b
ltol        : .002  #Length tolerance for arccheck = 1: z# ?0 b. _2 ]& M2 c) k
vtol        : .0001 #System tolerance
9 @" T! Y3 w( ^. P4 B. l: g, h4 Amaxfeedpm   : 500   #Limit for feed in inch/min2 ]# `$ A  b/ \- ^6 f/ s
ltol_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       ) c8 `1 n2 N/ D; U
4轴夹紧松开
回复

使用道具 举报

5

主题

60

回帖

37

积分

注册会员

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

使用道具 举报

433

主题

5759

回帖

901万

积分

管理员

积分
9014266
发表于 2014-7-9 17:43:47 | 显示全部楼层
回复 1# sdafew000
- o4 n8 c6 z% t
# g! B" O3 c  I- N8 b' A, \8 N, ?
    你的后处理不支持螺旋程序,智慧输出G1线段,缺少相应的代码。
) F5 A1 d, G' Z$ M$ L7 ~: o' P1 V( E, S4 @% f7 t% a! c% Y$ z
替换你的原有的即可& P+ {( j/ D! }$ K
0 ^6 l; [. W4 G" A0 s% H
pcirout         #Output to NC of circular interpolation
2 y( v' g0 n4 T) f1 r; Y( ?: V, |      if full_arc_flg,
4 [- g1 b: K# a% Z3 }# S/ t9 ?        [) o' [, r) z+ R9 ?
        if plane = zero, result = force(xabs,yabs)   #force coordinate on full arc              
8 W: P+ _, ^- o+ e! P        if plane = one,  result = force(yabs,zabs)   #force coordinate on full arc              % r6 J& }- j$ y1 x  p7 }
        if plane = two,
$ b0 G/ G& _9 J. o          [  w+ z& t3 R: E9 s4 Q
          result = force(xabs,xabs)   #force coordinate on full arc              % z! k- z' N" u* ~& j
          result = force(zabs,zabs)   #force coordinate on full arc              ; A! Q, c$ q& P6 f: R% c9 j
          ]7 j% [; S, I- b
        ]
6 a3 i, R7 J8 R5 p0 p6 t      if hel_2100 = one, pcirout22 @3 u0 ?- s4 a( w% f4 ?  z; m
      else, pcirout1
! B+ r' b) i. F9 t4 p& q' L  U6 V7 R* z: F
pcirout1        #Output to NC of circular interpolation% I" _6 i6 `7 o; X
      pcan1, pbld, sgcode, sgabsinc, pccdia,
' T% h% \1 O8 I( ^5 g        pxout, pyout, pzout, pcout, parc, feed, strcantext, scoolant, e
# ^5 E/ \5 D6 G4 T% \7 m- e        
/ y2 l4 N, b; \2 f. \3 c: x7 Q+ Rfmt  "K" 2  lead        #Helical lead
; y- `4 ?/ h, F$ f. Ahel_2100    : no   #Acramatic 2100 style helical moves, 0=no, 1=yes1 M3 u+ q+ ~5 T3 b2 @

& v. |& T: }' T1 Y& i( @: rpcirout2        #Output to NC of circular interpolation3 C7 ^# n5 w4 ?. Z
      if (plane = zero & fmtrnd(zinc)<>0)
( y4 b5 t/ O0 v: n1 \* U( n+ M       | (plane =  one & fmtrnd(xinc)<>0)$ T; R6 n0 w; g/ s# ~8 M: |8 F' P$ W
       | (plane =  two & fmtrnd(yinc)<>0), phelout
# T: F$ x7 X2 O9 T7 ]4 L( Z: E      else, pcirout1, [$ p9 E$ E0 ^& Y3 D$ l

5 \2 r$ x/ c- s! e1 ?phelout         #Output to NC of helical interpolation1 a& d6 U7 @% i# l. g& L8 o
      if plane = zero,! w8 {1 T( r9 \: j# m2 b
        [  w  v, [) h; _7 R- C: y' ^, h& M
        result = nwadrs(strk, lead)8 x( x# V+ C$ s& X) z, Z$ {8 j1 |8 d+ D
        lead = abs(zinc/sweep*360)$ }# o' i- n! s- j( ^. M& ?  Q
        ]
( T- L- N* d, f& g3 A# Q      if plane = one,
/ u" V9 g0 e% u. e1 \8 J* o; c  s. Z        [8 p4 w9 b+ O) l- k4 H" Y
        result = nwadrs(stri, lead)7 z% E$ N" B2 O* Q( b: e
        lead = abs(xinc/sweep*360)
. H6 v) n1 j6 [. c+ U& F        ]
. e! z0 M& r: ^/ h+ v" R      if plane = two,; Y! d: o% c2 D7 R
        [, i* R, e5 h; [( B
        result = nwadrs(strj, lead)9 ^7 o1 q# a( i
        lead = abs(yinc/sweep*360)$ a$ P! A+ m6 B. D7 U8 ]
        ]+ F& n, F9 n: x9 N6 V1 _  E
      pcan1, pbld, `sgfeed, sgplane, sgcode, sgabsinc, pccdia,
$ P7 q) V9 \. \5 s$ ~0 T4 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-8-14 21:44 , Processed in 0.150270 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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