

	Release 7.1  7/20/95

	WASINO FANUC 10T  LATHE MILL COMBO

GEOMETRY CREATION: Geometry is to be built in place (except for Cylindrical
			Interpolation). 
		   Traditional lathe geometry is built in the Synergy XY
		   plane and the turbo post switches the coordinates so that
		   the X axis becomes the Z axis and the Yaxis becomes
		   the X axis. This switch occurs internally in turbo post.

		   So that the Synergy Lathe Geometry will align with 
		   the geometry needed for milling we have adopted the 
		   convention that the Rotary Axis of the lathe is aligned 
		   along the Synergy X axis. (Lathe "C" axis is 
		   Synergy "A" axis).
		   The other coordinates are chosen to align with the 
		   synergy lathe geometry in the XY plane.
		   The coordinates are the mapped in the turbo post macros
		   to match the coordinates on the Lathe.
				X is mapped to Z
				Y is mapped to X 
				Z is mapped to Y
				A is mapped to C
			  

NEW FEATURES:

	Lathe Power Tools:  Milling tools that are to be used on a lathe
			must be imported using the Lathe Power Tool script.
			This script will orient the tool for Od, Id or
			Face operations and will modify the tool name
			to show its function.	Tool images for lathe
			power tools are built using the Make Lathe Image
			or Make All Lathe Images scripts.



	Polar Coordinate Interpolation:  Milling a contour on the face
			of a lathe part using the PCI function on the
			fanuc control (G12.1-- G13.1).
			The menu command associated with this feature
			is 
				POLAR_CONTOUR

		Rules: The Synergy contour is built in place. This is in
			the YZ plane in Synergy.

			The contour must start at the Zero degree point
			of the rotary axis. (The positive Y direction in
			synergy.) 

			The contour must be planar.

			Cutter diameter compensation can be inserted on
			the first move of the contour which should be
			a line. The diameter comp is canceled on the
			last move. Use

				ASSIGN   Dia_comp_mode=1;
				ASSIGN	 Comp_dir= 41; Dia_comp= 13;

			to turn on diameter compensation for G41 with a 
			compensation value of 13.

			the turbo post macros involved are:
		
				polar_cut -- sets up mapping, movement to depth.
				cut_polar_path -- generates PCI code.


			Rotary motion is not animated for a PCI contour.


			Note: These macros are very complicated and should only
			      be modified with great care.

	Cylindrical Interpolation: Milling a contour wrapped around a cylinder
			using the Cylindrical Interpolation Mode on the 
			fanuc control ( G7.1 ).

			The menu command associated with this feature
			is 
				WRAP_CONTOUR


		Rules: The Synergy contour is built in the XY plane with
			the Y coordinates to be wrapped around a cylinder
			which lies  along along the Synergy X axis. 
			The X coordinate values are true and become the 
			Z coordinates on the lathe.
			The Y coordinates are the distance traveled around
			the cylinder and are converted to angles and mapped
			into the lathe C axis angles. 

			The Y coordinate of the point on a cylinder of radius
			R located at an angle of 30 degrees is calculated
			as:

				2*PI*R*30/360

			Positive Y values are mapped into Positive C angles.

			The contour should not deviate from the XY plane.

			Cutter diameter compensation can be inserted on
                        the first move of the contour which should be
                        a line. The diameter comp is canceled on the
                        last move. Use

                                ASSIGN   Dia_comp_mode=1;
                                ASSIGN   Comp_dir= 41; Dia_comp= 13;

                        to turn on diameter compensation for G41 with a
                        compensation value of 13.

			The turbo post macros involved are:
				
				wrap_cut --- sets up mappings and does approach
					     moves.

				cut_wrap_path --- generated Cylindrical
						Interpolation code.

			A Non-zero Wrap_radius must be specified.

			The Turbo post variables controlling the wrap are:
			
				Wrap_radius
				Wrap_cut_radius   
				Wrap_dir
				Wrap_axis

			Except for the Wrap radius they are all set in the
			turbo post macros.

		 Note: These macros are very complicated and should only
                              be modified with great care.


	CANNED CYCLES:

		Canned cycles may be used in conjunction with the C axis.

		Lathe power tools must be used.

		Hole geometry must be created in place.

	OD CANNED CYCLES:

		Before using canned cycles on an OD the turbo post command:

			CAXIS_OD_SETUP which calls the macro caxis_od_setup 

		must be called. This macro does the necessary mapping and 
		configures the canned cycle blocks and the tool orientation.
		The affects of this macro are cancelled by the command:

	    		LATHE_SETUP which calls the macro lathesetup
		The macro lathesetup is automatically called at a tool change.


	FACE CANNED CYCLES:

		Before using canned cycles on a FACE the turbo post command:

	    		CFACE_SETUP which calls the macro cfacesetup 

		must be called. This macro does the necessary mapping and 
		configures the canned cycle blocks and the tool orientation.
		The affects of this macro are cancelled by the command:

			LATHE_SETUP which calls the macro lathesetup
		The macro lathesetup is automatically called at a tool change.

