Rockwell-automation 1746-BAS BASIC LANGUAGE User Manual Page 138

  • Download
  • Add to my manuals
  • Print
  • Page
    / 280
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 137
Publication 1746-RM001A-US-P
11-8 Status Functions
CALL 80 – Check Battery
Condition
Purpose
Use CALL 80 to check the module battery condition. If a 0 is POPped after a
CALL 80, the battery is okay. If a 1 is POPped a low battery condition exists.
Syntax
CALL 80
POP [battery status]
Example
>1 REM EXAMPLE PROGRAM
>10 CALL 80
>20 POP C
>30 IF (C<>0) THEN PRINT ”BATTERY LOW!”
>40 END
READY
>RUN
BATTERY LOW!
CALL 86 – Check DH485
Interface File Remote
Write Status
Purpose
Use CALL 86 to determine if the DH485 Common Interface File located in the
module has been updated since the last time it was checked. This routine has no
input arguments and one output argument.
The output argument is equal to:
0 if a device on the DH485 Serial Communications Link has not written to
the DH485 Serial Common Interface File since the last time this CALL was
executed or since the module was powered up, whichever occurred last
1 if a device on the DH485 Serial Communications Link has written to the
DH485 Common Interface File since the last time this CALL was executed or
since the module was powered up, whichever occurred last
Syntax
CALL 86
POP [DH485 interface file remote write status]
Example
>1 REM EXAMPLE PROGRAM
>100 CALL 86 : REM CHECK FILE STATUS
Page view 137
1 2 ... 133 134 135 136 137 138 139 140 141 142 143 ... 279 280

Comments to this Manuals

No comments