ProSoft Technology MVI56-BAS User Manual
Page 170

BASIC CALLs Syntax
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 170 of 234
ProSoft Technology, Inc.
December 13, 2011
CALL 93: Write From BAS Output Buffer to Remote DH-485 CIF
CALL 93 writes up to 40 words from the MVI56-BAS Output Buffer to the remote
DH-485 Common Interface File.
Syntax:
PUSH [A]
PUSH [B]
PUSH [C]
PUSH [D]
CALL 93
POP [S]
Where:
A = remote device node address (0 through 31)
B = starting element offset of a remote device file (0 to 32767)
C = number of words to be transferred (1 to 40)
D = time-out as hundreds of milliseconds (1 to 50)
S = CALL status (0 = success)
Example:
.
.
.
100 GOSUB 1040
.
.
.
1000 REM This routine uses a DH-485 write command to
1010 REM write BASIC Output Buffer CIF data to a remote
1020 REM DH-485 module CIF.
1030 REM
1040 PUSH 1,0,10,5: CALL 93: POP STATUS
1050 IF(STATUS<>0) THEN PRINT "CALL 93 Error Code =",STATUS
1060 RETURN
.
.
.