UG爱好者

标题: mastercam后处理修改 [打印本页]

作者: 与酒为伍    时间: 2023-3-26 18:37
标题: mastercam后处理修改
各位大佬,若想换刀前三轴回零怎么修改?  麻烦截图加文字,非常感谢!

1679826656108.png (57.53 KB, 下载次数: 45)

1679826656108.png

作者: zcb1588*    时间: 2023-3-27 08:19
搜索*sg28ref  
加 "X0.", "Y0."
最后得:pfbld, n$, *sg28ref, "X0.", "Y0.", e$
作者: 121244885    时间: 2023-3-27 18:23
      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
作者: 飞FEIT    时间: 2023-4-8 11:46





欢迎光临 UG爱好者 (https://www.ugsnx.com/) Powered by Discuz! X3.2