[HOLD_DI] Hold double integer value
Function block HOLD_DI switches the present or saved input value of data type Double Integer to the output.
HOLD_DI 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 issued at output [Out].
Input | Description | Data type | Default value |
|---|---|---|---|
In | Input | Double integer | 0 |
Hld | Hold | Boolean | 0 |
0 - Hold is inactive. | |||
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 | Double integer | 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_DI 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 integer number')
HOLD_DI is used if input values are acquired and saved for later use. For example, to hold the measured value or the calculated setpoint.