ProSoft Technology MVI56-BAS User Manual

Page 159

Advertising
background image

MVI56-BAS ♦ ControlLogix Platform

BASIC CALLs Syntax

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 159 of 234

December 13, 2011

H = Data Source. Use one of the following codes:

Destination File Code

Description

0

CPU Output Image File

1

CPU M0 File

2

Internal String

I = The word offset in the destination file.

Note: If the parameter H is 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

6

Data packet is too long

Example:

.
.
.
90 PUSH 2,1,7,ASC(N),0,20,10,1,0,0: CALL 28: POP STATUS
100 IF(STATUS<>0) THEN PRINT "Unsuccessful CALL 28 Setup"
110 REM CALL 28 remains active as long as BASIC
120 REM continues to RUN.
.
.
.

Advertising