beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 161

background image

MVI56-BAS ♦ ControlLogix Platform

BASIC CALLs Syntax

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 161 of 234

December 13, 2011

CALL 84: Transfer DH-485 Interface File to MVI56-BAS Input Buffer

CALL 84 transfers up to 40 words of data from the DH-485 CIF to the BASIC

input buffer.

Syntax:

PUSH [A]
PUSH [B]
CALL 84
POP [S]

Where:
A = word offset in DH-485 interface file
B = number of words to be transferred
S = CALL status

Code

Description

0

Successful

1

Illegal offset

2

Illegal number of words

Example:

.
.
.
100 GOSUB 1020
.
.
.
1000 REM This routine copies the CIF File to the
1010 REM BASIC Input Buffer
1020 PUSH 0,32: CALL 84: POP STATUS
1030 IF(STATUS<>0) THEN PRINT "Transfer error code =",STATUS
1040 RETURN
.
.
.