$FUNCNAME$
	COM_READ()
$CATEGORY$
  Serial I/O
$SUMMARY$
	Reads characters from the receiving buffer.
$LANG_RU$
	    .
$SYNTAX$
	COM_READ(<nComPort>,[<nLength>]) --> cData
$ARGUMENTS$
	<nComPort> - Designates the port (1 to N) that is read.
	<nLength> - Designates the number of the characters in the buffer that are read. The default value reads all characters.
$LANG_RU$
	<nComPort> -    .
	<nLength> -     .   -  .
$RETURNS$
	The returned string contains the corresponding characters from
	the receiving buffer.
$LANG_RU$
	 ,     .
$DESCRIPTION$
	All characters arriving at the serial port are stored in the
	appropriate buffer under interrupt control. It is possible to determine
	the number of characters in the buffer and to read one, several, or all
	of the characters. If the <nLength> parameter is not specified, then all
	the characters in the buffer are read.

	Remember that you can receive additional characters between
	calling COM_COUNT() and COM_READ().
$LANG_RU$
	     .
	      ,  
	, ,   .     <nLength>,
	    .

	,       
	 COM_COUNT()  COM_READ().
$EXAMPLES$
	DO WHILE COM_COUNT(1) < 10
	    // Wait until 10 characters in buffer
	    *...
	ENDDO
	cInput := COM_READ(1, 10)              // Read in 10 characters
	? cInput
$PECULIARITIES$
$LANG_RU$
$PLATFORMS$
   No dependies of platform.
   $LANG_RU$
      
$SEEALSO$
	COM_FLUSH(),COM_INIT(),COM_OPEN(),COM_SEND(),COM_SFLUSH()
$AUTHOR$
ITK,Paul
$END$
