diff --git a/lib/stlxml2awl.py b/lib/stlxml2awl.py index 4b3334b..2c9799f 100644 --- a/lib/stlxml2awl.py +++ b/lib/stlxml2awl.py @@ -349,6 +349,8 @@ def analyze_complexity(blk): def classify(xml_path, complexity): + if complexity.networks == 0: + return "A", "reine Datenablage ohne Programmcode (0 Netzwerke, z.B. GlobalDB)" if complexity.has_pointer_signal: return "C", f"registerindirekte Adressierung ({complexity.register_indirect}x Indirect, {complexity.pointer_arith}x AR-Arithmetik)" name_cat = classify_by_name(xml_path)