Description

This function block is used to calculate the device's total power-on time. The output is measured in hours, with cumulative accuracy in minutes and display accuracy in 0.1 hour. The value can be saved during power failure, with a tolerance of half an hour.

Function

Input: The block starts accumulating time when the input status is 1 and stops when the status is 0.

Total Time(h): Total time in hours when the input status is 1. If the cumulative accuracy and display accuracy are 1 minute and 0.1 hour respectively, the total time increases by 0.1 hour each time the time of status "1" reaches 6 minutes, regardless of whether the 6 minutes are calculated continuously.

Reset: When the reset input value is 1, reset the output of "Total Time(h)" to 0; when the reset input value is 0, reset 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:

NOTICE
Max. eight Total Time(h) function blocks can be added.