|
(11).在G0 G90 X Y行下面添加G43 G0 G90 Z H1 M8行。
(12).为G43 G0 G90 Z H1 M8行添加输出条件PB_CMD__check_block_initial_move_6,编辑代码如下:
global dpp_ge
global dpp_opt_type
if { ![string compare "5X" $dpp_opt_type] && $dpp_ge(toolpath_axis_num) == "5" } {
return 1
}
return 0
(13).在G43 G0 G90 Z H1 M8行下面添加G49行。
(14).为G49行添加输出条件PB_CMD__check_block_initial_move_7,编辑代码如下:
global dpp_ge
global dpp_opt_type
if { ![string compare "5X" $dpp_opt_type] && $dpp_ge(toolpath_axis_num) == "5" } {
return 1
}
return 0
(15).在G49行下面添加G69行。
(16).为G69行添加输出条件PB_CMD__check_block_first_move,编辑代码如下:
global dpp_ge
global dpp_opt_type
if { ![string compare "5X" $dpp_opt_type] && $dpp_ge(toolpath_axis_num) == "5" } {
return 1
}
return 0
(17).在第二个G68 X Y Z I J K R行下面添加"定制命令"行,输入名称my_rcb_output_lock_axis,编辑代码如下:
global mom_operation_type
if { ![string match "Variable-axis *" $mom_operation_type] } {
MOM_output_literal "M81 (Lock A Axis)"
MOM_output_literal "M83 (Lock C Axis)"
}
(18).删除最后一行G00 G43 H01 S M03 M08中的S元素和M03元素。
17.复制"工序开始序列->初始移动"事件中的所有行到"工序开始序列->第一次移动"事件中。
18.删除"机床控制->刀具补偿关闭"事件中的G40元素。
19.修改"运动->线性移动"事件:
(1).编辑G41 G94 G01 G90 X Y Z A C D01 F行中的G01元素和D01元素,去掉"格式->编辑->输出前导零"选项前面的√。
(2).找到G41 G94 G01 G90 X Y Z A C D01 F行的输出条件PB_CMD__check_block_mill_default_condition,编辑代码如下:
global mom_machine_mode
global mom_motion_type
global dpp_ge
global mom_current_motion
global dpp_opt_type
if {![string compare $mom_machine_mode "MILL"]} {
if {($dpp_ge(sys_tcp_tool_axis_output_mode) == "VECTOR" && $dpp_ge(toolpath_axis_num)=="5")} {
return 0
} else {
return 1
}
} else {
return 0
}
(3).找到G41 G94 G01 G90 X Y Z I J K D01 F行的输出条件PB_CMD__check_block_G435_output,编辑代码如下:
global mom_machine_mode
global mom_sys_adjust_code
global dpp_ge
global dpp_opt_type
if { ![string compare $mom_machine_mode "MILL"] } {
if { $dpp_ge(sys_tcp_tool_axis_output_mode) == "VECTOR" && $dpp_ge(toolpath_axis_num) == "5" } {
return 1
} else {
return 0
}
} else {
return 0
}
|
|