Advanced TurboPost

Switches
Rotary Axis Graphics
Debug Mode
Cutter Diameter Compensation
Canned Cycles
Transforms
Set Tool Axis
User Variables
Current Hole
Rotate in Plane
Plot Hole Shape
Tape On
Plot On
Using Synergy Functions in TurboPost Macros

Switches

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 TurboPost.
GEOMETRYOFF: Turns synergy geometry off in TurboPost. (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.


[Back to Top]

Rotary Axis Graphics

The TurboPost 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 TurboPost command file.


[Back to Top]

Debug Mode

The variable Debug_turbo can be used to set debugging modes.

Debug_turbo=0; Debug mode off. (default)
Debug_turbo=1; Prints debug info to term window while TurboPost is executing.
Debug_turbo=2; Prints debug info the tapefile while TurboPost 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 TurboPost is executing. CAUTION: The tape file is invalid. To get a valid tape turn off debugging and re-execute.

[Back to Top]

Cutter Diameter Compensation

The ability to generate the diameter compensation moves G41/G42/G40 on a Synergy path has been added for the milling command 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.


[Back to Top]

Canned Cycles

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


[Back to Top]

Transforms

The following transformations have been added to TurboPost:


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 TurboPost 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 POLARTRANSFORM in conjunction with the other transforms.


[Back to Top]

Set Tool Axis

SET_TOOL_AXIS: is a new TurboPost command.    It tells TurboPost the direction from which the tool is coming.    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= 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.


[Back to Top]

User Variables

If the program units are inch, TurboPost 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, TurboPost will initialize variables using the file user_vars_mm if this is not available it will use the file user_variables.


[Back to Top]

Current Hole

A new variable added to TurboPost 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 TurboPost macros.


[Back to Top]

Rotate in Plane

A new variable added to TurboPost 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 TurboPost will generate a rotary motion to bring the hole to the direction specified by the Rotary Orient Vector.


[Back to Top]

Plot Hole Shape

A new variable added to TurboPost is Plot_hole_shape. This variable has the value 0 or 1. Default is 1.

The TurboPost 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.


[Back to Top]

Tape On

A new variable added to TurboPost 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 TurboPost.    This variable can be set and unset at any time.


[Back to Top]

Plot On

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

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


[Back to Top]

Using Synergy Functions in TurboPost Macros

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

For example the line:


DRILL: Start_hole= HoleNumber("Important_point");


will tell TurboPost to drill a hole at the hole named in Synergy as "Important_point".


ASSIGN: Stat= ReverseContour("contour2");


This will reverse the contour named "contour2".

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


Synergy Entities are to be referred to by name.    Synergy Entities cannot be used as TurboPost variables.

Any geometry created will be recreated every time TurboPost 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 TurboPost executes it will have the contour in a different direction.

Be aware that Synergy does not know TurboPosts 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, e.g. Rotary Motion.


[Back to Top]