USEPORT Specify the desired COM port and/or port settings |
Top Previous Next |
This script command defines the COM port and/or port settings to be used by FileLink. If the line is not connected, the COM port and settings apply the next time the communications port is opened. If the line is connected, the settings take effect immediately. Changing the COM port itself when the line is connected is prohibited.
The selection made in this command overrides any default selections set with the FileLink Configurator. If the specified COM port has not be previously configured, default settings for the port are created. Not all configuration options must be supplied with the USEPORT command - when omitted, the selection set at configuration time is used.
Consider the following example where COM2 is selected and configured.
USEPORT "COM2" /baudrate=28800 /parity=none /wordlength=8
Consider the following example where the baud rate of the current port is changed.
USEPORT /baudrate=9600
The following example restores the default settings for COM2.
USEPORT "COM2"
Related Commands: PROTOCOL
|