Download What is CUBLOC?

Transcript
Bfree( )
Variable = BFREE(channel, buffertype)
Variable : Variable to store results (No String or Single)
channel : RS232 Channel number (0~3)
buffertype: 0=Receive Buffer, 1=Send Buffer
This function will return the number of free bytes that either receive buffer
or send buffer has currently. For sending data, this command can be used
to avoid overflowing the buffer.
DIM A AS BYTE
OPENCOM 1,19200,0, 100, 50
IF BFREE(1,1)>10 THEN
PUT “TECHNOLOGY”
END IF
If buffer size is set to 50, up to 49
free bytes can be returned. The
function will return 1 less than the
set buffer size when buffer is empty.
110