Skip to content

Commit

Permalink
Stub PLC ReadClock methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mycroes committed Aug 23, 2023
1 parent 0de9364 commit 6fc526b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions S7.Net/PlcAsynchronous.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,17 @@ public async Task<List<DataItem>> ReadMultipleVarsAsync(List<DataItem> dataItems
return dataItems;
}

/// <summary>
/// Read the PLC clock value.
/// </summary>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is None.
/// Please note that cancellation is advisory/cooperative and will not lead to immediate cancellation in all cases.</param>
/// <returns>A task that represents the asynchronous operation, with it's result set to the current PLC time on completion.</returns>
public async Task<System.DateTime> ReadClockAsync(CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}

/// <summary>
/// Read the current status from the PLC. A value of 0x08 indicates the PLC is in run status, regardless of the PLC type.
/// </summary>
Expand Down
9 changes: 9 additions & 0 deletions S7.Net/PlcSynchronous.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,15 @@ public void ReadMultipleVars(List<DataItem> dataItems)
}
}

/// <summary>
/// Read the PLC clock value.
/// </summary>
/// <returns>The current PLC time.</returns>
public System.DateTime ReadClock()
{
throw new NotImplementedException();
}

/// <summary>
/// Read the current status from the PLC. A value of 0x08 indicates the PLC is in run status, regardless of the PLC type.
/// </summary>
Expand Down

0 comments on commit 6fc526b

Please sign in to comment.