
This Function Block UPTIME counts how long a device has been switched on.
Note: This Function Block should not be used together with the Function Block LOGGER. Instead, use the Function Block RT_UPTIME.
If the input is true, the runtime is calculated at output Q. When switched off, the time is stored and counted further upon re-invocation.
The runtime can be reset via the input. As soon as the input is false again, the time measurement starts from the beginning.
The input can be used to shorten the PLC runtime. For this purpose, a time is specified at input PT. If, for example, T#1s is used, then output Q is only issued every second. When the time measurement is completed, the value Q is immediately issued.
The output returns the measured runtime in the format T#.