Skip to content

Commit

Permalink
HwId changed to WORD (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: MTS\Tomas_K <[email protected]>
  • Loading branch information
TomKovac and MTS\Tomas_K committed Dec 11, 2023
1 parent 77048dd commit 811bb7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tia2ax/V18_0/ApiResolver/ApiWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ private static void ExportHwIdentifiers(PlcItem plcItem, string exportDir)
using (StreamWriter sw = new StreamWriter(filename))
{
sw.WriteLine("TYPE");
sw.WriteLine("\t" + Constants.HwIdentifiersStructName + " : ULINT");
sw.WriteLine("\t" + Constants.HwIdentifiersStructName + " : WORD");
sw.WriteLine("\t(");

if (plcItem.HwIdentifiers != null)
Expand All @@ -843,7 +843,7 @@ private static void ExportHwIdentifiers(PlcItem plcItem, string exportDir)
sw.WriteLine(GetHwIdentItem(hwIdItem));
}
}
sw.WriteLine("\t\tNONE:= ULINT#0");
sw.WriteLine("\t\tNONE:= WORD#0");
sw.WriteLine("\t);");
sw.WriteLine("END_TYPE");
}
Expand All @@ -855,7 +855,7 @@ string GetHwItem(ModuleItem module, AddressItem addressItem)

string GetHwIdentItem(HwIdentifierItem hwIdItem)
{
return "\t\t" + ValidatePlcItem.Name(hwIdItem.Name) + " :=\tULINT#" + hwIdItem.Identifier.ToString() + ",";
return "\t\t" + ValidatePlcItem.Name(hwIdItem.Name) + " :=\tWORD#" + hwIdItem.Identifier.ToString() + ",";
}

string GetPlcItem(ModuleItem module, AddressItem addressItem)
Expand Down

0 comments on commit 811bb7e

Please sign in to comment.