产品详情资料:
DS200TBQAG1A DS200TBQAG1
读取字符串函数(4403)此函数导致从***端口读取字符,直到接收到***的终止字符。字符从内部输入缓冲区中读取并放置在***的输入数据区中。该函数返回检索到的字符数和仍在输入缓冲区中的未处理字符数。如果请求输入的字符为零,则只返回输入缓冲区中未处理的字符数。如果终止字符不在输入缓冲区中,则在接收到终止字符或超时间隔到期之前,操作状态不会完成。在这两种情况中,端口状态都表示读取操作完成的原因。如果超时间隔设置为零,COMMREQ将保持挂起状态,直到它接收到请求的字符串,并以***的结束字符终止。DS200TBQAG1A DS200TBQAG1
产品英文详情料:
DS200TBQAG1A DS200TBQAG1Read String Function (4403) This function causes characters to be read from the specified port until a specified terminating character is received. The characters are read from the internal input buffer and placed in the specified input data area. The function returns both the number of characters retrieved and the number of unprocessed characters still in the input buffer. If zero characters of input are requested, only the number of unprocessed characters in the input buffer is returned. If the terminating character is not in the input buffer, the status of the operation is not complete until either the terminating character has been received or the time-out interval expires. In either of those conditions, the port status indicates the reason for completion of the read operation. If the time-out interval is set to zero, the COMMREQ remains pending until it has received the requested string, terminated by the specified end character.DS200TBQAG1A DS200TBQAG1