If you use outcomm to send command and Incomm to receive command, then your TRiLOGI program will have to check the data obtained from the Incomm statement and find out whether any response data has been received and if so, are the received data correct.
If you are using Incomm and Outcomm because you need to implement your own protocol, then your protocol must support some form of error check in order for your program to check if the response data is correct. Obviously the "status(2)" does not work since in this case the communication exchange is implemented by your own TBASIC program and not a built-in function.