ProSoft Technology MVI56-BAS User Manual
Page 44

Backplane Data Transfer
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 44 of 234
ProSoft Technology, Inc.
December 13, 2011
40 PUSH I: REM INPUT BUFFER ADDRESS
50 CALL 14
60 POP Y: REM INPUT BUFFER VALUE AT ADDRESS I
65 X = I - 200
70 PRINT "VALUE AT [", X, "] = ", Y
80 NEXT I
90 END
CALL 56 transfers up to 100 words from a CLX data file to the MVI56-BAS input
buffer using Class 3 message instructions.
Ladder logic must execute a MSG instruction prior to CALL 56 execution in order
to move the data to a temporary buffer. The MSG should have the following
parameters:
The following ladder logic writes the data that will be read by CALL56.
After the ladder logic execution, a CALL 56 can be performed in order to transfer
the data to the MVI56-BAS input buffer.
1 REM CALL 56
10 PUSH 10
20 CALL 56
30 POP X
40 PRINT X