Normally, you would preset the parameters for each communications
port in Scripta Configuration. However, using the SET command, you
may change these parameters 'on the fly'.

The format of a SET command is

SET <param_spec1> [ <param_spec2>... <param_spec10> ]

Each param_spec has the form <parameter_type>=<value>.

e.g., SET BaudRate=2400

The recognised (case insensitive) parameter types are as follows:

                         BaudRate
                         DataBits
                         StopBits
                         Parity
                         CRTrans
                         CharWait
                         LineWait
                         Flow
                         Port
                         Emulate

The permitted (case insensitive) values are

BaudRate - 300, 1200, 2400, 9600, 19200, 38400

DataBits - 7, 8

StopBits - 1, 2

Parity - None, Odd, Even, Space, Mark

CRTrans - CR, CRLF

Charwait - decimal milliseconds

LineWait - decimal milliseconds

Flow - None, RTSCTS, XONXOFF

Port - 1, 2, 3, 4, 5, 6, 7, 8

Emulate - ANSI, VT100, VT52

If the SET command does not include a PORT=value param_spec then the
supplied values are merely noted for later use. If the SET command
DOES include a PORT=value param_spec then the port is initialised
immediately to the new values. If a different port was initialised
previously (or defaulted from Configuration) then it is closed down
to make way for the new.

Care needs to be exercised to ensure that the correct port is
initialised.

For example, suppose that the currently active Virtual Port is Port
number 2 and that the following commands are issued:

             SET Baudrate=1200
             SET Port=1

The first of these commands would have no effect.

Baudrate would be changed to 1200 but the Port would NOT be
re-initialised. Then, the Port would be changed to 1 but would be
initialised at its default values.

If, instead, these commands had been used:

             SET BaudRate=1200
             SET Port=2

then the current Port (2) would have been re-initialised to 1200
baud.

The best method is always to put all the required parameters into a
single SET command, including the Port parameter:

             SET Baudrate=1200 Port=1

This sets up the values AND reinitialises the port in a single
action.
