# MACRO cut_ruled   Fanuc_wire
# this is a macro to cut a ruled surface.
# Cuts the ruled_surface
# Turns off comp in a move perpendicular to the ruled_surface
#
CUTRULED: 
ASSIGN: Ruledendpt
ASSIGN: Cut_compx= Xnormal*Lead_out;
ASSIGN: Cut_compy= Ynormal*Lead_out;
ASSIGN: Pre_posx= Xend+ 0.5*Cut_compx;
ASSIGN: Pre_posy= Yend+ 0.5*Cut_compy;
ASSIGN: X= Pre_posx; Y= Pre_posy;
ASSIGN: U= Pre_posx; V= Pre_posy;
UVFEED: 
ASSIGN: Pre_posx= Xend+ Cut_compx;
ASSIGN: Pre_posy= Yend+ Cut_compy;
ASSIGN: X= Pre_posx; Y= Pre_posy;
FEED:   Codes= "G40";
