ModbusProtocol<(Of <(<'ModBusMessage>)>)> Constructor
MODBUS protocol initialization
Namespace:
CAS.CommServer.DataProvider.MODBUSCoreAssembly: DataProvider.MODBUSCore (in DataProvider.MODBUSCore.dll)
Syntax
public ModbusProtocol( ICommunicationLayer communicationLayer, ProtocolParameters protocolParameters, IProtocolParent protocolParent, SesDBufferPool<ModBusMessage> pool )
Public Sub New ( _ communicationLayer As ICommunicationLayer, _ protocolParameters As ProtocolParameters, _ protocolParent As IProtocolParent, _ pool As SesDBufferPool(Of ModBusMessage) _ )
public: ModbusProtocol( ICommunicationLayer^ communicationLayer, ProtocolParameters^ protocolParameters, IProtocolParent^ protocolParent, SesDBufferPool<ModBusMessage>^ pool )
Parameters
- communicationLayer
- Type: ICommunicationLayer
Interface responsible for providing the communication
- protocolParameters
- Type: ProtocolParameters
Protocol parameters
- protocolParent
- Type: IProtocolParent
Statistical information about the communication performance
- pool
- Type: SesDBufferPool<(Of <(<'ModBusMessage>)>)>
Empty data messages pool to be used by the protocol.