GeoCOM Reference Manual
Automation - AUT
Leica TPS1200 / TS30 / TM30 – Version 1.50
53
GRC_AUT_BAD_ENVIRONMENT
8712
Inadequate environment conditions.
GRC_AUT_ACCURACY
8716
Inexact fine position, repeat positioning
GRC_AUT_DEV_ERROR
8709
During the determination of the angle deviation error
detected, repeat change face
GRC_AUT_NOT_ENABLED
8714
ATR mode not enabled, enable ATR mode
See Also
AUS_GetUserAtrState
AUS_SetUserAtrState
AUS_GetUserLockState
AUS_SetUserLockState
AUT_ReadTol
AUT_SetTol
AUT_ReadTimeout
AUT_SetTimeout
COM_GetTimeOut
COM_SetTimeOut
TMC_GetFace
Example
The example program performs a change face. If a measurement error occurs, the automatic inclination
correction is switched off and the change face starts again.
GRC_TYPE
rc,
rch;
BOOL
TryAgain = TRUE;
AUT_POSMODE
POSMode = AUT_PRECISE;
rc=GRC_IVRESULT;
while(rc!=GRC_OK && TryAgain)
{
rc = AUT_ChangeFace(POSMode,
AUT_POSITION,
FALSE);
switch (rc)
{
case (GRC_OK): // position successful
//change face successful and precise
break;
case (GRC_AUT_ANGLE_ERROR):
//error within angle measurement:
//switch inclination correction off
rch = TMC_SetInclineSwitch(OFF);
break;
case (GRC_COM_TIMEDOUT):
//communication timed out while change face
TryAgain = FALSE;
break;
default:
//precise position not possible
TryAgain = FALSE;
if (rc == GRC_AUT_INCACC)
{
//change face successful but not precise
}
else
{
// change face not successful
// here further error analyse possible
}
break;
}
}