Mastercam普通后处理不支持雷尼绍探针编程的程序输出,需要修改方可支持。
对于普通后处理如需要支持探针功能,在许可证支持的情况下,还需要按照一下方法,位置添加代码,方可支持。
1:首先后处理头行需要开启探针支持功能。
头行数据里面的O代表探针模块.
O0:不开启/不支持
O1:开启/支持
代码块
JavaScript
[POST_VERSION] #DO NOT MOVE OR ALTER THIS LINE# V20.00 P0 E1 W20.00 T1476459315 M20.00 I0 O1
复制成功
2:增加支持探针模块的函数,需要开启探针函数支持。
代码如下,请勿修改任何数据
代码块
JavaScript
#Renishaw Probe Variables
sx_support_mc$ : "1" #Enable new probe functionality
x_probe_opt$ : 1022
force_tlchg$ : 0 #First operation marks input SOF as done, ASCII NCI toolchange Gcodes are not altered
复制成功
3:增加探针刀路的描述输出命令快。
代码块
JavaScript
pcomment_probe$ #Renishaw probe 'comment' output postblock
scomm$, e$
复制成功
4:添加探针头部输出命令
代码块
JavaScript
psof$ #Start of file for non-zero tool number
probe_head$
复制成功
5:添加探针过程加载,卸载命令
代码块
JavaScript
psof$ #Start of file for non-zero tool number
probe_head$
inhibit_probe$
uninhibit_probe$
复制成功
6:同一刀具两个操作之间增加探针命令
代码块
JavaScript
ptlchg0$ #Call from NCI null tool change (tool number repeats)
inhibit_probe$
复制成功
7:换刀位置增加探针命令
代码块
JavaScript
ptlchg$ #Tool change
inhibit_probe$
复制成功
8:刀路返回处增加探针命令
代码块
JavaScript
pretract #End of tool path, toolchange
uninhibit_probe$
复制成功
9:结尾增加探针命令
代码块
JavaScript
peof$ #End of file for non-zero tool
uninhibit_eof_probe$
复制成功
10:换刀命令及刀轨结束加载探针命令
代码块
JavaScript
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$
复制成功
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删