Schalter für Einlesen von positions_json in drawdxf etfernt (bat-Datei und Python Skript angepasst)., Sensor dataclass in drawdxf entfernt

get_type_of_name_cfg als Config-basierte Methode statt hardcode geschrieben.
map_sensor_to_cable_cfg als config basierte methode mitsamt kürzung de Kabel, etc..
Erstellung von Betriebsmittelkennzeichner Config.
This commit is contained in:
2025-06-12 10:54:02 +02:00
parent cc36734790
commit 2657117c24
5 changed files with 99 additions and 14 deletions
+38
View File
@@ -0,0 +1,38 @@
# Konfigurationsdatei, welche das Einlesen / Ignorieren bestimmter Blöcke anhand der Betriebsmittelkennzeichnung (BMK) steuert
# Configuration file that controls the reading / ignoring of certain blocks based on the equipment identification (BMK)
# Prefixes, that should be included in Routing-Process
[Routing-Include]
MA # Motor
MB # Ventil
QM # Ventil
BG # Stauesensor
BP # Duckluftschalter
BX # Scanner
# Prefixes, that should be ignored in Routing-Process
[Routing-Ignore]
FC # Motorschutzschalter
PF # Leuchtmelder
DI # Feedback von Gerät
QA # Hauptschütz
SF # Drucktaster an Schaltschrank
# Mapping of Equipment-Prefixes to Cable Types found in kabel.cfg
[Cable-Mapping]
# Format: PREFIX = Cabel-Sekcion[, Section2, ...]
MA = MA
MB = WD_Q
QM = WD_Q
BG = WD_I
BG-829422026 = WD_I-829422026 # Spezialfall für Sensor mit ArtiNr: 829422026
BG-720002003 = WD_I-720002003 # Spezialfall für Sensor mit ArtiNr: 720002003
BX = WF_B, WD_I # Scanner mit zwei benötigten Kabeln
# Adjustment of Cable-Lenght's due to for example existing connection cables on sensor
[Length-Adjustments]
# Format: PREFIX = Length (m) to subtract
BX = 4
+1 -1
View File
@@ -82,7 +82,7 @@
95.0=726001061
# Bezeichner jeder Verbindungsleitung
# Bezeichner jeder Verbindungsleitung (gekürzt)
[Sivasnummern]
725000015=4G1,5mm², Steuerleitung
722001300=M12 St-0°/ M8 Bu-0° 1m