GeoCOM Reference Manual
Automation - AUT
Leica TPS1200 / TS30 / TM30 – Version 1.50
45
7.4
FUNCTIONS
7.4.1
AUT_ReadTol - reading the current setting for the positioning tolerances
AUT_ReadTol ............................................................................................................................................................................................................................................................................
9008
.................................................................................................................................................
AUT_ReadTol
C-Declaration
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 9008
AUT_ReadTol(AUT_POSTOL &TolPar)
VB-Declaration
VB_AUT_ReadTol(TolPar As AUT_POSTOL)
ASCII-Request
%R1Q,9008:
ASCII-Response
%R1P,0,0:
RC,Tolerance Hz[double],Tolerance V[double]
Remarks
This command reads the current setting for the positioning tolerances of the Hz- and V- instrument axis.
This command is valid for motorized instruments only.
Parameters
TolPar out
The values for the positioning tolerances in Hz and V
direction [
rad
].
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
GRC_NA
27
GeoCOM Robotic license key not available.
See Also
AUT_SetTol
Example
const double MIN_TOL=3.141592654e-05;
GRC_TYPE
rc;
AUT_POSTOL
TolPar;
// read tolerance and set to a minimum of
// 3.141592654e-05
rc = AUT_ReadTol(TolPar);
if ((TolPar.adPosTol[MOT_HZ_AXLE] > MIN_TOL) ||
(TolPar.adPosTol[MOT_V_AXLE] > MIN_TOL))
{
TolPar.adPosTol[MOT_HZ_AXLE] = MIN_TOL;
TolPar.adPosTol[MOT_HZ_AXLE] = MIN_TOL;
rc = AUT_SetTol(TolPar);
switch (rc)
{
case (GRC_OK):
// set of Lock tolerance successful
break;
case (GRC_IVPARAM):
// invalid parameter
break;
case (GRC_MOT_UNREADY):
// subsystem not ready
break;
}
}