QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

全站
22小时前
查看: 1238|回复: 3
收起左侧

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

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

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

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

x
请教大神们,车床后处理怎么样修改,能把G2或者G3改成非模态格式的,也就是说G02 X100.Z50.R2.  后面再跟一条不把G02给省略掉,万分感谢诸位大神们的解答!!!
发表于 2019-12-8 22:50:36 | 显示全部楼层 来自: 中国吉林
以默认MPLFAN为例,搜索
* v6 y6 i( f$ E4 g% ]4 d( U% bpsgcode         #Output the Gcode based on the current plane& g( i& q0 P; \9 G) N4 i2 l* h
找到代码# G7 M% X" _! I8 e1 |: ^
psgcode         #Output the Gcode based on the current plane
8 }! W: l9 y) n/ d8 k6 h7 G      if c_ax_flp,- m) w' e) j' @% A1 y5 U1 X
        [: S3 D- C$ [2 g. h4 j
        #Reverse arc direction for c_axis flip
) R2 e: Z& n0 b4 i7 S; n# \" L        if gcode$ = two | gcode$ = three,# P0 Y( g5 F) J+ L6 l
          [
5 \- d5 I  ]) ?7 F6 e          sav_gcode = gcode$
! X) [3 y( J% b9 G2 h          gcode$ = (5 - gcode$)  #G02->G03 or G03->G029 b' G0 K5 }0 Q. N* K3 s, _2 f7 A+ k
          ]
" [) v8 W. Z$ w( Z, ]) J9 {/ `6 M" q, d        ]
8 }9 L3 b4 I% x* y          if plane$ = zero, `sgcode
/ t# y2 f; K& T% L! ~, [/ j- j      if plane$ = one, `sgcode19 m5 f, V$ p) b. n9 W" u
      if plane$ = two, `sgcode2, s: f7 u3 }+ R9 f& a
      if c_ax_flp, gcode$ = sav_gcode7 |" F! z9 [2 l; p0 g
! R2 P- b  G1 M5 U% C
加点作料改为
( K! Q0 S; h! v8 Q! A# l/ F1 Spsgcode         #Output the Gcode based on the current plane
2 X- t8 l  C0 X7 s' o/ E8 W      if c_ax_flp,, G% U' f/ t9 U
        [3 _: F( ]+ C2 c5 M! W7 M& S
        #Reverse arc direction for c_axis flip
5 x6 R+ l, o; f0 J0 C        if gcode$ = two | gcode$ = three,
8 R/ a6 @# r" I) `: x0 b7 [          [
; I9 L5 x8 C8 R6 C          sav_gcode = gcode$
5 z9 Q2 w2 ?' j          gcode$ = (5 - gcode$)  #G02->G03 or G03->G02
& d% c4 }0 |2 g& e' B          ]. L3 w* n  a3 X
        ]
5 b9 Z) P! Z  F      if gcode$ = 2 | gcode$ = 3, result = force(gcode$)
$ b, _  T+ c2 v+ a6 ^# k; b          if plane$ = zero, `sgcode
& J. P: p( U$ ?/ X      if plane$ = one, `sgcode1
) D9 W% o1 u% h" E( s) e- Z      if plane$ = two, `sgcode2
; D3 C8 a/ J3 z; b$ T/ A) P      if c_ax_flp, gcode$ = sav_gcode; f% G2 L+ [+ Z5 K' F4 B
保存 完事
发表于 2019-12-8 23:29:11 | 显示全部楼层 来自: 中国广东深圳
学习大佬
发表于 2019-12-8 23:30:40 | 显示全部楼层 来自: 中国广东深圳
路过不买 发表于 2019-12-8 22:50
' p2 h5 \6 u. C  P$ {3 I$ T以默认MPLFAN为例,搜索
, Q2 K( _) H- S8 rpsgcode         #Output the Gcode based on the current plane
6 M$ z+ Q: x* h3 ^6 O找到代码
' ~; {4 u. W7 {9 {7 V- m
表哥:那可以问下后处理添加强制备刀,不需要开启预备刀怎么改
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

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