|
#================================================================! K3 D' Z: I+ d# j) ]& d
proc MOM_end_of_group {} {3 E! ?2 }" U" q7 l- C% y1 b
#===============================================================
/ N* r; p, D, ~" F0 ]3 q1 o! z global mom_stock_part
3 u- V+ h) A, d" L, r0 n1 P global max_cut_depth
; v( w% T* {* @1 M+ ]! ` global mom_group_name
3 l2 D, d' ^/ a global mom_tool_name
, j1 y5 K$ R8 A& \' X7 x4 B+ S global mom_machine_time/ E4 j- ?1 p0 x0 M8 Z
global sub_machine_time
9 s8 B& [# c) }; e9 o global mom_stock_part
! ]4 x' x! B. T( R8 P, [ global mom_stock_floor
7 O- J! o7 a J- u global stock_part
9 J" ^/ e X6 K. ?/ ^; C9 } global machine_time/ }. n; m3 I, n4 h
global cut_method% u( {9 ~6 L# \0 ]
global depth& Z; q: o) `: p* ^; D
global sn aq tls clm
- Q& p+ }0 q, j5 @. |# k" r global mom_clearance_plane_status
) u3 I/ N) N# N9 } global mom_spindle_speed
, D1 U E& D# G, h% U global mom_feed_cut_value
/ b/ b1 k& D4 L$ C9 \ set aq ""
1 L6 k! d/ y8 t) t! k9 \3 j #set sub_machine_time $mom_machine_time
7 v1 U( {9 S3 @( h set sub_machine_time [expr $mom_machine_time - $sub_machine_time]
% E$ O1 l3 Q R" O$ w4 c set stock_part [format "%.2f" $mom_stock_part]! _+ Q7 \: z: x9 }
if { $mom_clearance_plane_status == 1} {8 m1 [- z; \# W6 K. k
if {$clm <= 0 } {set aq "请检查安全高度"}* c! U+ b; C" |7 H* a
}8 i- g7 H" K- z" R j J
if {$mom_clearance_plane_status != 1 } {set aq "未设安全高度"}$ P# ` @7 b$ s# d2 ?0 R/ J5 U4 H
if {$mom_stock_part >= 0.1 } { set cut_method "粗" }
+ F9 M9 P( e9 W1 ?" g/ k) J if {$mom_stock_part >= 0.03 && $mom_stock_part < 0.1 } { set cut_method "中光" }
- j! r1 o; ~" T& A if {$mom_stock_part < 0.03 && $mom_stock_part >= 0 } { set cut_method "光" }7 Q! ~+ n; \1 {, J+ @4 f) R
if {$mom_stock_part <-0.15 } { set cut_method "光" }
$ d# [8 q/ |2 b' P( T if {$mom_stock_part >=-0.15 && $mom_stock_part < 0 } { set cut_method "光" }
: P8 T2 t9 L- P& j* V2 a8 N. n4 i3 H+ W! U4 @% V8 X
- u. ]4 D9 b, y ?8 U. ?
if {[EQ_is_gt $sub_machine_time 0]} {# ~8 C3 u3 n, w& W- o
set sn [expr $sn+1]
4 N. ?1 ?0 j$ N4 `6 |0 M, k( o 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]"! H0 h" d9 R) _# A. v7 S
#MOM_output_literal "-------------------------------------------------------------------------------"
6 M: e. @ {( ~! M) ^# G: Z set sub_machine_time $mom_machine_time' y2 ]/ N3 h: K' d, T6 U
}3 w( h* i9 _# @4 h
* C7 p4 L+ Y" ~9 s4 ]* W( w; F$ } } |
|