Documentation
FieldTalk Modbus Slave Library for .NET
MbusSerialServerBase Class |
This base class implements common functionality for both serial
Modbus protocols.
SystemObject
FieldTalk.Modbus.SlaveMbusSlaveServer
FieldTalk.Modbus.SlaveMbusSerialServerBase
FieldTalk.Modbus.SlaveMbusAsciiSlaveProtocol
FieldTalk.Modbus.SlaveMbusRtuSlaveProtocol
FieldTalk.Modbus.SlaveMbusSlaveServer
FieldTalk.Modbus.SlaveMbusSerialServerBase
FieldTalk.Modbus.SlaveMbusAsciiSlaveProtocol
FieldTalk.Modbus.SlaveMbusRtuSlaveProtocol
Namespace: FieldTalk.Modbus.Slave
Assembly: FieldTalk.Modbus.Slave (in FieldTalk.Modbus.Slave.dll) Version: 2.11.0-eval+eb1ecbe71c969eff5d7c05d58da16dade0474678
The MbusSerialServerBase type exposes the following members.
| Name | Description | |
|---|---|---|
| MbusSerialServerBase | Creates new instance |
| Name | Description | |
|---|---|---|
| baudRate | Baud rate property in bps | |
| dataBits | Data bits property | |
| parity | Parity property | |
| portName | Serial port identifier property | |
| stopBits | Stop bits property | |
| timeout | Time-out port property (Inherited from MbusSlaveServer.) |
| Name | Description | |
|---|---|---|
| addDataTable | Associates a protocol object with a Data Provider and a
Modbus slave ID. (Inherited from MbusSlaveServer.) | |
| Dispose | Implement IDisposable. (Inherited from MbusSlaveServer.) | |
| enableRs485Mode | Enables RS485 mode. | |
| Finalize | Destructor. (Inherited from MbusSlaveServer.) | |
| getConnectionStatus | Checks if a Modbus master is polling periodically. (Inherited from MbusSlaveServer.) | |
| getSuccessCounter | Returns how often a message transfer was successful. (Inherited from MbusSlaveServer.) | |
| getTimeout | Returns the currently set master time-out supervision value. (Inherited from MbusSlaveServer.) | |
| getTotalCounter | Returns how often a message transfer has been executed. (Inherited from MbusSlaveServer.) | |
| isStarted | Returns whether server has been started up. (Inherited from MbusSlaveServer.) | |
| resetSuccessCounter | Resets successful message transfer counter. (Inherited from MbusSlaveServer.) | |
| resetTotalCounter | Resets total message transfer counter. (Inherited from MbusSlaveServer.) | |
| serverLoop | Modbus slave server loop (Inherited from MbusSlaveServer.) | |
| setTimeout | Configures master transmit time-out supervision. (Inherited from MbusSlaveServer.) | |
| shutdownServer | Shuts down the Modbus Server. (Inherited from MbusSlaveServer.) | |
| startupServer | Opens a serial Modbus protocol and the associated serial
port with the port parameters configured via properties | |
| startupServer(String, Int32, Int32, Int32, Int32) | Opens a serial Modbus protocol and the associated serial port
with the port parameters configured via properties |
| Name | Description | |
|---|---|---|
| SER_DATABITS_7 | 7 data bits | |
| SER_DATABITS_8 | 8 data bits | |
| SER_PARITY_EVEN | Even parity | |
| SER_PARITY_NONE | No parity | |
| SER_PARITY_ODD | Odd parity | |
| SER_STOPBITS_1 | 1 stop bit | |
| SER_STOPBITS_2 | 2 stop bits |
These methods apply to RTU and ASCII protocol flavours via
inheritance.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.