Skip to content

Commit

Permalink
fix template build
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu committed Nov 24, 2023
1 parent 7e60a97 commit b1f0b43
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cake/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public override void Run(BuildContext context)
Path.Combine(context.ScrDir, "sanbox\\integration\\ix-integration-plc\\"),
Path.Combine(context.ScrDir, "AXSharp.examples\\hello.world.console\\hello.world.console.plc"),
Path.Combine(context.ScrDir, "AXSharp.connectors\\tests\\ax-test-project\\"),
Path.Combine(context.ScrDir, "tests.integrations\\integrated\\src\\ax\\")
Path.Combine(context.ScrDir, "tests.integrations\\integrated\\src\\ax\\"),
Path.Combine(context.TemplatesDir, "working\\templates\\axsharpblazor\\ax\\")
};


Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"OutputProjectFolder":"..\\axsharpblazor.twin","UseBase":false,"NoDependencyUpdate":false,"ProjectFile":"axsharpblazor.csproj"}
{"OutputProjectFolder":"..\\axsharpblazor.twin","UseBase":false,"NoDependencyUpdate":false,"IgnoreS7Pragmas":false,"ProjectFile":"axsharpblazor.csproj"}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ CONFIGURATION MyConfiguration
TASK Main(Interval := T#10ms, Priority := 1);
PROGRAM P1 WITH Main: MyProgram;

VAR_GLOBAL
VAR_GLOBAL
{S7.extern=ReadWrite}
counters : counters;
END_VAR
END_CONFIGURATION
2 changes: 2 additions & 0 deletions templates/working/templates/axsharpblazor/ax/src/counters.st
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

{S7.extern=ReadWrite}
CLASS Counters
VAR PUBLIC
{#ix-attr:[Container(Layout.Wrap)]}
Expand All @@ -12,6 +13,7 @@ CLASS Counters
END_VAR
END_CLASS

{S7.extern=ReadWrite}
CLASS PUBLIC Counter
VAR PUBLIC
{#ix-set:AttributeName = "Number of revolutions"}
Expand Down

0 comments on commit b1f0b43

Please sign in to comment.