Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read Rack/Slot from CPU/CP fixes #18
- Loading branch information
1 parent
8dc1367
commit 470d119
Showing
15 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
LibNoDaveConnectionLibrary/DataTypes/Projectfolders/IHardwareFolder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
7 changes: 5 additions & 2 deletions
7
LibNoDaveConnectionLibrary/DataTypes/Projectfolders/Step7V5/CPFolder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
5 changes: 4 additions & 1 deletion
5
LibNoDaveConnectionLibrary/DataTypes/Projectfolders/Step7V5/CPUFolder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.