QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

查看: 1352|回复: 3
收起左侧

[求助] mastercam数控车后处理问题

[复制链接]
发表于 2019-12-8 13:42:50 | 显示全部楼层 |阅读模式 来自: 中国河北

马上注册,结识高手,享用更多资源,轻松玩转三维网社区。

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

x
请教大神们,车床后处理怎么样修改,能把G2或者G3改成非模态格式的,也就是说G02 X100.Z50.R2.  后面再跟一条不把G02给省略掉,万分感谢诸位大神们的解答!!!
发表于 2019-12-8 22:50:36 | 显示全部楼层 来自: 中国吉林
以默认MPLFAN为例,搜索 % v3 E; J" S0 X0 \' G
psgcode         #Output the Gcode based on the current plane
& C. W( v1 B; ~5 A7 H找到代码
  D( T6 {, \  I$ d; @. ]psgcode         #Output the Gcode based on the current plane; G0 q2 J, H7 u4 [
      if c_ax_flp,0 y- k" h3 c. |3 L
        [2 T& Q. F2 P% [; G; h  Y( O- R5 {
        #Reverse arc direction for c_axis flip
. M( Q  W" J! W        if gcode$ = two | gcode$ = three,
6 Q# b  t( V" u/ Z! h          [/ R2 t+ l6 u4 Z( _
          sav_gcode = gcode$% s% i( v0 T; q; }+ J- P5 x
          gcode$ = (5 - gcode$)  #G02->G03 or G03->G02+ N( e8 a3 k, O! j) w
          ]  o( e% _) c( D
        ]& v/ d, l! E1 W  `0 w" H) H
          if plane$ = zero, `sgcode
: @  X) ^5 N' z$ U7 _8 J% r- q      if plane$ = one, `sgcode1
1 C6 ]! `- n3 ?7 E      if plane$ = two, `sgcode24 v* Z( c. r! U  i6 H& a
      if c_ax_flp, gcode$ = sav_gcode# _6 H& I8 |, c: e

$ h3 b" @8 J: y% X2 S' S' V加点作料改为. l" {, l' X" d8 s0 o5 Y/ Z
psgcode         #Output the Gcode based on the current plane1 C" m8 ?* I! d& y  I
      if c_ax_flp,8 D/ |1 Z0 D: Y" J) @
        [$ K+ g8 R+ f: f% w
        #Reverse arc direction for c_axis flip
. @( T8 f: }% ~        if gcode$ = two | gcode$ = three,5 i/ C, R" Q1 g: n9 |8 y
          [: I- q/ |4 G; s
          sav_gcode = gcode$3 ~; ~: U4 N$ ]' h' v, y
          gcode$ = (5 - gcode$)  #G02->G03 or G03->G02
& ]5 r' ?, O% r, S          ]: }7 I$ S: T/ H3 j6 Q" n0 c
        ]  O& t% T$ [  b7 N) f
      if gcode$ = 2 | gcode$ = 3, result = force(gcode$)
. i# A8 D7 S0 ?  O4 e          if plane$ = zero, `sgcode
: r* U* c1 [6 W      if plane$ = one, `sgcode1
; J- ]) M+ ]' T2 w7 w4 u' o      if plane$ = two, `sgcode2
# q1 ~& y: r9 `8 i7 r      if c_ax_flp, gcode$ = sav_gcode) u# f" d" c& F% e
保存 完事
发表于 2019-12-8 23:29:11 | 显示全部楼层 来自: 中国广东深圳
学习大佬
发表于 2019-12-8 23:30:40 | 显示全部楼层 来自: 中国广东深圳
路过不买 发表于 2019-12-8 22:50
7 j9 J5 G, S& D/ R+ x以默认MPLFAN为例,搜索 ! X- A; z7 p4 {% {- {# {
psgcode         #Output the Gcode based on the current plane
9 ?  K7 y* Q3 n' P7 C! O找到代码
4 g5 O8 U! s( K! S( D
表哥:那可以问下后处理添加强制备刀,不需要开启预备刀怎么改
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Licensed Copyright © 2016-2020 http://www.3dportal.cn/ All Rights Reserved 京 ICP备13008828号

小黑屋|手机版|Archiver|三维网 ( 京ICP备2023026364号-1 )

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