4 battery driver for windows ce, 1 battery driver for windows ce – BECKHOFF CX210009x4 User Manual
Page 76
Commissioning
5.4
Battery driver for Windows CE
5.4.1
Battery driver for Windows CE
Beckhoff Industrial PCs with Windows CE and 24 V UPS support are supplied with a special Beckhoff
battery driver for Windows CE. In these devices the driver is included in the standard CE image. No further
configuration settings are required. The UPS hardware is wired internally with the onboard electronics. Only
the external UPS battery pack has to be connected to the device (see description in the device
documentation).
Power Options in the Control Panel
The Power Options dialog in the Control Panel shows the status of the external power supply and the
remaining battery capacity.
Windows CE API interface for applications
Windows CE applications can access the UPS status information cyclically via the
GetSystemPowerStatusEx2 API function call.
DWORD GetSystemPowerStatusEx2(
PSYSTEM_POWER_STATUS_EX2 pSystemPowerStatusEx2,
DWORD dwLen,
BOOL fUpdate
);
typedef struct _SYSTEM_POWER_STATUS_EX2 {
BYTE ACLineStatus;
BYTE BatteryFlag;
BYTE BatteryLifePercent;
BYTE Reserved1;
DWORD BatteryLifeTime;
DWORD BatteryFullLifeTime;
BYTE Reserved2;
BYTE BackupBatteryFlag;
BYTE BackupBatteryLifePercent;
BYTE Reserved3;
DWORD BackupBatteryLifeTime;
DWORD BackupBatteryFullLifeTime;
DWORD BatteryVoltage;
DWORD BatteryCurrent;
DWORD BatteryAverageCurrent;
DWORD BatteryAverageInterval;
DWORD BatterymAHourConsumed;
CX210009x4
76
Version 1.1