XML and Report Variables

GPP2 can read the XML file that is created by Cimatron NC, and convert any procedure-related parameters from that file into special GPP2 system variables, termed "XML Variables".

The XML file data and the XML variables are mostly used for the NC Setup Sheet report generated by GPP2. However, they can be used inside the EX2 program like any other system variable. The values for each procedure are loaded (and available for use) at the BEGINNING OF PROC block.

There is no predefined list of such XML variables. The list of XML variables and the mapping between the XML file parameters and GPP2 XML variables is defined in a configuration file that GPP2 reads at runtime.

The location, structure and customization of the configuration file (gpp2-xml.ini) are described in the GPP2 Report Customization manual.

In addition to the XML variables that are often used in GPP2 reports, there are several other special system variables that can only be used inside the Tools report. The reason for that limitation is that they are only assigned valid values when the Tools report is created (specifically, they do not have valid values in the TOOL CHANGE block).

System Variable

Default format

Use and Comments

TOOL_CNT

6

The tool sequential number (tools are counted in the order they are first used).

This variable is also available ate the END OF TAPE block, showing the total number of tools used.

TOOL_FEED_TIME

0

The total cutting time of the tool throughout the job. This is a string variable, of the form "hh:mm:ss", measuring the cutting time in hours, minutes and seconds.

The variable is updated on every cutting block (linear, circular, cycle) reflecting the accumulated feed time of the current tool from the beginning of the job.

The variable is also updated at the end of each procedure (END OF PROC block).

TOOL_PROCS

6

The number of procedures in which the tool is used throughout the job.

TOOL_PROCS_LIST

0

A string containing a list of the procedures in which the tool is used. The procedure unique ID names are used. If too many procedures exist, the list is truncated at 253 characters, and is appended with "…".

TOOL_MIN_CLR_LEN

1

Shows the maximum minimum clear length calculated at all the procedures in which the tool is used. This can be used to decide if a shorter tool may be used.

A value of -1 indicates that the data is not available.

TOOL_MIN_CLR_LEN_

CHECK

0

Set to Yes or No.

The variable is set to Yes if the minimum clear length is greater than zero in all the tool procedures. That means that the minimum clear length was checked in all the procedures in which the tool is used, and that value can be trusted for decisions regarding the needed tool length.

Otherwise, the variable is set to No.

TOOL_COMP_2D3D

0

Set to Yes or No.

The variable is set to Yes if the tool is used (at least once) in a procedure that applies 2D or 3D cutter compensation. Otherwise, the it is set to No.

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