[HOLD_R] Hold real value
Function block HOLD_R switches the present or a saved input value to the output.
HOLD_R holds the last value on output [Out], if input [Hld] has value 1. If [Hld] has value 0, the present value of input [In] is provided at output [Out].
Input | Description | Data type | Default value |
|---|---|---|---|
In | Input | Real | 0.0 |
Hld | Hold | Boolean | 0 |
0 - Hold is inactive. | |||
TshVal | Threshold value Configured value to control function block write attempts. An attempt is permissible only if the change of value is greater than or equal to [TshVal]. Note | Real | 0.1 |
Pers | Persistent | Boolean | 0 |
0 - No | |||
|
BaObjRef | BA-Object reference | Structure | --- |
BaObjRef | Device identifier | Double Word | 16#3FFFFF |
BaObjRef | Object identifier | Double Word | 16#3FFFFF |
BaObjRef | Item identifier | Integer | -1 |
Output | Description | Data type | Default value |
|---|---|---|---|
Out | Output | Real | 0.0 |
Dstb | Disturbed | Boolean | 0 |
0 - Success reading persistent values. | |||
ErrCode | Error code indication | Integer | 0: No error |
= 0 - No error | |||
At start up, HOLD_R holds the persistent value from the BACnet object. If [Hld] = 1, the read-out persistent value is set and held on output [Out]. If [Pers] = 0 or an access error, output [Out] is set with the input value [In] from the first processed cycle.
The persistent value must be available on the associated BACnet object as an extension property ('Extension by persistence' = 'Hold real number')
HOLD_R is used if input values are saved for processing acquired at a later date. For example, to hold a measured value or calculated setpoint.