|
#================================================================; y" x8 s9 V1 F5 `7 [
proc MOM_end_of_group {} {5 {2 \) b" c" l# V
#===============================================================7 k% F1 _) i5 A0 s( j) ]9 n+ }
global mom_stock_part- _/ I( Q, O, Y# u* `
global max_cut_depth
1 a* f3 U$ Y# L; y& n! }9 Z* A global mom_group_name
5 j/ i; N, R! H7 T! h Q global mom_tool_name
4 V# n9 o: t+ c1 P global mom_machine_time/ j6 K/ T; K5 U! L. z9 r
global sub_machine_time5 E/ f9 y9 R1 a g
global mom_stock_part# y k6 a- E+ q( I8 m7 E ?, p6 |5 ^
global mom_stock_floor
3 R8 {2 G4 o# r, P global stock_part
+ h8 M6 l0 h# c. E4 X global machine_time8 ~' V3 t; C& z6 ~* K% H
global cut_method( [* D5 J7 X6 X8 p; k5 |
global depth
3 z8 Y3 J1 z6 e1 h" Y6 H/ O global sn aq tls clm
1 ^/ C$ a0 t% M global mom_clearance_plane_status6 n) S+ e5 M; _; U* A
global mom_spindle_speed% i/ `0 `! H6 R! d& D5 R, ]5 M
global mom_feed_cut_value ; D0 O2 e z1 V2 x& ]
set aq ""
F) V2 n5 y# h #set sub_machine_time $mom_machine_time 6 @) K/ }! P2 D, G
set sub_machine_time [expr $mom_machine_time - $sub_machine_time]: |, q2 k" s7 k2 U+ d6 p
set stock_part [format "%.2f" $mom_stock_part]) v3 B/ K; U6 g3 n9 }$ K
if { $mom_clearance_plane_status == 1} {0 V( F. D0 c6 r4 S/ H: c3 U& @
if {$clm <= 0 } {set aq "请检查安全高度"}# U0 q1 |9 H$ y6 S3 b. j
}; a1 x: D" x; s" l
if {$mom_clearance_plane_status != 1 } {set aq "未设安全高度"}' {, q0 A$ D, y& B4 R+ O9 M4 Q, x9 s9 t
if {$mom_stock_part >= 0.1 } { set cut_method "粗" }: z4 \$ p# e1 x4 F' {
if {$mom_stock_part >= 0.03 && $mom_stock_part < 0.1 } { set cut_method "中光" }8 e& D' q, W6 |9 D$ m/ J
if {$mom_stock_part < 0.03 && $mom_stock_part >= 0 } { set cut_method "光" }$ ]& I: l' E# I6 C/ z
if {$mom_stock_part <-0.15 } { set cut_method "光" }4 d+ z) _( b" r- W6 ^
if {$mom_stock_part >=-0.15 && $mom_stock_part < 0 } { set cut_method "光" }; k8 h |* F( ~$ M
# W8 x; B* e- B+ E3 N
4 X0 P0 d( g" v, Q5 r* r% O# n4 i# b if {[EQ_is_gt $sub_machine_time 0]} {* R$ I8 d/ v2 T0 O' r0 X
set sn [expr $sn+1]
8 z* ?$ z1 R& l+ F1 L. C 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]"
* g# s% L) s+ Y3 @1 ]; s# h #MOM_output_literal "-------------------------------------------------------------------------------"6 X1 z4 O8 F; E U; F
set sub_machine_time $mom_machine_time
% ~ v- F' K9 `/ b } W6 J q8 e1 {8 s- u
~. @) s0 L" n" _5 N# z } |
|