ProSoft Technology MVI56-BAS User Manual
Page 188

BASIC CALLs Syntax
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 188 of 234
ProSoft Technology, Inc.
December 13, 2011
F = CALL 23 status
0 = successful
1 = disabled
2 = invalid parameter
3 = PRT2 already enabled for DF1
4 = string too small
5 = string not dimensioned
Example:
10 REM Enable CALL 23
20 PUSH 2,1,0,0,1: CALL 23: POP S
30 IF(S<>0) THEN PRINT "CALL 23 Unsuccessful"
40 GOTO 40
9.9.2 DH-485 Background CALLs
CALL 118: Receive DF1 or DH-485 Unsolicited Write
Use CALL 118 to allow the MVI56-BAS to receive write command from remote
DF1 devices such as PLC-2, PLC-3, PLC-5 or from the DH-485 network. The
following WRITE commands are accepted:
PLC (word range writes)
PLC (typed writes)
PLC (unprotected writes)
SLC 5/02 (unprotected writes)
SLC 5/02 (typed writes)
For more information about CALL 118 usage (including ladder logic) refer to
Using DF1 Protocol Communications.
Syntax:
PUSH [A]
PUSH [B]
PUSH [C]
PUSH [D]
PUSH [E]
CALL 118
POP [F]
Where:
A = CALL enable / disable (0 = enable CALL 118 , 1 = disable CALL 118)
B = selection of destination file. The following values are valid:
0 = CLX input image file
1 = CLX MSG instruction
2 = internal string
3 = CLX input image file and internal string
4 = CLX MSG instruction and internal string