This function instructs the Comm Engine to change com port. The Comm Engine must be offline for the change to be successful. The command format is as follows:
}SETPORTCOMx
where x is the integer 1 through 8.
The Comm Engine will return the following data: {XX }command
Where:
XX = 0 if there was no error.
XX = 1 unsupported or illegal command.
XX = 6 Comm Engine online, cannot change com port.
XX = 7 invalid com port.
command = SETPORTCOMx (original command as sent out).
Example: Set com port of Comm Engine to COM5. Command:
rc = CLWritePipe( '}SETPORTCOM5' )
Reply:
{0 }SETPORTCOM5