beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 116

background image

BASIC CALLs Syntax

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 116 of 234

ProSoft Technology, Inc.

December 13, 2011

CALL 55: Check CLX Input Image

Use CALL 55 to determine if the CLX processor input image buffer located in the

module has been read by the CLX since the last time it was checked.

Syntax:

CALL 55
POP A

Where:

A =

0 CLX has not read the input image

1 CLX has read the input image

Example:

.
.
.
125 GOSUB 520
.
.
.
500 REM This routine waits for the Input Image
510 REM to be read.
520 CALL 55: POP X
530 CALL 55: POP X
540 IF(X=0) THEN GOT 530
550 RETURN
.
.
.