QQ登录

只需一步,快速开始

快捷登录

登录 或者 注册 请先

UG爱好者

查看: 1490|回复: 3

[求助] mastercam后处理修改

[复制链接]

三级士官

Rank: 3Rank: 3

4

主题

77

帖子

644

积分
发表于 2023-3-26 18:37:09 | 显示全部楼层 |阅读模式
各位大佬,若想换刀前三轴回零怎么修改?  麻烦截图加文字,非常感谢!
1679826656108.png

有奖推广贴子: 

回复

使用道具 举报

少校

Rank: 6Rank: 6

5

主题

639

帖子

8353

积分
发表于 2023-3-27 08:19:25 | 显示全部楼层
搜索*sg28ref  
加 "X0.", "Y0."
最后得:pfbld, n$, *sg28ref, "X0.", "Y0.", e$
回复 支持 反对

使用道具 举报

五级士官

Rank: 4

0

主题

139

帖子

920

积分
发表于 2023-3-27 18:23:21 | 显示全部楼层
      pcom_moveb
      c_mmlt #Multiple tool subprogram call
      ptoolcomment
      comment
      pcan
      if stagetool >= zero,e
      pbld, n, *t,
    "G91", *sg28ref, "Z0.", e
    *sg28ref, "X0.","Y0." ,e
     "M6", e
      pindex
      if mi1 > one, absinc = zero
      pcan1, pbld, n, *sgcode, *sgabsinc, pwcs, pfxout, pfyout,
        pfcout, *speed, *spindle, pgear, strcantext, e
      pbld, n, "G43", *tlngno, pfzout, scoolant, next_tool, e
      absinc = sav_absinc
      pcom_movea
      toolchng = zero
      c_msng #Single tool subprogram call
              
ptlchg0         #Call from NCI null tool change (tool number repeats)                        
      pcuttype
      pcom_moveb
      c_mmlt #Multiple tool subprogram call
      comment
      pcan
      result = newfs(15, feed)  #Reset the output format for 'feed'
      pbld, n, sgplane, e      
      pspindchng
      pbld, n, scoolant, e
      if mi1 > one & workofs <> prv_workofs,
        [
        sav_absinc = absinc
        absinc = zero
        pbld, n, sgabsinc, pwcs, pfxout, pfyout, pfzout, pfcout, e
        pe_inc_calc
        ps_inc_calc
        absinc = sav_absinc
        ]
      if cuttype = zero, ppos_cax_lin
      if gcode = one, plinout
      else, prapidout
      pcom_movea
      c_msng #Single tool subprogram call

ptlchg          #Tool change                                       
      pcuttype
      toolchng = one
      if mi1 = one, #Work coordinate system
        [
        pfbld, n, *sg28ref, "X0.", "Y0.", e
        pfbld, n, "G92", *xh, *yh, *zh, e
        ]
      pbld, n, "M01", e
      pcom_moveb
      c_mmlt #Multiple tool subprogram call
      ptoolcomment
      comment
      pcan
      result = newfs(15, feed)  #Reset the output format for 'feed'
      pbld, n, *t,
    "G91", *sg28ref, "Z0.", e
    *sg28ref, "X0.","Y0." ,e
     "M6", e
      pindex
      sav_absinc = absinc     
找到这里  把      "G91", *sg28ref, "Z0.", e
                          *sg28ref, "X0.","Y0." ,e
                          "M6", e
插在*t后分行
T3G91G28Z0.
G28X0.Y0.
M6
G0G90G54X0.Y0.S1500M3
G43H3Z100.M8T6
G98G81Z-3.R1.F30.
X12.5
X-12.5
X12.5
G80
M5
G91G28Z0.M9
M01
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

 
 
QQ:1359218528
工作时间:
9:00-17:00
 
微信公众号
手机APP
机械社区
微信小程序

手机版|UG爱好者论坛 ( 京ICP备10217105号-2 )    论坛管理员QQ:1359218528

本站信息均由会员发表,不代表本网站立场,如侵犯了您的权利请联系管理员,邮箱:1359218528@qq.com  

Powered by UG爱好者 X3.2  © 2001-2014 Comsenz Inc. GMT+8, 2024-3-29 13:58

返回顶部