You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 🧰 cli_modbus_ivsr
Ein kleines CLI-Tool zum **Steuern und Abfragen von Modbus-Sensoren** über **Modbus TCP**.
Gedacht als internes Testwerkzeug, um schnell Messwerte zu lesen oder Sollwerte zu setzen — direkt im Terminal.
---
## 🚀 Features
- Modbus TCP-Unterstützung (pymodbus)
- Zyklisches Auslesen eines Registers (0,5 s Takt, Oneline-Ausgabe mit Zeitstempel)
- Einfaches Setzen eines Sollwerts (Eingabe 035)
- Plattformunabhängig: läuft überall, wo Python 3 läuft (getestet auf macOS & Raspberry Pi / Ubuntu)
---
## 📦 Dateien
- `read.py` — zyklisches Auslesen eines Registers (Start → Eingabe 3. IP-Bereich → Eingabe 4. IP-Bereich → Endlosschleife bis `Ctrl+C`)
- `test.py` — Eingabe eines Sollwerts (035) und Senden an das Gerät
- `requirements.txt` — benötigte Python-Pakete
---
## ⚙️ Voraussetzungen
- Python 3.7+
- `pymodbus` (in `requirements.txt`)
- Netzwerkzugriff auf das Modbus TCP-Gerät
---
## 🔧 Installation (Beispiel mit virtuellem Environment)
```bash
git clone https://github.com/dein-user/cli_modbus_ivsr.git
cd cli_modbus_ivsr
# virtuelles Environment erstellen & aktivieren
python3 -m venv venv
source venv/bin/activate # macOS / Linux
# venv\Scripts\activate # Windows
# Abhängigkeiten installieren
pip install -r requirements.txt

Powered by TurnKey Linux.