******************************************

   NEW FEATURES ADDED TO TURBO POST: Release 7.1  7/20/95




	MILLACTIVE:  Switches from lathe mode to mill mode.
	LATHEACTIVE:  Switches from mill mode to lathe mode.

		Command should be in a line by itself.




	GEOMETRYON: Turns synergy geometry on in turbo post.
	GEOMETRYOFF: Turns synergy geometry off in turbo post. (Default)

		Command should be in a line by itself.


*****************************************

	PLANE_XY: Outputs G17 code or equivalent.
	PLANE_XZ: Outputs G18 code or equivalent.
	PLANE_YZ: Outputs G19 code or equivalent.

******************************************

	TOOLRAPID:  Graphically shows tool in rapid motion to X,Y,Z.
	TOOLFEED:  Graphically shows tool in feed motion to X,Y,Z.
	TOOLCIRCLE:  Graphically shows tool in motion along a circle.

	A sample usage line would be as follow:

	ASSIGN: Xcenter= 0.0; Ycenter= 2.0; Zcenter= 0.0;
	TOOLCIRCLE: Diameter= 2.0; Starting_angle= 30.0; Angle_extent= 60.0;

	Graphics only are generated. No CNC code results.


*****************************************



	ROTARY AXIS GRAPHICS: The turbo post variable Part_rotate controls 
				simulating part rotation. 

		Part_rotate= 0;  Tool rotates around part to simulate
				 rotary axis motion.

		Part_rotate= 1;  Part rotates (current visible geometry)
				 to simulate rotary axis motion.

	The command line GEOMETRYON: must be in the turbo post command file.

*********************************************


	DEBUG MODE: The variable Debug_turbo can be used to set debuging
			modes.

		Debug_turbo=0;   Debug mode off. (default)

		Debug_turbo=1;   Prints debug info to term window while
				 TURBO POST is executing.

		Debug_turbo=2;   Prints debug info the tapefile while
				 TURBO POST is executing. CAUTION: The tape
				 file is invalid. To get a valid tape
				 turn off debugging and re-execute.

		Debug_turbo=3;   Prints debug info the tapefile and a term
				 window while TURBO POST is executing. 
				 CAUTION: The tape file is invalid. 
				 To get a valid tape turn off debugging 
				 and re-execute.

*************************************************



	CUTTER DIAMETER COMPENSATIION: The abitity to generate the
			diameter compensation moves G41/G42/G40 on a
			Synergy path has been added for the milling
			commane CUTPATH:

		The following line must be added to the output_format file:

