• Libraries
  • Shop
  • Doc
  • Free Modbus
  • Support
  • Login
FieldTalk Modbus Slave Library for .NET
FieldTalk Modbus Slave Library for .NET
Namespaces
FieldTalk.Modbus.Slave
MbusTcpSlaveProtocol Class
MbusTcpSlaveProtocol Constructor
MbusTcpSlaveProtocol Properties
MbusTcpSlaveProtocol Methods
MbusTcpSlaveProtocol Events
Click or drag to resizeClick or drag to resize

MbusTcpSlaveProtocol Class

This class realises the server side of the MODBUS/TCP slave protocol.
Inheritance Hierarchy
SystemObject
  FieldTalk.Modbus.SlaveMbusSlaveServer
    FieldTalk.Modbus.SlaveMbusIpServerBase
      FieldTalk.Modbus.SlaveMbusTcpSlaveProtocol
        FieldTalk.Modbus.SlaveMbusRtuOverTcpSlaveProtocol

Namespace:  FieldTalk.Modbus.Slave
Assembly:  FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
Syntax
C#
VB
C++
Copy
public class MbusTcpSlaveProtocol : MbusIpServerBase
Public Class MbusTcpSlaveProtocol
	Inherits MbusIpServerBase
public ref class MbusTcpSlaveProtocol : public MbusIpServerBase

The MbusTcpSlaveProtocol type exposes the following members.

Constructors
  NameDescription
Public methodMbusTcpSlaveProtocol
Instantiates a MODBUS/TCP protocol server object.
Top
Properties
  NameDescription
Public propertyhostName
Host name of server interface
(Inherited from MbusIpServerBase.)
Public propertyport
Port number to be used by the protocol
(Inherited from MbusIpServerBase.)
Public propertytimeout
Time-out port property
(Inherited from MbusSlaveServer.)
Top
Methods
  NameDescription
Public methodaddDataTable
Associates a protocol object with a Data Provider and a Modbus slave ID.
(Inherited from MbusSlaveServer.)
Public methodDispose
Implement IDisposable.
(Inherited from MbusSlaveServer.)
Protected methodFinalize
Destructor.
(Inherited from MbusSlaveServer.)
Public methodgetConnectionStatus
Checks if a Modbus master is polling periodically.
(Inherited from MbusSlaveServer.)
Public methodgetConnectionTimeOut
Returns the connection time-out setting.
Public methodgetPort
Returns the TCP port number used by the protocol.
(Inherited from MbusIpServerBase.)
Public methodgetSuccessCounter
Returns how often a message transfer was successful.
(Inherited from MbusSlaveServer.)
Public methodgetTimeout
Returns the currently set master time-out supervision value.
(Inherited from MbusSlaveServer.)
Public methodgetTotalCounter
Returns how often a message transfer has been executed.
(Inherited from MbusSlaveServer.)
Public methodisStarted
Returns whether server has been started up.
(Inherited from MbusSlaveServer.)
Public methodresetSuccessCounter
Resets successful message transfer counter.
(Inherited from MbusSlaveServer.)
Public methodresetTotalCounter
Resets total message transfer counter.
(Inherited from MbusSlaveServer.)
Public methodserverLoop
Modbus slave server loop
(Inherited from MbusSlaveServer.)
Public methodsetConnectionTimeOut
Configures connection time-out.
Public methodsetPort
Sets the TCP port number to be used by the protocol.
(Inherited from MbusIpServerBase.)
Public methodsetTimeout
Configures master transmit time-out supervision.
(Inherited from MbusSlaveServer.)
Public methodshutdownServer
Shuts down the Modbus Server.
(Inherited from MbusSlaveServer.)
Public methodstartupServer
Puts the Modbus server into operation.
(Inherited from MbusIpServerBase.)
Public methodstartupServer(String)
Puts the Modbus server into operation.
(Inherited from MbusIpServerBase.)
Top
Events
  NameDescription
Public eventconnectEvent
Connection event
Public eventdisconnectEvent
Disconnection event
Public eventpollEvent
Poll event
(Inherited from MbusIpServerBase.)
Top
Remarks
It provides functions to start-up and to execute the server engine. This server engine can handle multiple master connections and is implemented as a single threaded TCP server. Upon receipt of a valid master query the server engine calls Data Provider methods to exchange data with the user application.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference

FieldTalk.Modbus.Slave Namespace
FieldTalk.Modbus.SlaveMbusDataTableInterface

Other Resources

Server Functions common to all Protocol Flavours
TCP/IP Protocols
FieldTalk Modbus Slave Library for .NET
Library version 2.11.0
Speak to the Experts
Modbus Organization Member logo

We are member of the Modbus Organization, Inc.

Buy with Confidence
30-day money back guarantee All our FieldTalk web sales are backed by a 30-day Money Back Guarantee.
We Accept
Bank VISA MasterCard PayPal
Customer Info
  • Info & Contact
  • Customer Login
  • Terms of Service
  • Terms of Sale
  • Privacy Policy
© 2005-2025 proconX Pty Ltd. All rights reserved. proconX and FieldTalk are trademarks of proconX Pty Ltd.
All other trademarks and registered trademarks appearing on www.modbusdriver.com are the property of their respective owners.