my ($result) = Win32API::CommPort::ReadFile( $HandleToRS232,$data,$NumberOfBytesToRead, $ActualReadBytes,$template);