#
# MACRO end_codes
#
#
OUTPUT: M02
ASSIGN:  L1= Length_cut;
ASSIGN: Time1=Machine_time;
ASSIGN: Time3= Machine_time/60;
ASSIGN: Setup_time1= Setup_time/60;
ASSIGN: Piece_time= Setup_time1+Time3;
ASSIGN: Time4= (Time3*Batch)+(Batch*Setup_time1);
ASSIGN: Price= ((Time3*Batch)+(Batch*Setup_time1))*Machine_cost;
NOTEPAD: Traverse feedrate t{Feed}
NOTEPAD: Length of cut l{L1}
NOTEPAD: Cutting time t{Time1} minutes
NOTEPAD: Accumulated time t{Time3} hours
NOTEPAD:                        
NOTEPAD: ************************
NOTEPAD: Total setup time per piece t{Setup_time} minutes
NOTEPAD: Total time per piece t{Piece_time} hours
NOTEPAD: Total batch size t{Batch}
NOTEPAD: Machine hourly rate d{Machine_cost}
NOTEPAD: Total time of this job t{Time4} hours
NOTEPAD: ************************
NOTEPAD: TOTAL COST OF THIS JOB d{Price}
NOTEPAD: ************************
