libplctag

Read and write data from Allen-Bradley PLCs over Ethernet

brewmacoslinux
Try with needOr install directly
Source

About

Portable and simple API for accessing AB PLC data over Ethernet

Examples

read a tag value from a PLC device$ plctag_cpp_example 192.168.1.100 MyTag
write data to a PLC tag over network$ plctag_cpp_example 192.168.1.100 MyTag 12345
connect to AB PLC and monitor tag changes$ libplctag-read-tag -a 'protocol=ab-eip&gateway=192.168.1.100&path=1,0&plc=ControlLogix&elem_size=4&elem_count=1&name=MyTag'
integrate PLC communication into C or C++ application$ gcc -o plc_app app.c -lplctag
poll multiple PLC tags periodically and log values$ plctag_cpp_example 192.168.1.100 Tag1 Tag2 Tag3 --interval 1000