MbusIpClientBaseopenProtocol Method |
Connects to a TCP slave.
Namespace:
FieldTalk.Modbus.Master
Assembly:
FieldTalk.Modbus.Master (in FieldTalk.Modbus.Master.dll) Version: 2.15.2-eval+3d8362b4bb861c05760d48b11d303e954bb8597c
Syntaxpublic 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 establishes a logical network connection between master
and slave. After a connection has been established data and control
functions can be used. A TCP/IP connection should be closed if it is no
longer needed.
See Also