Mastercam刀路加工时间,加工长度信息补丁
Mastercam刀路加工时间,加工长度信息补丁。本补丁可以输出刀路加工时间,加工长度等。
时间包含换刀时间,如果需要更准确的时间,请自行调整换刀时间即可。
使用方法及需要添加的代码如下,可参考图片的说明:
# --------------------------------------------------------------------------
# Optional Run Time Output Settings
# --------------------------------------------------------------------------
tlchgtime : 0.066 #Tool Change Time (* in Minutes *)
use_time_info : 0 #Output program time and path length information
use_tch_pos : 1 #Calculate with Home positions tool change postion 0=No, 1=Yes
time_format : 2 #Time format of output times in NC code: #1 = 2hrs, 14mins, 25.08sec, #2 = 2h 14:25
psof$ #Start of file for non-zero tool number
psetup
ptlchg$ #Tool change
pinitial_path
peof$ #End of file for non-zero tool
if use_time_info, ptimes_out #Total ending data for tool (Path Length and Times)
pncoutput #Movement output
ptime_calc
pdrlcommonb #Canned Drill Cycle common call, before
ptime_calc
pcanceldc$ #Cancel canned drill cycle
ptime_calc
如果需要添加每把刀的加工时间,请添加一下代码:
在pretract 下面调用单个刀具时间
pretract #End of tool path, toolchange
ptool_time
ptool_time #Calc. current Tool Time
ttltime = tltime + trtime #Calc. current Tool Time
"(Current Time = ", ptimeout, ")", e$
**** Hidden Message ***** 沙发坐上:D 谢谢若风老大的分享 学习了,努力 学习中,谢谢分享 枫大,源代码能分享吗 :lol :) 顶起 回复 6# ya574544187
源码分享了估计又很多人会都打着原创代码的字样到处招摇撞骗了:lol :lol 回复 8# 若枫 软件自带 有这个功能就是提取太麻烦了