compensation switches: force_full left= 41  right= 42  cancel= 40

	The variable Dia_comp_mode controls compensation on/off.

		Dia_comp_mode=0; Dia compensation not used.

		Dia_comp_mode=1; Dia compensation turned on in the first
				 move of the path, and canceled on the last
				 move of the path.

		Dia_comp_mode=2; Dia compensation turned on in the first
				 move of the path, and not canceled.

		Dia_comp_mode=3; Dia compensation is canceled on the last
				 move of the path.



	CANNED CYCLES:

		The canned cycles can now be generated in any of the 
		standard planes G17,G18,G19 control permitting.

*****************************************
		
	TRANSFORMS:


		The following transformations have been added to turbo post:


		TRANSFORM:   transforms synergy geometry. sample lines:

			ASSIGN: Xcenter= 0.0; Ycenter= 0.0; Zcenter= 0.0;
			TRANSFORM: Xangle= -90.0; Yangle= 0.0; Zangle= 0.0;

		or 

			TRANSFORM: off


		PLOTTRANSFORM:   transforms turbo post graphics. sample lines:

			ASSIGN: Xcenter= 0.0; Ycenter= 0.0; Zcenter= 0.0;
			PLOTTRANSFORM: Xangle= -90.0; Yangle= 0.0; Zangle= 0.0;

		or 

			PLOTTRANSFORM: off

		TOOLTRANSFORM:   transforms tool image. sample lines:

			ASSIGN: Xcenter= 0.0; Ycenter= 0.0; Zcenter= 0.0;
			TOOLTRANSFORM: Xangle= -90.0; Yangle= 0.0; Zangle= 0.0;

		or 

			TOOLTRANSFORM: off

		POLARTRANSFORM:   transform used for PCI. sample lines:

			ASSIGN: Xcenter= Polar_depth;Ycenter= 0.0;Zcenter= 0.0;
			ASSIGN: Xnormal= 1.0; Ynormal= 0.0; Znormal= 0.0;
			POLARTRANSFORM: Xvector=0; Yvector= 1.0; Zvector= 0.0;

		or 

			POLARTRANSFORM: off

		Do not use this in conjunction with the other transforms.


**************************************

	SET TOOL AXIS

		SET_TOOL_AXIS: is a new turbo post command. It tells
		turbo post the direction from which the tool is comming.
		This command is used in conjunction with 
		SET_TOOL_ORIENT: which should be a vector perpendicular
		the the tool axis. 
		SET_ROTARY_ORIENT: is also set in conjunction with
		this command. The rotary orient vector and the tool axis
		vector should be the same if the tool axis is perpendicular
		to the rotary axis. If the tool axis is parallel to the
		rotary axis then the rotary orient vector and the tool orient
		vector should be the same.


		An example of this usage is as follows:

		A standard setup for a Z axis tool on a Rotary A axis machine:

		SET_TOOL_AXIS: Xvector= 0.0; Yvector= 0.0; Zvector= 1.0;
		SET_TOOL_ORIENT: Xvector= 1.0; Yvector= 0.0; Zvector= 0.0;
		SET_ROTARY_AXIS: Xvector= 1.0; Yvector= 0.0; Zvector= 0.0;
		SET_ROTARY_ORIENT: Xvector= 0.0; Yvector= 0.0; Zvector= 1.0;


		A standard setup for a Z axis tool on a Rotary B axis machine:

		SET_TOOL_AXIS: Xvector= 0.0; Yvector= 0.0; Zvector= 1.0;
		SET_TOOL_ORIENT: Xvector= 1.0; Yvector= 0.0; Zvector= 0.0;
		SET_ROTARY_AXIS: Xvector= 0.0; Yvector= 1.0; Zvector= 0.0;
		SET_ROTARY_ORIENT: Xvector= 0.0; Yvector= 0.0; Zvector= 1.0;

		A standard setup for a Y axis tool on a Rotary A axis machine:

		SET_TOOL_AXIS: Xvector= 0.0; Yvector= 1.0; Zvector= 0.0;
		SET_TOOL_ORIENT: Xvector= 1.0; Yvector= 0.0; Zvector= 0.0;
		SET_ROTARY_AXIS: Xvector= 1.0; Yvector= 0.0; Zvector= 0.0;
		SET_ROTARY_ORIENT: Xvector= 0.0; Yvector= 1.0; Zvector= 0.0;


		A standard setup for a X axis tool on a Rotary A axis machine:

		SET_TOOL_AXIS: Xvector= 1.0; Yvector= 0.0; Zvector= 0.0;
		SET_TOOL_ORIENT: Xvector= 0.0; Yvector= 1.0; Zvector= 0.0;
		SET_ROTARY_AXIS: Xvector= 0.0; Yvector= 1.0; Zvector= 0.0;
		SET_ROTARY_ORIENT: Xvector= 1.0; Yvector= 0.0; Zvector= 0.0;

		The vectors should always be Unit vectors(Length=1).

		The use of the word Toolaxisvector in an ASSIGN: will
		set the variables Xvector,Yvector,Zvector with the current
		tool axis vector coordinates.



