ProSoft Technology MVI56-BAS User Manual

Page 164

Advertising
background image

BASIC CALLs Syntax

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 164 of 234

ProSoft Technology, Inc.

December 13, 2011

CALL 87: Check DH-485 Interface File Remote Read Status

CALL 87 determines if the DH-485 CIF file was read by a DH-485 node device.

Syntax:

CALL 87
POP [S]

Where:
S = CALL Status

Status

Description

0

No device has read the CIF file since last CALL or power up.

1

A device has read the CIF file since last CALL or power up.

Example:

.
.
.
100 GOSUB 1040
.
.
.
1000 REM This routine waits for the CIF to be read.
1010 REM CALL 87 simply tells us that the CIF has been
1020 REM read some time in the past. This routine
1030 REM waits for the CIF to be read again.
1040 CALL 85: POP STATUS
1050 CALL 85: POP STATUS
1060 IF(STATUS=0) THEN GOTO 1050
1070 RETURN
.
.
.

Advertising