| FieldTalk™ Modbus Master .NET Library |
|
MbusRtuMasterProtocol Constructor (String, Int32, Int32, Int32, Int32)
Creates new instance and configures port settings
[Visual Basic]
Overloads Public Sub New( _
ByVal
portName As
String, _
ByVal
baudRate As
Integer, _
ByVal
dataBits As
Integer, _
ByVal
stopBits As
Integer, _
ByVal
parity As
Integer _
)
[C#]
public MbusRtuMasterProtocol(
string portName,
int baudRate,
int dataBits,
int stopBits,
int parity);
Parameters
-
portName
- Serial port identifier (eg "COM1")
-
baudRate
- The port baud rate in bps (1200 - 115200, higher on some platforms)
-
dataBits
- Must be SER_DATABITS_8
-
stopBits
- SER_STOPBITS_1: 1 stop bit, SER_STOPBITS_2: 2 stop bits
-
parity
- SER_PARITY_NONE: no parity, SER_PARITY_ODD: odd parity, SER_PARITY_EVEN: even parity
Exceptions
See Also
MbusRtuMasterProtocol Class | FieldTalk Namespace | MbusRtuMasterProtocol Constructor Overload List