GeoCOM Reference Manual
Central Services – CSV
Leica TPS1200 – Version 1.50
110
11.4.8
CSV_CheckPower – checking the available power
CSV_CheckPower..............................................................................................................................................................................................................................................................................
er
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 5039
5039 ................................................................................................................................................................................................................................................................CSV_CheckPow
C-Declaration
CSV_CheckPower( unsigned short &unCapacity,
CSV_POWER_PATH &eActivePower,
CSV_POWER_PATH &ePowerSuggest)
VB-Declaration
VB_CSV_CheckPower( unCapacity As integer,
eActivePower As long,
ePowerSuggest As long)
ASCII-Request
%R1Q,5039:
ASCII-Response
%R1P,0,0:
RC,
unCapacity [long], eActivePower[long], ePowerSuggest[long]
Remarks
This command returns the capacity of the current power source and its source (internal or external).
Parameters
unCapacity
Out
Actual capacity [%]
eActivePower
Out Actual
power
source
ePowerSuggest
Out Not
supported.
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
GRC_LOW_POWER
16
Power is low. Time remaining is about 30’.
GRC_BATT_EMPTY
18
Battery is nearly empty. Time remaining is about 1’.
Example
GRC_TYPE rc;
CSV_POWER_PATH eActivePower;
CSV_POWER_PATH eDummy;
unsigned short unCapacity;
rc = CSV_CheckPower(unCapacity, eActivePower,
eDummy)