SuperCom - MODBUS Protocol Library
for Windows and Linux

Software For The Digital Factory

High Performance Data Access to MODBUS devices

Modbus Library

Data transmission library using MODBUS Protocol Driver. MODBUS Communications via serial and TCP/IP. MODBUS RTU ASCII Modus. Modbus Library with Client-Server (former Master-Slave) support.

SuperCom MODBUS library is a developers library to be used with modern compiler like C, C++, C#, Delphi, Java, VB net, Python etc. in order to control Modbus aware plc. The SuperCom MODBUS library supports client and server (old: master/slave) RTU and ASCII through serial ports and TCP/IP.

C++ Modbus RTU Library supporting client and server. A C# Modbus RTU Library for serial and tcp/ip data connections.

Delphi Modbus RTU Library supporting serial and tcp/ip data connections under Windows and Linux .

Perform easily Modbus client-server device functionality in your application written for example with C++, C#, Delphi, LabVIEW, Pascal, Visual Basic (incl. NET, NET Core) or Java.

Modbus protocol library for TCP RTU over TCP. Bridge RTU over IP Gateway. Modbus for serial RS-485 library. MODBUS/TCP Master and Slave. Data Acquisition Products. MODBUS Protocol with LabView samples. Modbus Master Protocol library. Modbus bridging serial to TCP/IP. Serial MODBUS Library. MODBUS Library with Siemens S7.

Serial Communications and via TCP/IP MODBUS RTU ASCII Modus.

Modbus driver RTU and ASCII. Data transmission using MODBUS Protocol. Modbus Library.

Modbus TCP slave to Modbus Master converter. Connect a Master Modbus RTU RS232, RS485 with one or more Modbus TCP slaves / servers. Modbus master on serial and slaves on Ethernet (TCP).

Delphi MODBUS RTU & ASCII Unit, Bibliothek.

Delphi Unit supporting Modbus protocol library.

Labview Modbus library.

MODBUS Communication Library for Windows

MODBUS Communication Library for Linux

Samples for Modbus RTU Client / Server. Modbus protocol samples written in C, C++, C#, Delphi, Pascal, Java, .NET, Python, Visual Basic, VB net.

MODBUS protocol Library & Components

MODBUS Protocol Library Windows, Linux Library, Component, ActiveX, Unit C#, C / C++, Delphi, Java, Pascal, Python, Visual Basic, VB net SuperCom Suite, SuperCom Serial Library incl. MODBUS, SuperCom for TCP/IP incl. MODBUS MODBUS RTU,MODBUS ASCII Modus, MODBUS TCP. Data transmission library using MODBUS Protocol Driver. Modbus TCP slaves / server. Modbus for TCP RTU over TCP. Bridge RTU over IP Gateway
ADONTEC MODBUS Software Development, Serial Data Communication, TCP/IP Client Server

Data Communication Solutions by ADONTEC
Modbus driver for Windows or Linux, SuperCom MODBUS RTU and ASCII functions, MODBUS driver librarySome SuperCom MODBUS functions
64 Bit Ready32 Bit and 64 Bit Versions available!

Version 4.5

Modbus protocol library, Modbus driver library, C++ MODBUS RTU, C# MODBUS RTU, ASCII, C# MODBUS RTU, Delphi MODBUS, MODBUS TCP, MODBUS protocol functions, Simultaneous connections.
Examples Modbus serial and TCP/IP data communication for the .NET Framework using C# and Visual Basic .NET, Net Core. Serial, TCP, ISDN, data communication for Windows Introduction the SuperCom MODBUS communication library for Linux

SuperCom MODBUS Protocol Library

MODBUS is an industrial data communication protocol used to control PLC's and automation machines connected through serial lines (RS-232, RS-422, RS-485) or Ethernet TCP/IP connections.

The SuperCom MODBUS protocol library supports fast direct reading of Modbus data. Reading or modifying registers, coils, inputs etc. Direct data communication via Modbus TCP or Modbus serial and operation mode Modbus RTU, Modbus ASCII, Modbus TCP etc.

