Open serial interface
SRLOPEN [rate%=384] [,bits%=8] [,par%=0] [,stop%=1] [,fctrl%=2] [,port=1]
The serial interface is opened. The handed over communication parameters are set: :
rate
The data rate of the serial interface is set to 100*rate bit per second. The following data rates are possible: 300bps, 600bps, 1200bps, 2400bps, 4800bps, 9600bps, 19200bps, 38400bps, 57600bps and 115200bps
bits
The number of bits per character (7 or 8).
par
The parameter determines the parity:
par=0 | No parity |
par=1 | Odd parity |
par=2 | Even parity |
stop
The number of the stop bits after each character (1 or 2)
fctrl
The dataflow control takes place through:
fctrl=0 | None |
fctrl=1 | Software XON/XOFF |
fctrl=2 | Hardware RS/CS |
fctrl=3 | Hard- and Software |
port
The port to use:
port=1 | Serial interface |
port=2 | USB (if available) |
The default values correspond to a data rate of 38400 bps and the common protocol 8N1 with hardware data flow control on the serial interface.
|