libplctag/libplctag
FreeThis C library provides a portable and simple API for accessing Allen-Bradley and Modbus PLC data over Ethernet.
About libplctag/libplctag
libplctag is an open source C library for reading and writing tags in Programmable Logic Controllers (PLCs) over Ethernet. It supports both EtherNet/IP (Allen-Bradley) and Modbus TCP protocols, running on Linux, Windows, and macOS. In production since early 2012, the library is used for industrial automation tasks including controlling radio telescopes, precision manufacturing, fitness equipment, and food handling. Key features include a stable and simple API, low memory footprint, high performance, extensive example programs, and language wrappers for C#/.NET, Julia, and others. The library is licensed under MPL 2.0 or LGPL 2+ and is free to use.
Key Features
Pros & Cons
- Free and open source with permissive licensing
- Cross-platform support (Linux, Windows, macOS)
- Stable and field-tested since 2012
- High performance with low memory footprint
- Simple API with bindings for multiple languages
- Comprehensive documentation and example code
- Only supports EtherNet/IP and Modbus TCP protocols
- Requires direct network connectivity to PLCs
- Native usage requires knowledge of C programming