Waiting for and reading incoming data

→Downloading sample program

Function

Wait for and read incoming data.

Description

Use the following procedure to process the data received.

  1. Specify the timeout interval.
  2. Use a WAIT statement to wait for data input (receive buffer) or a timeout.
  3. Use the LOC function to check the number of bytes in the receive buffer and read any data available with the INPUT$ function.

Do not use the INPUT# and LINE INPUT# statements to read in data. They suspend the user application program until they receive a carriage return (0Dh) or comma (,), so can appear to hang if communications circuit errors produce data dropout or the circuit is broken.


(C)2002-2004 DENSO WAVE INCORPORATED All right reserved