小虾 wrote:
后处理中可以编程实现
cad04 wrote:
后处理中可以编程实现
Yeager wrote:
從UG NewsGroup中抄來的,原作者為EDS Italy Technical Support.
請在MOM_before_motion中加入下列敘述:
global mom_pos machine_limits
if { ![info exists machine_limits] } {
for {set i 0} {$i<3} {incr i} {
set machine_limits($i,0) $mom_pos($i)
set machine_limits($i,1) $mom_pos($i)
}
}
for {set i 0} {$i<3} {incr i} {
if { $mom_pos($i) < $machine_limits($i,0)} {
set machine_limits($i,0) $mom_pos($i)
}
if { $mom_pos($i) > $machine_limits($i,1)} {
set machine_limits($i,1) $mom_pos($i)
}
}
然後在MOM_end_of_program中加入下列敘述:
global machine_limits
MOM_output_literal "(X Min:[ format "%.2f" $machine_limits(0,0)])"
MOM_output_literal "(Y Min:[ format "%.2f" $machine_limits(1,0)])"
MOM_output_literal "(Z Min:[ format "%.2f" $machine_limits(2,0)])"
MOM_output_literal "(X Max:[ format "%.2f" $machine_limits(0,1)])"
MOM_output_literal "(Y Max:[ format "%.2f" $machine_limits(1,1)])"
MOM_output_literal "(Z Max:[ format "%.2f" $machine_limits(2,1)])"
欢迎光临 iCAx开思网 (https://www.icax.org/) | Powered by Discuz! X3.3 |