beautypg.com

ProSoft Technology MVI56-BAS User Manual

Page 130

background image

BASIC CALLs Syntax

MVI56-BAS ♦ ControlLogix Platform

User Manual

BASIC Module (DB/BAS Compatible)

Page 130 of 234

ProSoft Technology, Inc.

December 13, 2011

CALL 95: Get Number of Characters in PRT1 Buffer

Use CALL 95 to retrieve the number of characters in PRT1 buffer.

Syntax:

PUSH A
CALL 95
POP B

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

Example:

.
.
.
210 PUSH 0: CALL 95: POP NUMTXCH
220 PUSH 1: CALL 95: POP NUMRXCH
.
.
.