***************************************



	USER VARIABLES:

		If the program units are inch turbo post will initialize
	variables using the file user_vars_in if this is not available it
	will use the file user_variables.


		If the program units are metric turbo post will initialize
	variables using the file user_vars_mm if this is not available it
	will use the file user_variables.




**************************************


	CURRENT HOLE

		A new variable added to Turbo post is Current_hole.
	Current hole is set every time Holestartpt is called. It will retain
	This value until Holestartpt is called again.

	This variable can be useful in turbo post macros.


**************************************


	ROTATE IN PLANE

		A new variable added to Turbo post is Rot_in_plane.
	This variable has the value 0 or 1. Default is 0.

	Rot_in_plane is used in rotary motion output for holes. If the 
	Rotary axis and the Tool axis are parallel normally no 
	rotation will take place. If Rot_in_plane equals 1 then the
	turbo post will generate a rotary motion to bring the hole
	to the direction specified by the Rotary Orient Vector.

************************************

	PLOT HOLE SHAPE
		
		A new variable added to Turbo post is Plot_hole_shape
	This variable has the value 0 or 1. Default is 1.

	The turbo post now plots a hole shape for canned cycles instead
	of two circles. Plot_hole_shape= 1; enables this feature.
	Plot_hole_shape=0; disables this feature.

**********************************

	TAPE ON 

		A new variable added to Turbo post is Tape_on
	This variable has the value 0 or 1. Default is 1.

	Tape_on=0 will disable the generation of NC code in turbo post.
	This variable can be set and unset at any time.

*********************************

	PLOT ON 

		A new variable added to Turbo post is Plot_on
	This variable has the value 0 or 1. Default is 1.

	Plot_on=0 will disable the generation of graphics in turbo post.
	This variable can be set and unset at any time.

*********************************


	USING SYNERGY FUNCTIONS IN TURBO POST MACROS

	
	It is not common knowledge that many Synergy Functions may be
	used in Turbo Post macros.

	For example the line:


	DRILL: Start_hole= HoleNumber("Important_point");

	will tell turbo post to drill a hole at the hole named in Synergy
	as "Inportant_point".


	ASSIGN: Stat= ReverseContour("contour2");


	This will reverse the contour named "contour2".


	Many Synergy functions can be used directly in a turbo post
	macro provided the following rules are followed:


		Synergy Entities are to be refered to by name. Synergy
		Entities cannot be used as Turbo Post variables.

		Any geometry created will be recreated every time 
		turbo post executes. So avoid using functions that
		create geometry.

		If functions like ReverseContour are used be sure to
		return the contour to its original direction or every
		time the turbo post executes it will have the contour
		in a different direction.

		Be aware that Synergy does not know Turbo Posts 
		Coordinate system so that if a command like:

		ASSIGN: X= XPointValue("Important_point");

		is used. The X value is the Real Space X of the point 
		not its value relative to turbopost. (eg. Rotary Motion ).


