beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 126

background image

BASIC CALLs Syntax

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 126 of 234

ProSoft Technology, Inc.

December 13, 2011

CALL 36: Get Number of Characters in PRT2 Buffer

Use CALL 36 to retrieve the number of characters in PRT2 buffer.

Syntax:

PUSH A
CALL 36
POP B

Where:
A = buffer selection (0 = transmit buffer, 1 = receive buffer)
B = number of characters

Example:

.
.
.
210 PUSH 0: CALL 36: POP NUMTXCH
.
.
.