beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 43

background image

MVI56-BAS ♦ ControlLogix Platform

Backplane Data Transfer

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 43 of 234

December 13, 2011

4.2

Data Transfer from CLX Processor to MVI Input Buffer

The following BASIC CALLs 14, 15, 53 and 56 are covered in this section. Refer

to BASIC CALLs Syntax (page 105) for detailed syntax information about these

CALLs.
The MVI56-BAS input buffer can receive data transferred from the CLX

processor through the backplane using CALLs 56 or 53. The input buffer data

can be read using CALLs 14 and 15.
The data transfer from the CLX to the MVI56-BAS input buffer is shown in the

following diagram:

The input buffer is divided into areas depending on the source of the data

transferred. The input buffer addressing is shown in the following table.

Address

Definition

0 to 39

DH-485 Common Interface File - data written by other devices

40 to 99

Reserved

100 to 199

Data transferred from the CLX using Message instruction

200 to 231

Data transferred from the CLX Output Image file

CALL 53 transfers 8 words from the CLX output image file to the MVI56-BAS

input buffer.

The following example BASIC code uses CALL 53 to transfer data from the CLX

output image file to the input buffer. After that, it uses CALL 14 to read the data

from the MVI56-BAS input buffer and prints it to PRT1.

10 CALL 53
20 POP X: REM CALL 53 status code
30 FOR I = 200 TO 207