SuperCom MODBUS library is a developers library to be used with modern compiler like C, C++, C#, Delphi, Java, LabView, Pascal, Python, VB net, etc. in order to control Modbus aware plc. The SuperCom MODBUS library supports client and server mode of operation and data transfer in RTU and ASCII mode through serial ports and TCP/IP.

The SuperCom MODBUS Protocol Library contains functions for sending and receiving data via serial or TCP/IP connections to devices respecting the MODBUS protocol.

The SuperCom MODBUS Protocol Library is a very complete and mature MODBUS library and provides a rock solid foundation to develop fast robust MODBUS capable applications. The SuperCom MODBUS Protocol Library hides the complex MODBUS protocol offering one easy to use set of functions (API) that communicate data packets over serial and TCP/IP connections thus saving valuable time, reducing costs and ensuring quality results.

Perform easily client or server device functionality in you application written for example with C, C++, C#, Delphi, Visual Basic (incl. NET), Java, LabView etc. Many samples included.

Library for MODBUS Protocol. Library for MODBUS client and server. MODBUS driver RTU and ASCII. Portable API for serial (RS-232, RS-485) communication or TCP/IP communication. Modbus protocol samples written in C, C++, C#, Delphi, Pascal, Python, Java, LabVIEW, .NET, Visual Basic, VB net. Delphi modbus-library, C modbus, C++ modbus, Java modbus library, C#, Visual Basic. Modbus RTU client and server examples. Data Communications Modbus protocol library, driver. One API for Serial communication or TCP/IP communication. Modbus TCP.

The SuperCom MODBUS Protocol Library supports data communication between devices connected to a serial port, on a bus system or network (TCP/IP). The protocol module supports ASCII and RTU (Remote Terminal Unit) operation mode (ASCII mode transfers ASCII codes and RTU binary data bytes in binary mode).

Run up to 255 simultaneous connections with Modbus devices. Each application can open and control up to 255 Modbus devices at the same time. SuperCom functions are thread-safe and work smoothly and particularly quickly even on the most modern multi-core CPUs.

There is only one API to learn! The same functions used with Serial, TCP/IP or ISDN type of connections and operation mode (Modbus ASCII, Modbus RTU, Modbus TCP).

The SuperCom MODBUS Protocol Library also supports custom function codes and data packets by implementing functions that communicate transparently. Controlling machine specific extensions is realy easy using these functions.

Easy to use, stable and fast

The SuperCom software is particularly valued by industrial customers for its stability and speed. More than 30 years SuperCom software is supporting industrial customers in rough environment, often with strictly timing requirements.

There is only one API to learn! The same functions and parameters used with serial, TCP/IP or ISDN type of connections.

An existing project is quickly expanded to exchange data with a Modbus-capable PLC or controller. Additional functions are included to meet a wide range of requirements. Many examples are included.

A possible MODBUS client graph.

The SuperCom MODBUS Protocol Library uses the SuperCom Communication Layer which provides a rock solid foundation to develop data communication software fast and without headache. Thus it makes no difference to the programmer if the MODBUS protocol used over TCP/IP or serial lines (RS-232, RS-422, RS-485, Modem, TAPI).

The SuperCom MODBUS Protocol Library accesses the Modbus remote station directly without using another software layer (e.g. OPC server or driver from third party) that can cause delays.

SuperCom enables the application to connect to a PLC (nearly from anywhere, e.g. Modem, TAPI, ISDN, Ethernet (TCP/IP) Internet, serial lines e.g. RS-232, RS-422, RS-485) and transfer data and/or read, write operands.

Currently supported compiler
As usual with SuperCom, many well-known compilers are supported. Others are constantly coming. The SuperCom MODBUS library can currently be used with the following compiler languages and compilers: C / C++, C#, Visual C++, C++ Builder, Java, Delphi, Pascal, LabVIEW, PowerBuilder, Python, PureBasic, Visual Basic, Visual Basic .NET (VB .NET), VBA. If you miss one, please inquire. (See also)

