mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-17 14:28:25 +08:00
feat: Stub PLC WriteClock methods
This commit is contained in:
@@ -326,6 +326,18 @@ namespace S7.Net
|
||||
return ParseClockReadResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Write the PLC clock value.
|
||||
/// </summary>
|
||||
/// <param name="value">The date and time to set the PLC clock to</param>
|
||||
/// <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.</returns>
|
||||
public async Task WriteClockAsync(System.DateTime value, 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>
|
||||
|
||||
@@ -504,6 +504,15 @@ namespace S7.Net
|
||||
return ParseClockReadResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write the PLC clock value.
|
||||
/// </summary>
|
||||
/// <param name="value">The date and time to set the PLC clock to.</param>
|
||||
public void WriteClock(System.DateTime value)
|
||||
{
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user