ENHANCEMENTS

NEW ENHANCEMENTS TO TURBOPOST


TurboPost is the first in a series of new generation Weber software, designed to be very flexible and user-configurable.    One immediate benefit of this design is the fact that when changes are made, such as the enhancements listed below, older TurboPost files should continue to run without modification (of course, the new features would not be present without some editing, but these can easily be added later).

System Command: NOTEPAD


This command will print a line into the notepad (See NOTEPAD feature for more information).

Example:

NOTEPAD: This is a note <CR>

NOTEPAD: Time A{Machine_time} <CR>

In the second example, the variable "Machine_time" in {} will be printed with the format defined by the "A" word.

Conventions on the use of variables (syntax: {variable } ) are followed.    See MACROS and TEMPLATES for examples of variable usage.


System Command: CLEAR_NOTES


This command will clear the notepad.    Should be used at the beginning of a command file is to clear the notepad.


System Command: NOTEFILE


This command will copy an ASCII file into the notepad.

Example:

NOTEFILE: notes <CR>


System Command: MARKER


This command can be used to "mark" contiguous sections of command files.

Special marker operations, such as Plot_markers and Skip_markers can then be executed, acting only on those marked sections.

These special Marker Operations are implemented as System Variables.

To execute a marker operation on a marked section of a command file, it is necessary to set the appropriate system variable (marker operation) equal to the name or names of the targeted "marked" sections.

To illustrate this, let's take a look at an overview of some marked command file sections:

The syntax for MARKER command usage is:

ASSIGN: System Variable= ",Rough,Finish,";

.
.
.

(other commands)

.
.
.

MARKER: Marker="Rough";
(Initiator) (Variable) (Data String=Name of Marked Section)

.
.
.

(Commands that belong to marked section named Rough)

.
.
.

MARKER: Marker="Finish";
(Initiator) (Variable) (Data String)

.
.
.

(Commands that belong to marked section named Finish)

.
.
.

MARKER: Marker=""
(Initiator) (Variable) (Empty Data String = Terminator)

.
.
.

(other, unmarked commands)


Syntax Description


Notice the presence of the ASSIGN: command in the first line above.    This sets a special Marker Operation (System Variable) equal to the name or names of certain, specific marked sections that follow.    In this way, one can selectively execute marker operations on all or some of the marked sections.

There are two Marker Operation System Variables that may be used:


Plot_markers
Skip_markers


These System Variables are located in the "user_variables" file.    NOTE: As with all System Variables, they must be initialized, if only to an empty string.

In the example above, the line:


ASSIGN: Plot_markers=",rough,finish,";


indicates an intention to plot only the command file results represented by the sections marked as "rough" and "finish".

Also, notice how the marked command file sections are terminated.    The Rough section is terminated by the Finish marker, but the Finish section is terminated by an empty marker, because no further command file sections have been marked.

IMPORTANT: Without a terminating marker, all commands following an initiating marker are considered to be marked, and will be acted on by the marker operation.

Now let's review the syntax of the ASSIGN operator:


ASSIGN: Plot_markers=",Cycle 1,Cycle2,Cycle3,";


IMPORTANT: You must delimit all marker names with COMMAS, and you must end all command lines with a SEMICOLON.

Now let's look at the "Initiator" of a marked command file section -- the command MARKER:

The command MARKER is called the Initiator because it is used to turn ON an individual marker variable.    Without the MARKER: initiator, the presence of marker variable will be ignored.    Think of it this way: The MARKER: initiator tells TurboPost to use whatever value has last been assigned to the Marker variable.    Without the MARKER: initiator, this variable would be ignored.

For example, although the MARKER: command and the Marker variable are normally placed on the same line, one could do the following and be syntactically correct:


ASSIGN: Marker="Cycle Name #1" (Set variable)

MARKER: (Initiate variable use here)


The implication of this is more relevant when you consider the fact that the Marker variable can be set interactively from the variable menu while running TurboPost.

Notice too that a Marker variable can be set to one name at any given point in time, and commas are not required.    However, you must surround your name string with quotation marks.


System Command: TOOLSYMBOL


This command will plot a graphic symbol in TurboPost.    When using operations (Drilling, Tapping, Boring etc.) tool images are created automatically.    When doing milling you must create the image under Images Make All Mill or Make All Lathe.

The graphic symbol is identified by the user variables:

Tool_desc= "#3 Center Drill"
Tool_symbol= "#3 center drill"


If you have tools loaded, when you are in TurboPost the Tool_desc and the Tool_symbol will be pulled out of the tool file when doing a startup or a tool change.    If you have no tools loaded you will be prompted for the Tool description as well as the Feeds and Speeds.

Tool_on is assigned a boolean value of 0 or 1 to turn tool symbols ON or OFF. 0=OFF; 1=ON.

NOTE: Tool symbol plotting will seriously slow down the speed of N/C code generation.

The TOOLSYMBOL: variables should all be initialized in the "user_variables" file as follows:


Tool_symbol="";
Sym_size=1;
Tool_on=0;

MISCELLANEOUS ENHANCEMENTS


User Variables: Xshift, Yshift, Zshift


These are three new user variables that may be used to shift the coordinate output by the specified amounts assigned to the variables.


User Variable: Repeats


The "Repeats" variable can be used to accomplish a form of conditional execution.    If the variable "Repeats" appears in a MACRO line the macro will execute the repeated number of times.    If the Repeats variable is set to zero the macro will not be executed.    If the "Repeats" is not present the macro or template will just execute one time.


xzgrev yzgrev xygrev


Set this switch in the output_format file and the G02's G03's will be reversed for the appropriate plane.

Example:

select planes: xyplane= G17 xzplane= G18 yzplane= G19 xzgrev
will reverse G02's and G03's for the xz plane.


command: MAPWORD:


Will map a word address to a different address on the fly.

Example:

MAPWORD: letter= Z map= "Q"
will map the Z to a Q until turned off with MAPWORD.


command: Setcoordinates


Will set remembered values, used mainly for plotting.

Example:

ASSIGN: X= 10; Y= 10;
ASSIGN: Setcoordinates

Will set the remembered value of X and Y to 10.