GetOperatingTime - Manual - SIMATIC AX - System and Runtime clock functionality - Siemens.Simatic.Clocks,library

Siemens.Simatic.Clocks library

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
11.0.14
Edition
10/2025
Language
English (original)
Package Name
@ax/simatic-clocks

Returns the value of a time counter that counts from 0 to a maximum of 2147483647 ms (about 24 days). In the event of an overflow, the time is restarted at 0. The accuracy is 1 ms. The time value is influenced by the operating modes of the PLC.

The following table provides an overview of how the operating time value is updated depending on the operating mode of the PLC:

Operating mode Operating time
Startup Constantly updated.
RUN Constantly updated.
STOP Stopped, and retains the current value.
Warm restart Deleted and restarts with "0".