GeoCOM Reference Manual
Communications – COM
Leica TPS1200 – Version 1.50
96
10.3.2
COM_SwitchOnTPS - turning on the instrument
COM_SwitchOnTPS ..............................................................................................................................................................................................................................................................................
TPS
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 111
111 .................................................................................................................................................................................................................................................................COM_SwitchOn
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 In
Run mode.
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
GRC_NotImpl
5
Not implemented yet.
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
}