beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 115

background image

MVI56-BAS ♦ ControlLogix Platform

BASIC CALLs Syntax

BASIC Module (DB/BAS Compatible)

User Manual

ProSoft Technology, Inc.

Page 115 of 234

December 13, 2011

CALL 54: Transfer Data from BASIC Output Buffer to CLX Input Image

CALL 54 transfer words 200 to 231 (32 words) from the module output buffer to

the CLX input image (Local:x:I.Data[ ] ). No ladder logic is required to perform the

data transfer.

Syntax:

CALL 54
POP A

Where:

A =

0 CLX is in RUN mode

1 CLX is not in RUN mode

Example:

10 DIM A(32)
.
.
210 GOSUB 720
220 GOSUB 820
.
.
700 REM This routine copies data from variable A()
710 REM to the BASIC Output Buffer Input Image area
720 FOR I = 0 TO 31
730 PUSH A(I),I+200: CALL 25
740 NEXT I
750 RETURN
.
.
800 REM This routine copies the BASIC Output Buffer
810 REM Input Image Area to the CLX Input Image
820 CALL 54: POP S
830 IF(S<>0) THEN PRINT "CLX not in RUN mode"
840 RETURN
.
.
.