Modbus Source Code Libraries

Modbus is an application layer messaging protocol, positioned at level 7 of the OSI model that provides client/server communication between devices connected on different types of buses or networks. Modbus is a request/reply protocol and offers services specified by function codes. Modbus function codes are elements of Modbus request/reply PDUs.

Triangle MicroWorks’ Software Libraries provide a cost-effective means of supporting industry-standard protocols in your device. Incorporating our royalty-free Software Libraries in your products will shorten development time, freeing internal resources to work on company proprietary aspects of your products.

Triangle MicroWorks Software Libraries are available in two formats: .NET Protocol Components for incorporation in Windows .NET-based products, and ANSI-Standard C Source Code Libraries for all other platforms.


Related Products


  • Conforms to Modbus Application Protocol Specification V1.1.
  • Supports any physical communication network including RS 232/485 (for RTU and ASCII), Modbus Plus, and TCP.
  • Can be used in event-driven or non-event-driven environments.
  • Supports binary data (coils and discrete inputs) and analog data (holding registers and input registers).
  • Supports function codes for read, write, and read/write multiple registers.
  • Simple configuration for big-endian or little-endian byte order.
  • Extensive, built-in (but removable) diagnostics including a protocol analyzer used to visually decipher protocol messages. The diagnostic and analyzer strings can be directed to any target system display device, even a serial port or RAM buffer.
  • Records communication protocol errors such as "Unsupported function code", “Data base errors”, “Address range errors”, “Exception response, FC = xxx, Exception Code = xxx”.
  • No royalty fees per unit sold.

© 2013 Triangle MicroWorks, Inc. All rights reserved.