SuperCom - MODBUS Slave Protocol Library

Modbus Slave Functionality, Example

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.

Perform easily Modbus Master or Modbus Slave device functionality in you application written for example with C++, C#, Delphi, Visual Basic (incl. NET), Java, etc.

The SuperCom MODBUS Protocol Library 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 that can communicate data packets over serial and TCP/IP connections thus saving valuable time, reducing costs and ensuring quality results.

Using the SuperCom MODBUS Protocol Library a Modbus slave simulation is created with just a few code lines. A fast and short Modbus slave program that provides the functionality expected and required.

Library for MODBUS master and slave. MODBUS driver RTU and ASCII. Portable API for serial (RS-232, RS-485) communication or TCP/IP communication. Delphi modbus-library, C++ modbus, Java modbus library, C#, Visual Basic. Serial and TCP/IP Data Communications, Modbus protocol library, driver. One API for Serial communication or TCP/IP communication.

The SuperCom MODBUS Protocol Library supports data communication between devices connected to a serial port, on a bus system (RS-485) or ethernet 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).

There is only one API to learn! The same functions and parameters with any type of connection supported by SuperCom (e.g. Serial, TCP/IP, Modem, TAPI, ISDN) 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.

A MODBUS Slave Examples

The MODBUS Slave receives the MODBUS requests, adjusts its internal states (internal MODBUS memory) according to the request and responds by transmitting the appropriate reply.

  [ Delphi ]    [ C# ]

Pascal, Delphi

// Install the Slave
Writeln('SuperCom MODBUS Slave sample');

      // create instance for TCP Server
TcpServer := TMyTcpServer.Create(ServerIP, SLAVE_ID, 0);

If TcpServer.IsTCPServerListen() = TRUE Then ... // Running

// Function that handles the remote Master / Client requests
Procedure PerformMBSlave;
   While clCOM.Connected() DO
        // perform whatever required
      RS_MBHandleRequests(clCOM.PLCId, clCOM.PLCOptions, ..);


The above is a short example of a Modbus slave device simulation. The product files contain different slave examples for different compiler e.g. C, C++, Delphi, C#, VB.NET.
Get the PDF document with more information and images of some of the included sample programs.

The above was a short introduction to the SuperCom Modbus Slave functionality. Please also visit the main information page. More.


MODBUS Slave simulation | MODBUS Slave library | MODBUS RTU | MODBUS ASCII | MODBUS TCP | MODBUS over IP | MODBUS Serial Library | MODBUS RS-485 | MODBUS Slave | MODBUS Slave sample C, C++, C#, Pascal, Delphi, Java, Visual Basic, VBA | MODBUS C library | MODBUS C++ library | MODBUS Delphi library | MODBUS Pascal library | MODBUS VB library | MODBUS RTU Slave example | MODBUS C Code Example

Home    Back
Modified at:

Info about ADONTEC
It Simply Works!