diff --git a/src/AXSharp.connectors/src/AXSharp.TIA.Connector/AXSharp.TIA2AXSharp.csproj b/src/AXSharp.connectors/src/AXSharp.TIA.Connector/AXSharp.TIA2AXSharp.csproj index 22f233d4..53470325 100644 --- a/src/AXSharp.connectors/src/AXSharp.TIA.Connector/AXSharp.TIA2AXSharp.csproj +++ b/src/AXSharp.connectors/src/AXSharp.TIA.Connector/AXSharp.TIA2AXSharp.csproj @@ -35,7 +35,14 @@ - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + \ True diff --git a/src/AXSharp.tools/src/AXSharp.TIA2AXTool/AXSharp.TIA2AXTool.csproj b/src/AXSharp.tools/src/AXSharp.TIA2AXTool/AXSharp.TIA2AXTool.csproj index d3b346af..99155678 100644 --- a/src/AXSharp.tools/src/AXSharp.TIA2AXTool/AXSharp.TIA2AXTool.csproj +++ b/src/AXSharp.tools/src/AXSharp.TIA2AXTool/AXSharp.TIA2AXTool.csproj @@ -35,6 +35,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/AXSharp.tools/src/AXSharp.TIA2AXTool/Properties/launchSettings.json b/src/AXSharp.tools/src/AXSharp.TIA2AXTool/Properties/launchSettings.json index 1a94864d..e105d394 100644 --- a/src/AXSharp.tools/src/AXSharp.TIA2AXTool/Properties/launchSettings.json +++ b/src/AXSharp.tools/src/AXSharp.TIA2AXTool/Properties/launchSettings.json @@ -15,7 +15,10 @@ "tia2ax4": { "commandName": "Project", "commandLineArgs": "-i 172.20.30.110 -o D:\\test.json -s TGlobalVariablesDB.myArrayString[0]" + }, + "luki": { + "commandName": "Project", + "commandLineArgs": "-i 10.10.10.150 -o c:\\_TiaDataAx\\test.json -d DB_DataToTestAX" } - } } diff --git a/src/AXSharp.tools/src/AXSharp.TIA2AXTool/README.md b/src/AXSharp.tools/src/AXSharp.TIA2AXTool/README.md index e718a58a..3f5c2d59 100644 --- a/src/AXSharp.tools/src/AXSharp.TIA2AXTool/README.md +++ b/src/AXSharp.tools/src/AXSharp.TIA2AXTool/README.md @@ -1,5 +1,40 @@ # TIA2AXTool +## Installation + +To install the tool run the following command. +~~~ +dotnet tool install AXSharp.TIA2AXTool --global +~~~ + +Or copy `dotnet-tools.json` in your local folder + +~~~~ +{ + "version": 1, + "isRoot": true, + "tools": { + "axsharp.tia2axtool": { + "version": YOUR_VERSION, + "commands": [ + "tia2ax" + ] + } + } +} +~~~~ + +and run + +~~~ +dotnet tool restore +~~~ + +## How to prepare TIA portal project + +[!Video https://youtu.be/d9EX2FixY1A?t=151] + + TIA2AXTool is simple CLI program, which is used for generation of AX# TwinObjects in form of Json from TIA datablocks. Output of CLI command is .json file which contains list of TIABrowseElements. This .json file can be deserialized into `TIARootObject` which than can be used for data exchange operations between TIA based plc and .NET application.