Auto: s7-d1 — TIA Portal CSV + STEP 7 Classic AWL symbol import

Closes #299
This commit is contained in:
Joseph Doherty
2026-04-26 06:32:18 -04:00
parent ac3fd45cc6
commit a908dff7b5
20 changed files with 2526 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
(* Sample STEP 7 Classic AWL file — PR-S7-D1 / #299 fixture.
Carries a VAR_GLOBAL block (M-area sequential offsets) and a
DATA_BLOCK (DB1, sequential DBW/DBD offsets). Comments stripped
before declaration parsing so this preamble does not affect counts.
*)
VAR_GLOBAL
// M-area globals — assigned sequentially: MW0, MW2, MD4
Speed : INT; // motor speed setpoint
Pressure : INT; // pressure transducer
ActualValue : REAL;
END_VAR
DATA_BLOCK DB1
TITLE = 'Sample DB'
VERSION : 0.1
STRUCT
CycleCount : INT; (* runtime cycle counter *)
Setpoint : REAL := 50.0; (* setpoint with init *)
ActualValue : REAL;
RunFlag : BOOL;
Recipe : STRING[20];
END_STRUCT;
BEGIN
END_DATA_BLOCK

View File

@@ -0,0 +1,9 @@
Name,Path,Data type,Logical address,Comment,Hmi accessible,Hmi visible,Hmi writeable,Length
ProbeWord,Default tag table,UInt,%MW0,Probe word for liveness,True,True,True,
SmokeI16,Default tag table,Int,%DB1.DBW10,Signed 16-bit smoke tag,True,True,True,
SmokeI32,Default tag table,DInt,%DB1.DBD20,Signed 32-bit smoke tag,True,True,True,
SmokeF32,Default tag table,Real,%DB1.DBD30,32-bit float smoke tag,True,True,True,
SmokeBool,Default tag table,Bool,%DB1.DBX50.3,Boolean smoke tag,True,True,True,
RecipeName,Default tag table,String,%DB2.DBB0,Recipe name string,True,True,True,32
CookerCfg,Default tag table,"CookerSettings",%DB10.DBB0,UDT placeholder — wait for D2,True,True,True,
HiddenInternal,Default tag table,Int,%MW100,Internal symbol — should be filtered,False,False,False,
1 Name Path Data type Logical address Comment Hmi accessible Hmi visible Hmi writeable Length
2 ProbeWord Default tag table UInt %MW0 Probe word for liveness True True True
3 SmokeI16 Default tag table Int %DB1.DBW10 Signed 16-bit smoke tag True True True
4 SmokeI32 Default tag table DInt %DB1.DBD20 Signed 32-bit smoke tag True True True
5 SmokeF32 Default tag table Real %DB1.DBD30 32-bit float smoke tag True True True
6 SmokeBool Default tag table Bool %DB1.DBX50.3 Boolean smoke tag True True True
7 RecipeName Default tag table String %DB2.DBB0 Recipe name string True True True 32
8 CookerCfg Default tag table CookerSettings %DB10.DBB0 UDT placeholder — wait for D2 True True True
9 HiddenInternal Default tag table Int %MW100 Internal symbol — should be filtered False False False

View File

@@ -0,0 +1,6 @@
Name;Path;Data type;Logical address;Comment;Hmi accessible;Hmi visible;Hmi writeable;Length
ProbeWort;Standard-Variablentabelle;UInt;%MW0;Probe-Wort für Liveness;WAHR;WAHR;WAHR;
SmokeI16;Standard-Variablentabelle;Int;%DB1.DBW10;Vorzeichenbehaftete 16-bit;WAHR;WAHR;WAHR;
SmokeBool;Standard-Variablentabelle;Bool;%DB1.DBX50,3;Boolescher Smoke-Tag;WAHR;WAHR;WAHR;
SmokeReal;Standard-Variablentabelle;Real;%DB1.DBD30;32-bit float;WAHR;WAHR;WAHR;
VerstecktInternal;Standard-Variablentabelle;Int;%MW100;Internes Symbol — herausgefiltert;FALSCH;FALSCH;FALSCH;
1 Name Path Data type Logical address Comment Hmi accessible Hmi visible Hmi writeable Length
2 ProbeWort Standard-Variablentabelle UInt %MW0 Probe-Wort für Liveness WAHR WAHR WAHR
3 SmokeI16 Standard-Variablentabelle Int %DB1.DBW10 Vorzeichenbehaftete 16-bit WAHR WAHR WAHR
4 SmokeBool Standard-Variablentabelle Bool %DB1.DBX50,3 Boolescher Smoke-Tag WAHR WAHR WAHR
5 SmokeReal Standard-Variablentabelle Real %DB1.DBD30 32-bit float WAHR WAHR WAHR
6 VerstecktInternal Standard-Variablentabelle Int %MW100 Internes Symbol — herausgefiltert FALSCH FALSCH FALSCH