把下面程序放在PB_CMD_before_motion里出错
global mom_operation_type
global zuanpos
global tt
global mom_cycle_feed_to_pos
if { $mom_operation_type == "Point to Point" } {
if { $tt == 1000 } {
set zuanpos $mom_cycle_feed_to_pos(2)
}
}
if { $mom_operation_type == "Point to Point" } {
if { $zuanpos == $mom_cycle_feed_to_pos(2) } {
MOM_abort "$zuanpos---111111111111"
}
}
set tt 999
但是把上面程序放在程序结束序列,不会出错
我现在不明白怎么让程序循环起来