Skip to content

Commit e5ba83d

Browse files
authored
Merge pull request #13 from rwp0001/dev
more reporting fixes
2 parents 9e2b436 + 0a6ac33 commit e5ba83d

File tree

6 files changed

+540
-439
lines changed

6 files changed

+540
-439
lines changed

CnE2PLC.PLC/Controller.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public Controller(XmlNode node)
1414
{
1515
try
1616
{
17-
LogHelper.DebugPrint("Creating Controller");
17+
LogHelper.DebugPrint("Creating Controller.");
1818

1919
if (node == null) throw new ArgumentNullException(nameof(node));
2020

@@ -42,6 +42,8 @@ public Controller(XmlNode node)
4242
foreach (XmlNode p_node in programs.ChildNodes) Programs.Add(new Program(p_node));
4343

4444
UpdateCounts();
45+
46+
LogHelper.DebugPrint($"Controller {ToString()} was imported.");
4547
}
4648
catch (Exception ex)
4749
{

CnE2PLC.PLC/XTO/Pumps.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,18 @@ public Motor_VFD(XmlNode node) : base(node) {
5151
public bool? AutoFixedSpd { get; set; }
5252
#endregion
5353

54-
public override void ClearCounts() { }
54+
#region Tag Counts
55+
56+
public int FTR_Count { get; set; }
57+
public int FTS_Count { get; set; }
58+
59+
#endregion
60+
61+
public override void ClearCounts()
62+
{
63+
FTR_Count = 0;
64+
FTS_Count = 0;
65+
}
5566

5667
}
5768

@@ -263,7 +274,7 @@ public override void ClearCounts() { }
263274
/// <summary>
264275
/// Run-Time Hours
265276
/// </summary>
266-
public float? RT_Hours { get; set; }
277+
public float? RT_Hours { get; set; }
267278

268279
/// <summary>
269280
/// Reset Run-time hours

0 commit comments

Comments
 (0)