Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@
<ProjectReference Include="..\AXSharp.Connector\AXSharp.Connector.csproj" />
</ItemGroup>

<ItemGroup>
<ItemGroup>
<PackageReference Include="GitVersion.MsBuild" Version="5.10.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<None Include="..\..\..\..\assets\icons\icon_128_128.png" Link="icon_128_128.png">
<PackagePath>\</PackagePath>
<Pack>True</Pack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="GitVersion.MsBuild" Version="5.10.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

}
}
35 changes: 35 additions & 0 deletions src/AXSharp.tools/src/AXSharp.TIA2AXTool/README.md
Original file line number Diff line number Diff line change
@@ -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.


Expand Down