Description
This function block calculates the device's total power-on time. The output is measured in hours, with cumulative accuracy to the minute and displays accuracy to 0.1 hour. The value can be saved during a power failure with a tolerance of 30 minutes.
Function
Input: The block begins accumulating time when the input status is 1, and it stops when the status is 0.
Total Time(h): The total time in hours when the input status is 1. If the cumulative and display accuracies are 1 minute and 0.1 hour, respectively, then the total time increases by 0.1 hour each time the status reaches 6 minutes, regardless of whether the 6 minutes are calculated continuously.
Reset: When the reset input value is 1, it resets the output of "Total Time(h)" to 0; when the reset input value is 0, it resets the output of Total Time(h) to re-accumulate the time from 0.
Input
PIN | Description |
|---|---|
Input | Boolean |
Reset | Boolean |
Output
PIN | Data type | Range | Default value | Description |
|---|---|---|---|---|
Total Time(h) | Analog | 0...999999 | 0 | Display accuracy: 0.1 hour |
Example 1
Automatic accumulation of fan run time: