beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 163

background image

MVI56-BAS ♦ ControlLogix Platform

BASIC CALLs Syntax

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 163 of 234

December 13, 2011

CALL 86: Check DH-485 Interface File Remote Write Status

CALL 86 determines if the DH-485 CIF file was written by a DH-485 node device.

Syntax:

CALL 86
POP [S]

Where:
S = CALL Status

Status

Description

0

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

1

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

Example:

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