Skip to content

Commit

Permalink
Read Rack/Slot from CPU/CP fixes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
jogibear9988 committed Oct 7, 2014
1 parent 8dc1367 commit 470d119
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 3 deletions.
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DotNetSiemensPLCToolBoxLibrary.DataTypes.Projectfolders
{
public interface IHardwareFolder
{
int Rack { get; set; }
int Slot { get; set; }
}
}
@@ -1,8 +1,11 @@
namespace DotNetSiemensPLCToolBoxLibrary.DataTypes.Projectfolders.Step7V5
{
public class CPFolder : Step7ProjectFolder
public class CPFolder : Step7ProjectFolder, IHardwareFolder
{
internal int UnitID;
internal int TobjTyp;
internal int TobjTyp;

public int Rack { get; set; }
public int Slot { get; set; }
}
}
@@ -1,11 +1,14 @@
namespace DotNetSiemensPLCToolBoxLibrary.DataTypes.Projectfolders.Step7V5
{
public class CPUFolder : Step7ProjectFolder
public class CPUFolder : Step7ProjectFolder, IHardwareFolder
{
internal int UnitID;
internal int TobjTyp;
public PLCType CpuType { get; set; }

public string PasswdHard { get; set; }

public int Rack { get; set; }
public int Slot { get; set; }
}
}
Expand Up @@ -107,6 +107,7 @@
<Compile Include="DataTypes\MultiLanguangeString.cs" />
<Compile Include="DataTypes\Pointer.cs" />
<Compile Include="DataTypes\MnemonicLanguage.cs" />
<Compile Include="DataTypes\Projectfolders\IHardwareFolder.cs" />
<Compile Include="DataTypes\Projectfolders\IProjectFolder.cs" />
<Compile Include="DataTypes\Projectfolders\Step7V11\TIASymbolTableEntry.cs" />
<Compile Include="DataTypes\Projectfolders\Step7V11\TIABlocksFolder.cs" />
Expand Down
12 changes: 12 additions & 0 deletions LibNoDaveConnectionLibrary/Projectfiles/Step7ProjectV5.cs
Expand Up @@ -429,6 +429,9 @@ override internal void LoadProject()
y.Name = ((string)row["Name"]).Replace("\0", "");
if ((bool)row["DELETED_FLAG"]) y.Name = "$$_" + y.Name;
y.ID = (int)row["ID"];

y.Rack = (int)row["SUBSTATN"];
y.Slot = (int)row["MODULN"];
}
}
}
Expand All @@ -452,6 +455,9 @@ override internal void LoadProject()
y.Name = ((string)row["Name"]).Replace("\0", "");
if ((bool)row["DELETED_FLAG"]) y.Name = "$$_" + y.Name;
y.ID = (int)row["ID"];

y.Rack = (int)row["SUBSTATN"];
y.Slot = (int)row["MODULN"];
}
}
}
Expand Down Expand Up @@ -514,6 +520,9 @@ override internal void LoadProject()
y.Name = ((string)row["Name"]).Replace("\0", "");
if ((bool)row["DELETED_FLAG"]) y.Name = "$$_" + y.Name;
y.ID = (int)row["ID"];

y.Rack = (int)row["SUBSTATN"];
y.Slot = (int)row["MODULN"];
}
}
}
Expand Down Expand Up @@ -572,6 +581,9 @@ override internal void LoadProject()
{
y.Name = ((string)row["Name"]).Replace("\0", "");
if ((bool)row["DELETED_FLAG"]) y.Name = "$$_" + y.Name;

y.Rack = (int)row["SUBSTATN"];
y.Slot = (int)row["MODULN"];
}
}
}
Expand Down
Binary file modified compiled/DotNetSiemensPLCToolBoxLibrary.dll
Binary file not shown.
Binary file modified compiled/JFK-ProtokollerConfigurationTool.exe
Binary file not shown.
Binary file modified compiled/JFK-ProtokollerLibrary.dll
Binary file not shown.
Binary file modified compiled/JFK-ProtokollerService.exe
Binary file not shown.
Binary file modified compiled/Kopplungstester.exe
Binary file not shown.
Binary file modified compiled/ToolboxForSiemensPLCs.exe
Binary file not shown.
Binary file modified compiled/WPFToolboxForSiemensPLCs.exe
Binary file not shown.
Binary file modified compiled/WPFVarTab.exe
Binary file not shown.
Binary file modified compiled/en/DotNetSiemensPLCToolBoxLibrary.resources.dll
Binary file not shown.
Binary file modified compiled/es/DotNetSiemensPLCToolBoxLibrary.resources.dll
Binary file not shown.

0 comments on commit 470d119

Please sign in to comment.