Opens a serial Modbus protocol and the associated serial port with the port parameters configured via properties
[Visual Basic] Overloads Public Function openProtocol( _ ByVal portName As String, _ ByVal baudRate As Integer, _ ByVal dataBits As Integer, _ ByVal stopBits As Integer, _ ByVal parity As Integer _ ) As Integer
[C#] public int openProtocol( stringportName, intbaudRate, intdataBits, intstopBits, intparity );
Parameters
portName
Serial port identifier (eg "COM1")
baudRate
The port baud rate in bps (1200 - 115200, higher on some platforms)
dataBits
SER_DATABITS_7: 7 data bits (ASCII protocol only), SER_DATABITS_8: 8 data bits