beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 41

background image

MVI56-BAS ♦ ControlLogix Platform

Backplane Data Transfer

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 41 of 234

December 13, 2011

Note: The upper three bits in Word 200 are reserved and cannot be modified.

The lower thirteen bits can be used. The upper three bits provide module status

information to the ControlLogix, Where

Address

Definition

bit 0

Modifiable

bit 1

Modifiable

bit 2

Modifiable

bit 3

Modifiable

bit 4

Modifiable

bit 5

Modifiable

bit 6

Modifiable

bit 7

Modifiable

bit 8

Modifiable

bit 9

Modifiable

bit 10

Modifiable

bit 11

Modifiable

bit 12

Modifiable

bit 13

Battery status bit (0-battery good 1 -low voltage)

bit 14

Reserved

bit 15

MVI56-BAS program mode (0-run mode , 1-command)

CALL 57 will transfer data from the MVI56-BAS output buffer to a CLX data file

using a Class 3 Message. In order to accomplish this, ladder logic is required

The following BASIC program transfers data to the output buffer using CALL 24
and executes CALL 57:
1 REM CALL 57
10 FOR I=100 TO 149
30 PUSH 200-I: REM VALUE TO BE TRANSFERRED
40 PUSH I: REM ADDRESS IN OUTPUT BUFFER
50 CALL 24
60 NEXT I
70 PUSH 50: REM NUMBER OF WORDS TO BE TRANSFERRED
80 CALL 57:
90 POP S: REM CALL 57 RESULT
130 END