Purpose, Syntax, Example – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual

Page 139

Advertising
background image

Publication 1746-RM001A-US-P

Status Functions 11-9

>110 POP X : REM GET THE STATUS

>120 IF(X<>1) THEN GOTO 100 : REM WAIT ON THE DATA

READY

>

CALL 87 – Check DH485
Interface File Remote
Read Status

Purpose

Use CALL 87 to determine if the DH485 Common Interface File located in the
module has been read by a device on the DH485 Serial Communications Link
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 has not read from the DH485 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 read the DH485
Common Interface File since this CALL was executed or since the module was
powered up, whichever occurred last

Syntax

CALL 87
POP [DH485 interface file remote read status]

Example

>1

REM EXAMPLE PROGRAM

>100 CALL 87 : REM CHECK FILE STATUS

>110 POP X : REM GET THE STATUS

>120 IF (X<>1) GOTO 100: REM WAIT ON DATA TO BE READ

READY

>

Advertising