ProSoft Technology MVI56-BAS User Manual
Page 157

MVI56-BAS ♦ ControlLogix Platform
BASIC CALLs Syntax
BASIC Module (DB/BAS Compatible)
User Manual
ProSoft Technology, Inc.
Page 157 of 234
December 13, 2011
G = Message Timeout (1 through 255. For example: 1 = 100ms, 25 = 250 ms,
and so on)
H = Data Destination. Use one of the following codes:
Destination File Code
Description
0
CPU Input Image File
1
CPU M1 File
2
Internal String
3
CPU Input Image File and Internal String
4
CPU M1 file and Internal String
I = The word offset in the destination file.
Note: If the parameter H chosen as 0, the words 0 and 1 are reserved.
J = The string number.
S = The CALL result code.
Code
Description
0
Successful
1
Disabled
2
Bad Input Parameter
3
Port DH-485 not enabled (DF1 enabled)
4
String is too small
5
String is not dimensioned
Example:
.
.
.
90 PUSH 2,2,7,ASC(N),100,20,5,1,0,0: CALL 27: POP STATUS
100 IF(STATUS<>0) THEN PRINT "Unsuccessful CALL 27 Setup"
110 REM CALL 27 remains active as long as BASIC
120 REM continues to RUN.
.
.
.