FieldTalk Modbus Master Library for .NET
FieldTalk Modbus Master Library for .NET
Namespaces
FieldTalk.Modbus.Master
MbusSerialClientBase Class
MbusSerialClientBase Methods
openProtocol Method
openProtocol Method
openProtocol Method (String, Int32, Int32, Int32, Int32)

# MbusSerialClientBase openProtocol Method

Opens a serial Modbus protocol and the associated serial port with the port parameters configured via properties

Namespace: FieldTalk.Modbus.Master
Assembly: FieldTalk.Modbus.Master (in FieldTalk.Modbus.Master.dll) Version: 2.15.2-eval+3d8362b4bb861c05760d48b11d303e954bb8597c
Syntax
C#
VB
C++
Copy

    public int openProtocol()

    Public Function openProtocol As Integer

    public:
    int openProtocol()

#### Return Value

Type: Int32
BusProtocolErrors.FTALK_SUCCESS on success or error code. See BusProtocolErrors for possible error codes.
Remarks
This function opens the serial port. After a port has been opened, data and control functions can be used.
See Also

#### Reference

MbusSerialClientBase Class
openProtocol Overload
FieldTalk.Modbus.Master Namespace
FieldTalk Modbus Master Library for .NET
Library version 2.15.2