Runtime Accumulate Function Block
This function accumulates runtime whenever the Input = "true" (non-zero) and the Enable = "true". If Preset is "true", then runtime is set equal to the Preset Value. Runtime is provided in 4 outputs of seconds, minutes, hours and days. From iteration to iteration, the Function Block keeps track of the Runtime Sec.
Depending on the controller type, the Runtime Min is saved over a power outage. The other times like Runtime Hours, Runtime Days are not lost, they are restored from Run Time Min. The Runtime Sec starts at 0 after a power failure, that means up to one minute will be lost then. Only the controllers that can detect a power failure support saving to the flash which is the Compact VAV controller with MS/TP.
The other controllers additionally require a Save Permanent function block to store the time in the flash, otherwise the function block starts at 0. The the example below.
Figure 1: Runtime Accumulate Function Block |
Figure 2: Runtime Accumulate Property Sheet |
Input
Input Name |
Description |
Input |
Input Value Numeric: Binary value 0-1, Default: Null. |
Enable |
Run time accumulate Enable. Numeric: Binary value: 0-1, Default: Null. |
Preset |
Preset input set the accumulator output to Presetvalue. Numeric: Binary value: 0-1, Default: Null. |
PresetValue |
Run time accumulate PresetValue (min). Numeric: 32 Bit Floating value: 0-167772216 (>30 years), Default: Null. |
Table 1: Input of RunTime Accumulate Function
Output
Output Name |
Description |
RunTimeMin |
Run time output in minutes. Depending on the controller, this value is saved in the Flash, that means after a new Power Up of the controller, this value is restored as it was before. That value is the base to restore all the other outputs RunTimeSec, RunTimeHours, RunTimeDays. The value stops at 16777216. RunTimeMin starts at 0 for the controllers that do not support saving to flash. Please see the general description from above of Rumtime Accumulate for the corresponding controllers. Numeric: 32-Bit floating point value, 0-16777216 min (>30 years) |
RunTimeSec |
This value is restored from RunTimeMin after power lost or after a new Preset value. That means max. 59sec are lost after power lost for those controllers, which saves RunTimeMin in the Flash. The value stops at 1006632960 (>30 years). Numeric: 32-Bit floating point value, 0-1006632960 |
RunTimeHrs |
RunTimeHrs This value is restored from RunTimeMin after power lost or after a new Preset value. The value stops at 279620.28 hr. Numeric: 32-Bit floating point value, 0-279620.28 hrs. |
RunTimeDays |
RunTimeDays This value is restored from RunTimeMin after power lost or after a new Preset value. The value stops at 11650.84 days. Numeric: 32-Bit floating point value, 0 - 11650.84 days |
Table 2: Output of RunTime Accumulate Function
Parameters |
Description |
Input Par (In & Par) |
Since this parameter is also available as an input, please refer to the description of the input Input. Default Value: Null |
Enable Par (In & Par) |
Since this parameter is also available as an input, please refer to the description of the input Enable. Default Value: Null |
Preset Par (In & Par) |
Since this parameter is also available as an input, please refer to the description of the input Preset. Default Value: Null |
PresetValue Par (In & Par) |
Since this parameter is also available as an input, please refer to the description of the input PresetValue. Default Value: Null |
Out Save |
Master Sync Enabled : If you set it to "true" the last output will be set as output for one cycle after the controller restarts. The application can use it to return to the same state before the controller restart. Runtime Min: To enable or disable the Runtime Min feature. Runtime Sec:To enable or disable the Runtime Sec feature. Runtime Hours:To enable or disable the Runtime Hours feature. Runtime Days:To enable or disable the Runtime Days feature. |
Table 3: Parameters of RunTime Accumulate Function
Examples
If Input and Enable are "true" for 123-minute, the RunTimeAccumulate FB shows following result:
Figure 3: Example-Runtime Accumulate Function Block
Example for the Unitary FCU controller with MS/TP
Figure 4: Example- Unitary FCU controller with MS/TP Runtime Accumulate Function Block
Note: The execution order SavePermanent must be run before RunTimeAccumulate.
Refer to General Description for general information about IRM N4 Function Blocks.