feat: Stub PLC WriteClock methods

This commit is contained in:
Michael Croes
2023-08-31 19:55:41 +02:00
parent 1969aac1b2
commit f419df4d73
2 changed files with 21 additions and 0 deletions

View File

@@ -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>

View File

@@ -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>