Functions
98/142
netPLC C100 | Startup Guide
DOC090701UM02EN | Revision 2 | English | 2009-10 | Released | Public
© Hilscher, 2009
10.1.1
Battery Status – StatusOfBattery
Figure 8: System function StatusOfBattery
Function
StatusOfBattery
Description
Checks for the status of the battery and measures the battery voltage level.
Attention: During the check the battery will be unloaded for a very short time, e.g. it results in a little
discharge. This is the reason why this function should not be called periodically, but from time to
time only.
Name
Data type In-
/Output
Default
Comment
xDone
BOOL
Output
FALSE
TRUE: System function ready
FALSE: This function will be called in the next PLC cycle
again
xBusy
BOOL
Output
FALSE
TRUE: System function in process
FALSE: System function not in process
xError
BOOL
Output
FALSE
TRUE: Error occured! The error condition will be saved in
iError
FALSE: no error occured
iError
INT
Output
0
In case xError has the value FALSE , then
NO_ERROR: No Error
In case xError has the value TRUE, then
BATTERY_BAD_ERROR:
INTERNAL_ERROR:
xStatusOfBattery BOOL
Output
FALSE
TURE: Battery status “Good”
FALSE: Battery status “Bad”: Change battery
BatteryVoltage
REAL
Output
0
Measured voltage level of the battery in Volts.
A battery voltage level above 2,75 V means the battery
voltage is sufficient.
Table 17: System function StatusOfBattery