Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual

Page 31

Advertising
background image

BASIC PROGRAMMING GUIDE

2-22

GET

Syntax:

A = GET
A = GET(n)
Where:

N = com port number 0, 1, 2, 3 See card for specifics

Function:

Gets character from buffer.

Mode:

Run

Use:

A = GET(n)

DESCRIPTION

GET is similar to INKEY$ in other Basic languages. GET returns the ASCII value of the character rather
than the string. This feature makes it useful when receiving binary information.

When no characters are in the buffer, a value of 256 is returned.

To receive a control-C value (3), set bit 1, address 26H.

DBY(38) = DBY(38) .OR. 1

This disables program breaks when a <Ctrl-C> is received.

GET can extract characters from serial and keypad ports. Not all boards support keypads and multiple serial
ports.

RELATED

INPUT

Advertising