Auto: s7-d1 — TIA Portal CSV + STEP 7 Classic AWL symbol import
Closes #299
This commit is contained in:
@@ -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
|
||||
@@ -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,
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user