Move to Safe Request

It is possible to instruct GPP2 to move to the safe position. This is useful at the end of the run, or in conjunction with a tool change.

In order to instruct GPP2 to move, the EX2 program has to set the GPP2 system flag, MOVE_TO_SAFE, telling GPP2 which axes to move. MOVE_TO_SAFE must be set to a string that contains one or more of the axis letters, X, Y, Z, A and B. Uppercase or lower case letters may be used.

Example

MOVE_TO_SAFE = "XYZAB"; // move to safe position in all axes

MOVE_TO_SAFE = "XYZ";  // move linear axes only

MOVE_TO_SAFE = "Z"; // move up only

Several requests may be used in a series, instructing GPP2 to move the axes in any desired order. For instance:

MOVE_TO_SAFE = "Z"; // move up only

MOVE_TO_SAFE = "XY"; // now move sideways

Note that GPP2 does not invoke any block or generate any G-Code motions in response to this request. Creating the relevant G-Code must be done by the EX2 program, in conjunction with the move to safe instruction.

What GPP2 does when the MOVE_TO_SAFE system flag is set (to a non-empty string), is to create a simulator motion to the safe position in the relevant axes. In addition, it ensures that the subsequent connection will be like after a tool change (since the safe position is not exactly known).

The following option instructs GPP2 to retract the tool along its axis:

MOVE_TO_SAFE = "T"; // Retract along tool axis

The motion will last until either of the linear axes limits is reached. In order to enable the calculation of the retract motion’s length, there is a need to specify these limits in the EX2 file using the following machine definition variables:

X_MACH_MIN, X_MACH_MAX // min/max linear X limit

Y_MACH_MIN, Y_MACH_MAX // min/max linear Y limit

Z_MACH_MIN, Z_MACH_MAX // min/max linear Z limit

The linear axes limits are given from the machine-simulator machine zero point (the table center in most cases). GPP2 considers the part location on the machine table while calculating the retract motion.

This option can be used to properly simulate the "M140 MB FMAX" Heidenhain command.

Note: The T axis cannot be mixed with any other linear axis in the same move to safe command. For instance, MOVE_TO_SAFE = "ZT" is illegal, and will result in a GPP2 runtime error.

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