beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 162

background image

BASIC CALLs Syntax

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 162 of 234

ProSoft Technology, Inc.

December 13, 2011

CALL 85: Transfer MVI56-BAS Output Buffer to DH-485 Interface File

CALL 85 transfers up to 40 words of data from the BASIC output buffer to the

DH-485 CIF file.

Syntax:

PUSH [A]
PUSH [B]
CALL 85
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 BASIC Output Buffer to the
1010 REM CIF
1020 PUSH 0,32: CALL 85: POP STATUS
1030 IF(STATUS<>0) THEN PRINT "Transfer error code =",STATUS
1040 RETURN
.
.
.