Validity: Rule, Task
By this keyword, it is possible to obtain information about the status of the battery used for RTC management and possibly predefined variables/alarms history.
Syntax |
I32 battery_status |
---|---|
Notes |
Read/write and bit access |
The meaning of the bits is as follows:
Bit |
Hexadecimal value |
Access |
Description |
---|---|---|---|
BIT 0-7 |
0x000000FF |
R |
Reserved |
BIT 8 |
0x00000100 |
R |
Battery manager presence for RTC. |
BIT 9 |
0x00000200 |
R |
Low battery, valid only if bit 8 0x100 is true |
BIT 10 |
0x00000400 |
R |
Reserved |
BIT 11 |
0x00000800 |
R |
Reserved |
BIT 12 |
0x00001000 |
R |
Reserved |
BIT 13 |
0x00002000 |
R |
Internal error |
BIT 14 |
0x00004000 |
R/W |
Alarm 9230 already output (resetting this bit will eventually reissue the alarm) |
BIT 15 |
0x00008000 |
R |
Reseved |
BIT 16-23 |
0x00FF0000 |
R |
Error code (positive) related to last write operation by RTE to retentive RAM |
BIT 24 |
0x01000000 |
R |
Battery manager presence for Retentive RAM (predefined variables, alarm history) |
BIT 25 |
0x02000000 |
R |
Battery low, valid only if bit 24 0x01000000 is true |
BIT 26 |
0x04000000 |
R |
Write operation by RTE to retentive RAM in progress |
BIT 27 |
0x08000000 |
R |
Last write operation by RTE to retentive RAM terminated with error, reset on next write request |
BIT 28 |
0x10000000 |
R |
Reserved |
BIT 29 |
0x20000000 |
R |
Internal error |
BIT 30 |
0x40000000 |
R/W |
Alarm 9231 already output (resetting this bit will eventually reissue the alarm) |
BIT 31 |
0x80000000 |
R |
Reserved |