ProSoft Technology MVI56-BAS User Manual
Page 101

MVI56-BAS ♦ ControlLogix Platform
Using DH-485 Communications
BASIC Module (DB/BAS Compatible)
User Manual
ProSoft Technology, Inc.
Page 101 of 234
December 13, 2011
8.6
Transfer Data Between the MVI56-BAS Module and a Remote
Common Interface File (CIF)
In order to transfer data from the MVI56-BAS output buffer to a Remote Common
Interface File, use CALL 93. This CALL transfers up to 40 words of data from the
output buffer starting at address 0. The CALL allows the user to configure the
remote node address, remote offset number, number of elements, and the
timeout. Before using CALL 93, you must use CALLs 24 or 25 to move the data
to be transferred from the MVI56-BAS to the output buffer.
The following is a BASIC code example that shows how to transfer data from the
MVI56-BAS output buffer to a remote Common Interface File at the DH-485
network:
1 REM SAMPLE PROGRAM FOR BASIC CALL 93
10 FOR I=0 TO 19
20 K=200-I
30 PUSH K: REM VALUE TO BE TRANSFERRED
40 PUSH I: REM OUTPUT BUFFER ADDRESS
50 CALL 24
60 NEXT I
80 PUSH 5: REM REMOTE NODE ADDRESS
90 PUSH 0: REM OFFSET
100 PUSH 20: REM NUMBER OF ELEMENTS
110 PUSH 10: REM TIMEOUT
120 CALL 93
130 POP S: REM STATUS
140 PRINT S
150 IF S<>0 PRINT "CALL 93 ERROR: ",S
160 END