ProSoft Technology MVI56-BAS User Manual
Page 167

MVI56-BAS ♦ ControlLogix Platform
BASIC CALLs Syntax
BASIC Module (DB/BAS Compatible)
User Manual
ProSoft Technology, Inc.
Page 167 of 234
December 13, 2011
CALL 91: Write MVI56-BAS Output Buffer to Remote DH-485 Data File
CALL 91 writes up to 40 words from the MVI56-BAS output buffer to a remote
DH-485 node address data file.
Syntax:
PUSH [A]
PUSH [B]
PUSH [C]
PUSH [D]
PUSH [E]
PUSH [F]
CALL 90
POP [S]
Where:
A = remote device node address (0 through 31)
B = remote device file number (0 through 255)
C = remote device file type (ASC(N), ASC(S), ASC(C), ASC(T), ASC(B) or
ASC(R) )
File Type Code
File Type
Words/Element
ASC(N)
Integer
1 word/element
ASC(S)
Status
1 word/element
ASC(C)
Counter
3 words/element
ASC(T)
Timer
3 words/element
ASC(B)
Bit
1 word/element
ASC(R)
Control
3 words/element
D = device file offset (0 through 32767)
E = number of elements to be transferred
File Type Code
Valid Length Range
ASC(N)
1 to 40
ASC(S)
1 to 40
ASC(C)
1 to 13
ASC(T)
1 to 13
ASC(B)
1 to 40
ASC(R)
1 to 13
F = message time-out (1 through 50)
This value is expressed as hundreds of milliseconds.
S = CALL status (0 = success)
Example:
.
.
.
100 GOSUB 1040