Leica TPS1200 Series Reference Manual page 96

Geodetic measurement instruments
Hide thumbs Also See for TPS1200 Series:
Table of Contents

Advertisement

GeoCOM Reference Manual
10.3.2
COM_SwitchOnTPS - turning on the instrument
COM_SwitchOnTPS..............................................................................................................................................................................................................................................................................
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 111
111 .................................................................................................................................................................................................................................................................COM_SwitchOn
TPS
C-Declaration
COM_SwitchOnTPS(COM_TPS_STARTUP_MODE eOnMode)
VB-Declaration
VB_COM_SwitchOnTPS(ByVal eOnMode As Long)
ASCII-Request
%R1Q,111:eOnMode[short]
ASCII-Response
If instrument is already switched on then
%R1P,0,0:5
else
Nothing
Remarks
This function switches on the TPS1200 instrument.
Note: The TPS1200 instrument can be switched on by any RPC command or even by sending a single character.
Parameters
eOnMode
Return-Code Names and Return-Code Values
GRC_OK
GRC_NotImpl
See Also
COM_SwitchOffTPS
COM_OpenConnection
Example
GRC_TYPE
rc;
// switch on TPS1200
rc = COM_SwitchOnTPS(COM_TPS_REMOTE);
if(rc == GRC_COM_TIMEDOUT)
{
for(short i = 0; i < 4 && rc != GRC_OK; i++)
{
rc = COM_SwitchOnTPS(COM_TPS_REMOTE);
}
}
if(rc != RC_OK)
{
// error: switch on failed
}
Leica TPS1200 – Version 1.50
In
Run mode.
0
Execution successful.
5
Not implemented yet.
Communications – COM
96

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm30Ts30Tps1200+

Table of Contents