
Commissioning
5.4 BatterydriverforWindowsCE
5.4.1 BatterydriverforWindowsCE
BeckhoffIndustrialPCswithWindowsCEand24VUPSsupportaresuppliedwithaspecialBeckhoff
batterydriverforWindowsCE.InthesedevicesthedriverisincludedinthestandardCEimage.Nofurther
configurationsettingsarerequired.TheUPShardwareiswiredinternallywiththeonboardelectronics.Only
theexternalUPSbatterypackhastobeconnectedtothedevice(seedescriptioninthedevice
documentation).
PowerOptionsintheControlPanel
ThePowerOptionsdialogintheControlPanelshowsthestatusoftheexternalpowersupplyandthe
remainingbatterycapacity.
WindowsCEAPIinterfaceforapplications
WindowsCEapplicationscanaccesstheUPSstatusinformationcyclicallyviathe
GetSystemPowerStatusEx2APIfunctioncall.
DWORDGetSystemPowerStatusEx2(
PSYSTEM_POWER_STATUS_EX2pSystemPowerStatusEx2,
DWORDdwLen,
BOOLfUpdate
);
typedefstruct_SYSTEM_POWER_STATUS_EX2{
BYTEACLineStatus;
BYTEBatteryFlag;
BYTEBatteryLifePercent;
BYTEReserved1;
DWORDBatteryLifeTime;
DWORDBatteryFullLifeTime;
BYTEReserved2;
BYTEBackupBatteryFlag;
BYTEBackupBatteryLifePercent;
BYTEReserved3;
DWORDBackupBatteryLifeTime;
DWORDBackupBatteryFullLifeTime;
DWORDBatteryVoltage;
DWORDBatteryCurrent;
DWORDBatteryAverageCurrent;
DWORDBatteryAverageInterval;
DWORDBatterymAHourConsumed;
CX210009x476 Version1.1
Comentarios a estos manuales