Skip to content
Start free evaluation

Modbus .NET API

The public .NET API of Modbus.

18 symbols
  • DiagnosticLogging.Configure MethodReplaces the diagnostic log configuration.
  • DiagnosticLogging.Flush MethodWaits until the queued log records have been written.
  • DiagnosticLogging.Status MethodGets the current logging state and counters.
  • Endpoint.Endpoint ConstructorCreates a native Modbus endpoint.
  • Endpoint.Call MethodRuns one JSON command on the endpoint and returns its result.
  • Endpoint.Dispose MethodReleases the native endpoint.
  • Endpoint.pdcomm_modbus_capabilities MethodGets the features compiled into the loaded native library.
  • License.HostId MethodGets the host id of this machine, which host-bound licenses (SECS/GEM runtime licenses) name.
  • License.Install MethodInstalls license text, replacing text installed earlier.
  • License.Status MethodGets the license status of the Modbus library.
  • Modbus Namespace
  • ModbusCommandException.Code PropertyGets the machine-readable error code, or null for errors without one. Codes: license_required (a connect refused without a valid license for modbus, or for modbus-security when security is configured), license_invalid (a license_install without a verifiable license) and host_id_unavailable.
  • ModbusCommandException.Details PropertyGets the license object of a license_required reply, with the refused module, its license state (for example missing or expired) and the deciding license_id; otherwise null.
  • ModbusCommandException.LicenseRequired PropertyGets whether the command was refused for lack of a PDComm license (ModbusCommandException.Code is license_required). Connections that are already open are not affected.
  • DiagnosticLogging ClassControls the optional diagnostic log of the PDComm Modbus native library.
  • Endpoint ClassA PDComm Modbus endpoint driven by JSON commands: a Modbus TCP, RTU or ASCII client or server (simulator).
  • License ClassInstalls and inspects the PDComm license of the Modbus native library.
  • ModbusCommandException ClassThe exception thrown when a Modbus endpoint rejects a command (native status SERVICE_ERROR).