Mastercam普通后处理不支持雷尼绍探针编程的程序输出,需要修改方可支持。
对于普通后处理如需要支持探针功能,在许可证支持的情况下,还需要按照一下方法,位置添加代码,方可支持。
1:首先后处理头行需要开启探针支持功能。
头行数据里面的O代表探针模块.
O0:不开启/不支持
O1:开启/支持
2:增加支持探针模块的函数,需要开启探针函数支持。
代码如下,请勿修改任何数据。
#Renishaw Probe Variablessx_support_mc$ : "1" #Enable new probe functionalityx_probe_opt$ : 1022force_tlchg$ : 0 #First operation marks input SOF as done, ASCII NCI toolchange Gcodes are not altered
3:增加探针刀路的描述输出命令快。
pcomment_probe$ #Renishaw probe 'comment' output postblock scomm$, e$
4:添加探针头部输出命令
psof$ #Start of file for non-zero tool number probe_head$
5:添加探针过程加载,卸载命令
psof$ #Start of file for non-zero tool number probe_head$ inhibit_probe$
uninhibit_probe$
6:同一刀具两个操作之间增加探针命令
ptlchg0$ #Call from NCI null tool change (tool number repeats) inhibit_probe$
7:换刀位置增加探针命令
ptlchg$ #Tool changeinhibit_probe$
8:刀路返回处增加探针命令
pretract #End of tool path, toolchangeuninhibit_probe$
9:结尾增加探针命令
peof$ #End of file for non-zero tooluninhibit_eof_probe$
10:换刀命令及刀轨结束加载探针命令
ptlchg1002$ #Call at actual toolchange, end last path here if op_id$ prv_op_id$, pset_mach #Set rotary switches by reading machine def parameters if cuttype one, sav_rev = rev #Axis Sub does not update to rev pspindle whatline$ = four #Required for vector toolpaths if gcode$ = 1000, [ #Null toolchange uninhibit_probe$ #---------这里需要增加 ] else, [ #Toolchange and Start of file if gcode$ = 1002, [ #Actual toolchange pretract ] if stagetool = one, prv_next_tool$ = m_one prv_xia = vequ(xh$) prv_feed = c9k ] !op_id$
领取专属 10元无门槛券
私享最新 技术干货