找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 286|回复: 5

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

[复制链接]

5

主题

60

回帖

37

积分

注册会员

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

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

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

×
本帖最后由 sdafew000 于 2014-7-9 12:29 编辑
1 b" c$ x. h2 j3 g$ @! {7 P7 q
不知道后处理哪个参数不对,处理出来螺旋下刀是直线,程序太长了。, H% _% e4 |( }, y3 d2 N
还有这个后处理我把第四轴改成B轴了,不是联动的情况下,在B轴转动前一行,加个M11;转动之后加个M10;7 T3 V/ w5 K& d  s
# --------------------------------------------------------------------------, m3 @0 p& A" O( q" `6 m* J6 ]% x, n7 b  @
# General Output Settings
* v! f- d# ~* h( \% }" S, c" O# --------------------------------------------------------------------------' |+ b8 t& N3 W3 h. ^" V; r
sub_level   : 1     #Enable automatic subprogram support5 A' w: Y' J# Z0 U% ?
breakarcs   : 2     #Break arcs, 0 = no, 1 = quadrants, 2 = 180deg. max arcs$ g( y, T! B0 g" S. ]
arcoutput   : 1     #0 = IJK, 1 = R no sign, 2 = R signed neg. over 180
6 Q; V- ^) b1 Karctype     : 2     #Arc center 1=abs, 2=St-Ctr, 3=Ctr-St, 4=unsigned inc.5 Q6 B2 J8 Z6 [7 k  Y! |/ }! |
do_full_arc : 0     #Allow full circle output? 0=no, 1=yes* {5 F( W. r% S1 {0 D3 s4 t% I
helix_arc   : 2     #Support helix arc output, 0=no, 1=all planes, 2=XY plane only: B% b! C1 i2 P) r5 }, p
arccheck    : 3     #Check for small arcs, convert to linear
- }" t. ~2 e  a$ m3 n- x; Iatol        : .01   #Angularity tolerance for arccheck = 2& D5 M1 s2 i) j$ p$ V
ltol        : .002  #Length tolerance for arccheck = 1
$ |/ y1 k, n. x: lvtol        : .0001 #System tolerance
5 Y  J& w% s& Y) Dmaxfeedpm   : 500   #Limit for feed in inch/min0 k% ~# L/ }' Z0 a5 {
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      
6 ^, p4 U( M7 v/ ^4 h4 B4轴夹紧松开
回复

使用道具 举报

5

主题

60

回帖

37

积分

注册会员

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

使用道具 举报

433

主题

5759

回帖

901万

积分

管理员

积分
9014266
发表于 2014-7-9 17:43:47 | 显示全部楼层
回复 1# sdafew000
& s7 S: z4 r4 R% O$ {, h- ^2 Q- @/ w. J5 y0 d

3 u+ _8 K; ?8 s' H    你的后处理不支持螺旋程序,智慧输出G1线段,缺少相应的代码。: u/ U+ q. U# |% K5 y  C

# E4 s) w# x' J, {3 I替换你的原有的即可
. n% @8 G" {1 w1 G' r. n
& j* U1 a& p3 Y' m% hpcirout         #Output to NC of circular interpolation
+ z9 J+ _+ l% R! m1 }$ Y* @$ X      if full_arc_flg,* J8 T# B5 B* G8 U( C/ b+ [) Q
        [$ r" l$ R1 e5 u) K5 C2 _1 }
        if plane = zero, result = force(xabs,yabs)   #force coordinate on full arc              
  J4 o* _& }+ k+ @        if plane = one,  result = force(yabs,zabs)   #force coordinate on full arc              
% `2 K# o. p+ i5 k6 O- a        if plane = two,
* n, W- ^/ S7 @5 O$ r+ j          [3 u  y* J' {3 q: L/ C
          result = force(xabs,xabs)   #force coordinate on full arc              
/ v/ ~5 L- F9 P4 i5 j* }7 l          result = force(zabs,zabs)   #force coordinate on full arc              - s7 \5 v  z* b6 H3 x. t% g
          ]5 k+ Z% i9 ^1 i8 x
        ]
6 @) [. C' ]. ?" f. Y      if hel_2100 = one, pcirout2! ?+ o& P. Y/ q# A5 t% N  C0 ^3 E
      else, pcirout1
3 A+ b( w$ O2 k4 s: g" j6 U" e+ t/ |4 h7 S
pcirout1        #Output to NC of circular interpolation
* b# ?4 B9 L  W      pcan1, pbld, sgcode, sgabsinc, pccdia,- `8 k, _+ Y8 p4 O7 d
        pxout, pyout, pzout, pcout, parc, feed, strcantext, scoolant, e! [$ z( t0 m2 C" G6 H, A/ R
        
9 z0 j3 x6 T2 e" I$ f# Vfmt  "K" 2  lead        #Helical lead& @* n" g* @: H/ {( r& |
hel_2100    : no   #Acramatic 2100 style helical moves, 0=no, 1=yes7 P) n3 K- _- G* A/ u  U

# T& |+ i" ]6 R) l  r: ]8 H- l& ?, H% `pcirout2        #Output to NC of circular interpolation3 P( o6 T( B4 {; @: k
      if (plane = zero & fmtrnd(zinc)<>0)4 V5 J: n! |- l1 o$ l# l0 g
       | (plane =  one & fmtrnd(xinc)<>0)
. w2 t+ Z& r7 Y/ I+ h7 S       | (plane =  two & fmtrnd(yinc)<>0), phelout
4 Q4 Q9 V9 T" S      else, pcirout1
0 ^" s6 `5 z. Q/ D5 s1 l! V. O6 N! Q* H& u
phelout         #Output to NC of helical interpolation. y, f! ^& }6 J2 k: n8 e
      if plane = zero,- O/ |, _% ]8 q' D
        [( W- |, `' I1 g5 x
        result = nwadrs(strk, lead)4 N, a8 q# T* R! A$ ?
        lead = abs(zinc/sweep*360); ?1 y5 U3 p5 c! G4 q1 B+ ?) k
        ]7 e6 f7 h/ O- k- w% q. N; r: N
      if plane = one," j: F9 u( s* p+ }8 G: s9 J
        [; l: P) Z# I, h! o/ v
        result = nwadrs(stri, lead)
" Z9 f8 C' `& ~+ m( w* f        lead = abs(xinc/sweep*360)
# n0 `4 O  o; T6 c4 D" o- X        ]
: j$ v& j, o* }7 ^      if plane = two,
, G$ J$ P( A/ o        [
) x& p6 u% p5 t! D9 Q% \        result = nwadrs(strj, lead)
- ~$ V, ^% w4 K+ Q  h8 m        lead = abs(yinc/sweep*360): o/ j  p- B' t9 z
        ]
- W5 o7 K- P. P" _      pcan1, pbld, `sgfeed, sgplane, sgcode, sgabsinc, pccdia,
* N4 a6 v% `% J# Q. C        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:11 , Processed in 0.211741 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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