Samples - MODBUS Protocol API:

1. Read a single coil


   #define SLAVE_ID  1
   TCOMMID Com = COM_2; // Com index, e.g. using serial port COM2
// Serial, TCP, ... - native API ComInit (Com); ComSetState (Com, 9600, ...);
: -- Access -- RS_MBSetConfig(Com,,SuperCom.MODBUS.MODBUS_MODE_RTU,,); if (RS_MBReadCoil (Com, SLAVE_ID, wCoil, &Buffer)) { printf("Coil[%d] = %s ", wCoil, Buffer?"TRUE":"FALSE"); } else { int ErrorCode = RS_MBGetLastError(Com); if (ErrorCode == MB_ERR_EXCEPTION) printf("Exception %02X reported from server ", RS_MBGetException(Com)); else printf("Error %d", ErrorCode); } ComReset(Com);
  C/C++    C#    Delphi    Visual Basic


The above samples are nearly complete programs. More Init-Sequences can be found here.


2. Read/Write Registers


   #define SLAVE_ID  1
   TCOMMID Com = COM_2; // Com index e.g. using serial port COM2

   WORD Buffer [10];
   WORD wStart=0x0000;
   WORD wCount=1;
   WORD wValue=0x0020;
   -- Init Sequence (see above) --

   if (RS_MBWriteRegister(Com, SLAVE_ID, wStart, wValue))
       printf ("Read Success.\n");
       printf ("Error: %d\n", RS_MBGetLastError(Com));

   if (RS_MBReadHoldingRegisters(Com,
       printf("Read %d Register:", wCount);
       for (int i=0; i<wCount; i++)  printf ("%4X",Buffer[i]);
       printf ("Error: %d\n", RS_MBGetLastError(Com));

  C/C++    C#    Delphi    Visual Basic


A possible MODBUS gateway graph. A possible MODBUS bridge graph.

Capture, Store, Forward - MODBUS Slave or Gateway functions
Communication at lower data packet level is possible thus allowing to capture, store and forward of MODBUS data packets or transmit replies. Monitoring MODBUS data packets, simulating a MODBUS Slave or building a protocol converter / gateway is possible. Simulating a MODBUS Slave can be very handy while testing the software (slave examples available).

Supported Protocols
The SuperCom MODBUS Library enables secure and stable data communications with different Modbus devices from different manufacturers. It supports almost all known Modbus options and variations.

The SuperCom MODBUS Library implements the standard MODBUS protocol for serial and TCP/IP connections* based on the official specification by the MODBUS organization. SuperCom supports MODBUS ASCII and MODBUS RTU protocol with serial interfaces (RS-232, RS-422, RS-485, Modem, TAPI) and the MODBUS TCP/IP (MODBUS/TCP) and Open MODBUS TCP with TCP/IP networks.
*A corresponding SuperCom license (Serial and/or TCP/IP) assumed.

The SuperCom MODBUS Protocol Library is a very complete MODBUS protocol stack!

Also included, non standard variants of the MODBUS protocol e.g. RTU over IP (also known as MODBUS RTU/IP, MODBUS RTU over TCP) enable the SuperCom application to talk to OMTS devices (OMTS = Out of the MODBUS TCP/IP specification). Since not an official specification, additional names and variants may exists.

Small SuperCom MODBUS Server examples can be found here.


How to use?

The SuperCom MODBUS Protocol Protocol Library can be used over any communication link supported by SuperCom (currently Serial (RS-232, RS-422, RS-485, Modem, TAPI), TCP/IP, ISDN). For a list of available SuperCom packages containing MODBUS protocol, see the following chart.

The use of one common API for Serial, TCP/IP and ISDN applies here too.

MODBUS Server Simulator

Speeds up development process. Create your own Modbus devices to test or deliver using a few functions only.

The Modbus server support included in this software also provides Modbus simulator software. Especially in the SuperCom Suite package. An easy to use and fast working test environment to deliver quality software. It also supports the creation of software based (virtual) Modbus devices for Modbus clients.

License Information

Executables developed using SuperCom MODBUS Protocol Module can be distributed royalty free. More ...

Supported compilers

C#, C++, Delphi, Visual C++, Visual Basic, Visual Basic NET, C++ Builder, Borland C/C++, Microsoft C/C++, MinGW, Borland Pascal, Java, LabVIEW, PowerBuilder, Python, PureBasic, VBA and other Windows programming tools (MS .NET ?).


for C/C++, C#, Visual C++, C++ Builder, Java, Delphi, Pascal, Python, Visual Basic, Visual Basic NET (VB .NET), LabVIEW, PureBasic, ...

The SuperCom Suite contains more example programs and especially Modbus Slaves samples supporting multiple clients.

Technical Support

As with all SuperCom products, free technical support is included. In addition to the large amount of functions contained in the SuperCom software, our customers can enjoy our extensive Insider Infos and many more to assist in even difficult constellations.

PDF Documents:


A flexible and portable library for use in Windows or Linux Applications*.

* Please select the corresponding Windows or Linux product numbers.


What to order?

You will find promotional combinations with MODBUS (e.g. SuperCom Serial incl. MODBUS, SuperCom for TCP/IP incl. MODBUS, SuperCom Protocol Engine, SuperCom Suite).

Note: The order code 638 or 638400 is needed only when the MODBUS protocol module is ordered later in addition to a SuperCom package. The most preferable way (incl. the best price) is buying one package from the above pricelist already including the MODBUS functionality.



Q: I need to connect to many different Modbus server.
A: Using the SuperCom Modbus software library an application can simoultaneously connect (see also SuperCom Suite to many different Modbus server using connections over serial cable, modem, TCP/IP, ISDN, GSM etc.

Q: Is it possible to convert serial Modbus/RTU or ASCII Data to Modbus/TCP ?
A: Yes! The SuperCom Suite supports serial and TCP/IP connection. With SuperCom Suite it is very easy to handle simoultenesouly many serial and TCP connections. Next, the low-level Modbus functions receive serial Modbus data and forward it via Modbus TCP and vice versa. This way you build easily a COM-Server simulator (Gateway) in your application.

Q: I need to simulate devices mainly for testing
A: Using the SuperCom Modbus Server (slave) functionality one can create one or more Modbus server within the same application and simulate many different Modbus devices. Only a few functions involved. The SuperCom Modbus server is handling requests automatically or, if required, reports to the application for manual handling.
It really requires little code to build a Modbus server and many samples included to begin with.


What developers say

... and the client is now polling real fast consuming low CPU. Great support.
Rob, USA.

I'm really impressed. Very sophisticated software that works fast and is flexible to use. Excelent work guys!
Pete, UK.

Great library, the GUI is not blocked.
Ch.., USA.

The slave application works like a charm.
Jon, Australia.

We were really surprised by the short reaction times and how smoothly it works even on multiple concurrent TCP connections.
M.., Poland.

Works faster than expected!
S.., France.

... issue solved, thanks.
P.., The Netherlands.


MODBUS library | MODBUS RTU | MODBUS ASCII | MODBUS TCP | MODBUS over IP | MODBUS Serial Library | MODBUS RS-485 | MODBUS Slave | MODBUS sample C, C++, C#, Pascal, Delphi, Java, Pascal, Python, LabView, Visual Basic, VBA | MODBUS C library | MODBUS C++ library | MODBUS C# library | MODBUS Delphi library | MODBUS Pascal library | MODBUS Visual Basic library | LabVIEW Modbus library | MODBUS RTU example | MODBUS C Code Example | MODBUS slave simulator

Home   Back

Info about ADONTEC
It Simply Works!

Updated on: 2024-05-16 15:29:24