GetBatteryLevel: Returns Remaining Power Charge of the Battery

Function Description

This function returns the remaining power charge of the external backup battery (in percent).

For more information about internal and external batteries, refer to the M218 Hardware Guide.

NOTE: This information is also available through the System Variable PLC_R.i_wBatteryStatus

Graphical Representation

G-RU-0010319.2.gif-high.gif

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.

I/O Variables Description

The table describes the output variable:

Output

Type

Comment

GetBatteryLevel

WORD

Percentage of charge remaining in the battery.

Range: 0...100:

o100%= 3.5 V

o50% = 2.75 V

o0%= 2 V

Flashing thresholds of the Batt LED:

o100%= always OFF

o50%= periodic flashing

o0%= always ON