#
# MACRO end_codes
#
#
OUTPUT: G90X{X_g92}Y{Y_g92}
OUTPUT: M71
OUTPUT: M30
ASSIGN: Time1=Machine_time-Time2;
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: Operation 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: ************************
