|
#================================================================
+ d, U2 Y# \& o4 A/ {proc MOM_end_of_group {} {
9 J6 u! ~( B/ x, T#===============================================================# h4 L" h/ p' t. a7 P8 G! S
global mom_stock_part
4 \, V( v# |) H global max_cut_depth- x, u" K' X% O8 j
global mom_group_name* Y; C: i% G0 _" \/ h! k$ T( B0 U
global mom_tool_name' m" }; B& p* Y+ ~) m
global mom_machine_time3 s* G0 u* E. Q* ]" Z4 L/ W
global sub_machine_time; J& ^# | B' ]' S& K
global mom_stock_part/ d# s$ L+ H& v; ], i
global mom_stock_floor
3 a2 i; A) y; ?3 p- @ global stock_part
/ y1 C, Q* Z& s, `8 @+ s global machine_time
" Z$ k* I7 {& o' M5 a" ? global cut_method! s9 M! k, }4 x7 N6 U
global depth
b6 E i* t% B) @% ] global sn aq tls clm
3 D" p) t% l; f3 D$ a& Y. L global mom_clearance_plane_status
+ |, d0 J0 i/ V2 L& y global mom_spindle_speed$ s: Q6 }& X6 `" \/ A
global mom_feed_cut_value ' s1 H5 ^ f4 K5 T0 a9 `
set aq "") M+ e( `" g0 V# q/ `1 s9 t
#set sub_machine_time $mom_machine_time 0 `1 I" Y$ J9 q4 U& p L6 f$ @
set sub_machine_time [expr $mom_machine_time - $sub_machine_time]# b( o6 B D& n% s- y. z! W
set stock_part [format "%.2f" $mom_stock_part]* v) @" e$ Y2 X* [ E1 o8 `/ v4 _
if { $mom_clearance_plane_status == 1} {! E: W& x; h# u3 Y9 `
if {$clm <= 0 } {set aq "请检查安全高度"}
l+ G& d8 V! L0 k }
; O: J6 P g: k4 P if {$mom_clearance_plane_status != 1 } {set aq "未设安全高度"}* W; g- }3 m9 E3 l! g
if {$mom_stock_part >= 0.1 } { set cut_method "粗" }
) x% k/ R9 X& ^: K7 a! x8 M8 t if {$mom_stock_part >= 0.03 && $mom_stock_part < 0.1 } { set cut_method "中光" }
9 m% ~" e. e; P, T2 S1 @* a if {$mom_stock_part < 0.03 && $mom_stock_part >= 0 } { set cut_method "光" }
/ Y6 L+ z6 t, z7 k if {$mom_stock_part <-0.15 } { set cut_method "光" }/ Z3 i% \5 g, \
if {$mom_stock_part >=-0.15 && $mom_stock_part < 0 } { set cut_method "光" }
% O& O* R ?6 u" a8 Q
# s3 {& ^8 J# q" R/ n5 v& m
% q c# S* t: N! J) S# I if {[EQ_is_gt $sub_machine_time 0]} {* X9 X4 Z$ S9 [! Z- A! ]
set sn [expr $sn+1]6 L# P1 |$ i5 _( P9 c2 u: a
MOM_output_literal "[format "%4d" $sn] [format "%6s" $mom_group_name] [format "%8s" $mom_tool_name] [format "%3s" $cut_method] [format "%7.2f" $stock_part] [format "%6.1f" $max_cut_depth]"
$ i4 ]3 P" ^; s+ h- W3 W6 L7 Y #MOM_output_literal "-------------------------------------------------------------------------------"
; M* B# D; G% E; [# J$ Z/ B2 d set sub_machine_time $mom_machine_time
H8 m$ [+ h4 Q! F }
% E' k8 s6 u( ^& z8 L( }$ P/ C2 ~& _0 K3 ?3 D
} |
|