Global System Variables

In addition to the System Flags described above, several system variables are available throughout the post process, and are not specific to any given block.

System Variable

Default format

Use and Comments

FILE_NAME

0

Current toolpath file name plus the post-processor name, separated by a dot: <tp-name>.<pp-name>

OUTPUT_DIR

0

Current output folder (full path)

BLOCK_NUM

6

The current block number, as it appears in the Cimatron toolpath (in TP List)

BLOCK_NAME

0

This variable holds the name of the current block, in upper case and without any spaces (For example, LINEARMOTION). It is mostly used for debugging purposes.

QUALIFIER_NAME

0

This variable holds the name of the current block qualifier, in lower case (For example, "on", "3d", "first"). If no qualifier is used, it holds an empty string.

Use of QUALIFIER_NAME inside IF commands can save duplication of EX2 commands, if the differences between the EX2 programs for various qualifiers are small.

GPP_PROC_NAME

0

This variable holds the name of the currently executed GPP2 procedure. It is empty if no such procedure is executed. It is mostly used for debugging purposes.

OUTPUT_EXTENSION

0

This is a string variable that contains a single character when the output stream is redirected (using the OUTPUT_REDIRECT command). Otherwise, it is the empty string.

X_LASTPOS

Y_LASTPOS

Z_LASTPOS

1

The coordinates of the last tool position, the position just before the execution of the current block. GPP2 maintains the last position throughout the program execution.

A_LASTPOS

B_LASTPOS

2

The angles for alpha and beta rotary axes of the last tool position (4/5 axes machines)

TP_BLOCKS

6

The number of blocks in toolpath.

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.