ProSoft Technology MVI56-BAS User Manual

Page 198

Advertising
background image

BASIC CALLs Syntax

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 198 of 234

ProSoft Technology, Inc.

December 13, 2011

CALL 80: Check Battery Condition

Use CALL 80 to check the battery condition.

Syntax:

CALL 72
POP A

Where;

A =

0  Battery is okay

1  Battery is low

Example:

.
.
.
120 CALL 80: POP ST
130 IF(ST=0) THEN PRINT "Battery okay." ELSE PRINT "Battery Low"
.
.
.

Advertising