Getting started - Manual - SIMATIC AX - System and Runtime clock functionality. - Siemens.Simatic.S71500.Clocks,library

Siemens.Simatic.S71500.Clocks library

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
6.0.37
Edition
11/2023
Language
English (original)
Package Name
@ax/simatic-1500-clocks

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.