QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

全站
4天前
查看: 1242|回复: 3
收起左侧

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

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

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

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

x
请教大神们,车床后处理怎么样修改,能把G2或者G3改成非模态格式的,也就是说G02 X100.Z50.R2.  后面再跟一条不把G02给省略掉,万分感谢诸位大神们的解答!!!
发表于 2019-12-8 22:50:36 | 显示全部楼层 来自: 中国吉林
以默认MPLFAN为例,搜索
/ S9 j7 H; }" O3 ^3 epsgcode         #Output the Gcode based on the current plane
0 L' B% D! ]+ X找到代码
. ]+ V4 V. ^7 J& q0 [) A8 C/ I. Dpsgcode         #Output the Gcode based on the current plane0 B7 B/ _- s8 F: u6 _& b, T+ b8 t# K7 c
      if c_ax_flp,* R+ b3 h1 C% g8 q# ]& ^" \
        [; N7 z  W, D& w; f5 z
        #Reverse arc direction for c_axis flip
+ W6 M- {" y# b$ \        if gcode$ = two | gcode$ = three,0 s2 k3 o4 {2 [/ U6 _1 B
          [
, D7 }% H7 [3 k          sav_gcode = gcode$2 _" M2 ~$ F# E  b9 N
          gcode$ = (5 - gcode$)  #G02->G03 or G03->G02
" l6 j0 u6 a  j7 Y: z  e          ]
) _6 U# ~5 P' B0 T# M3 t0 {$ s2 P        ]
4 A' C8 {: @  P( U/ ~- K          if plane$ = zero, `sgcode
. a! Z3 e/ `7 N6 m  f      if plane$ = one, `sgcode1
2 F4 m- K1 g  C      if plane$ = two, `sgcode2+ x8 w7 a, t7 [# N
      if c_ax_flp, gcode$ = sav_gcode4 R- R# Q/ ^! G% _! g4 v
5 T* x" W% K& K
加点作料改为
4 n! c4 _- g4 v0 B9 \2 `% a. X. bpsgcode         #Output the Gcode based on the current plane1 Z; @4 h0 a5 K4 ]! E# ^' o% \
      if c_ax_flp,
& q6 E5 |: X. y. P7 t' S/ R        [! F5 g7 B8 O( |  ~) j
        #Reverse arc direction for c_axis flip
& }/ P. [% G6 L% z  b/ f# M2 p        if gcode$ = two | gcode$ = three,
' w9 z- N& \2 F( o          [8 U& L; U3 P8 ?. d1 ]3 L
          sav_gcode = gcode$# V8 d# K& Z. l8 B# g- q& `
          gcode$ = (5 - gcode$)  #G02->G03 or G03->G02+ g8 C6 x7 h5 c( ?
          ]- h# W( k* {& j0 o' K% i
        ]
( C* x( c4 u  G' O      if gcode$ = 2 | gcode$ = 3, result = force(gcode$)
: G  T5 d% n8 |0 J5 W3 b          if plane$ = zero, `sgcode! Q- m3 _$ b$ ]7 C
      if plane$ = one, `sgcode16 d+ F( H3 U( M# U7 y- D0 \8 w
      if plane$ = two, `sgcode2
; h* q$ a* M0 f      if c_ax_flp, gcode$ = sav_gcode
" @0 i- P* U1 a% r保存 完事
发表于 2019-12-8 23:29:11 | 显示全部楼层 来自: 中国广东深圳
学习大佬
发表于 2019-12-8 23:30:40 | 显示全部楼层 来自: 中国广东深圳
路过不买 发表于 2019-12-8 22:50
2 d1 _% I  I; x: t  B0 t以默认MPLFAN为例,搜索
; \# e( |6 Y$ ?: _! I( y; d/ ?psgcode         #Output the Gcode based on the current plane# F( k: g1 L. q7 M, G
找到代码

7 L' G# Y& Z2 `8 V4 G3 X2 i3 p表哥:那可以问下后处理添加强制备刀,不需要开启预备刀怎么改
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

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