Call 80: check battery condition – Rockwell Automation 1771-DB BASIC MODULE User Manual

Page 267

Advertising
background image

Chapter
Call Routines 69–127

13

13 -9

Use CALL 80 to check the module’s battery condition.

Refer to Chapter 3 for information on how to change the battery.

Important: Refer to Guidelines for Handling Lithium Batteries
(publication number AG-5.4 to properly dispose of the
lithium battery.

Input and Output Arguments

This routine has no input arguments and one output argument. The output
argument is the status of the battery:

0 = battery is okay
1 = battery is low

Syntax

CALL 80

POP

battery status

Example

>10 CALL 80

>20 POP C

>30 IF C <>0 THEN PRINT “BATTERY LOW”

>40 END

CALL 80: Check Battery
Condition

Chapter

Advertising