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

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 1ms. 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".

Parameters:

Name Type Section Description
LTIME Return value Provides the current operating time of the PLC in the range 0 to 2^31 -1 ms.