snap7

Ethernet communication suite for native Siemens S7 PLC interaction

brewmacoslinux
Try with needOr install directly
Source

About

Ethernet communication suite that works natively with Siemens S7 PLCs

Commands

snap7

Examples

Connect to a Siemens S7 PLC and read data from memory area$ snap7 -ip 192.168.1.100 -rack 0 -slot 1 -read -area DB -db 1 -start 0 -size 100
Write data to a PLC's data block$ snap7 -ip 192.168.1.100 -rack 0 -slot 1 -write -area DB -db 1 -start 0 -data 'your_hex_data'
List available PLCs on the network$ snap7 -scan -ip 192.168.1.0/24