|
发表于 2018-5-11 10:55:27
|
显示全部楼层
global mom_motion_event mom_motion_type
global mom_pos
global max_z min_z
FEEDRATE_SET
switch $mom_motion_type {
ENGAGE {PB_engage_move}
APPROACH {PB_approach_move}
FIRSTCUT {PB_first_cut}
}
# if {[llength [info commands PB_CMD_before_motion]]} {PB_CMD_before_motion}
set pb_start_of_program_flag 0
if { $mom_pos(2) < $min_z } { set min_z $mom_pos(2) }
if { $mom_pos(2) > $max_z } { set max_z $mom_pos(2) } |
|