FOCUS Software Engineering is now part of proconX   

General Description

Introduction

This FieldTalk Modbus® Master Library - Delphi Edition is library which provides connectivity to Modbus slave compatible devices and applications.

It is implemented as a VCL and CLX class library. The VCL/CLX classes wrap around a libmbusmaster DLL which performs the core protocol functions. The libmbusmaster DLL is based on the FieldTalk Modbus Master Protocol C++ Edition, a proven and industrial-strength Modbus implementation.

Typical applications are supervisory control systems, data concentrators and gateways, user interfaces and factory information systems.

Features:

  • Robust design suitable for real-time and industrial applications
  • Full implementation of Class 0 and Class 1 Modbus functions as well as a subset of the most commonly used Class 2 functions
  • Standard Modbus boolean and 16-bit integer data types
  • Support for 32-bit integer, modulo-10000 and float data types
  • Configurable word alignment for 32-bit types (big-endian, little-endian)
  • Support of Broadcasting
  • Failure and transmission counters
  • Transmission and connection time-out supervision
  • Detailed transmission and protocol failure reporting using error codes
  • Multi-platform design
  • Scalable: you can use serial protocols only or TCP/IP or all of them
  • Customized modifications and development of add-ons available

Library Structure

The library is organised into one class for each Modbus master protocol flavour and a common base class, which applies to all protocol flavours. Because the two serial protocols ASCII and RTU share some common code, an intermediate base class implements the functions specific to serial protocols.

mbusmaster_inherit.gif
The base class TMbusMasterFunctions contains all protocol unspecific functions, in particular the data and control functions defined by Modbus. All protocol flavours inherit from this base class.

The class TMbusAsciiMasterProtocol implements the Modbus ASCII protocol, the class TMbusRtuMasterProtocol implements the Modbus RTU protocol and the class TMbusTcpMasterProtocol implements the MODBUS/TCP protocol.

In order to use one of the three master protocols, the desired protocol flavour class has to be instantiated:

TMbusRtuMasterProtocol mbusProtocol;

After a protocol object has been declared and opened, data and control functions can be used:

mbusProtocol.writeSingleRegister(slaveId, startRef, 1234);

Overview

   Back | Top of page Info | Support | Contact | About   
Information in this document is subject to change without notice. Copyright © 2000-2013 proconX Pty Ltd. All rights reserved.
All product and brand names mentioned on this page may be trademarks or registered trademarks of their respective owners.