Install with Apax:
apax add @ax/simatic-1500-clocks
Add the namespace in your ST code:
USING Siemens.Simatic.S71500.Clocks;
| Classes | Description |
|---|---|
| RuntimeMeasurement | Accurately measure elapsed time. |
| Functions | Description |
|---|---|
| GetOperatingTime | Get the length of time for which the PLC has been running. |
| GetSystemDateTime | Get current date and time (UTC). |
| RuntimeMeter | Controls an operating hours counter. |
| SetSystemDateTime | Set current date and time (UTC). |
| SynchronizeSlaveClocks | Transfer PLC date and time to clock slaves on the network. |