beautypg.com

Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual

Page 37

background image

RPBASIC-52 PROGRAMMING GUIDE

2-18

COM

Syntax:

C O M (port)
Where: port = 0 or 1 , the seri al com mun icatio n port. port may be la rger. Check yo ur hardware

manua l.

Function:

Returns the n umber of ch aracters receive d in the specified se rial port buffer.

Mode:

Run

Use:

A = COM (0)

Cards:

All

D E S C R IP T I ON

Use this function in conjunction with GET and COM $ to determine the number of characters to extract from
the serial buffer. A GET 0 data value can be processed with the knowledge that it is a valid character and not
an indication of an empty bu ffer.

RELATED

COM$, GET

ERRORS

B A D S Y N T A X

Any parameters left out

B A D A R G U M E N T When port > 1 or card limit or negative