[W_TIDAY] Write time of day
Function block W_TIDAY updates properties 'Present value' and 'Reliability' for a calculated value object using the present value of data type Time.
W_TIDAY updates properties 'Present value' and 'Reliability' for a calculated value object using the present value of data type Time.
Compatible data points:
- Time calculated value [TiCalcVal]
Required properties:
- Present value
- Tracking value
- Status flag
- Reliability
Input | Description | Data type | Default value |
|---|---|---|---|
EnWrit | Enable write If [EnWrit] = 1, writing values from inputs [Val] and [SetValid] to the BACnet object is enabled. | Boolean | 1 |
Val | Value Virtual value, calculated and assigned by the control program to update the present value. [Val] is written, if:
| TimeOfDay | 00:00:00.000 |
SetUnspf | Set unspecified value Defines whether an unspecified value on the present value can be written. | Boolean | 0 |
0 - The value from [Val] is written. | |||
SetValid | Set valid value indication A value calculated and assigned by the control program that indicates whether [Val] is reliable. [SetValid] is mapped to an error code that updates reliability if [EnWrit] = 1 and one of the following items applies:
| Boolean | 1 |
0 - Reliability error code 7 (unreliable - other). | |||
RptWrit | Repeat write Forces writing of [Val], and [SetValid] to the data point. Write is repeated with each program cycle until [RptWrit] = 1. Note: | Boolean | 0 |
0 - No action. | |||
|
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 |
|---|---|---|---|
PrVal | Present value Value of property 'Present value' for the referenced BACnet object. [PrVal] supplies the last valid value in the event of a fault. | Time Of Day | 00:00:00.000 |
PrValSta | Present value state Indicates whether property 'Present value' has an unspecified value. In the event of fault [PrValSta] indicates the last valid value. | Boolean | 0 |
0 - The value of the property is unspecified. | |||
Dstb | Disturbed [Dstb] indicates whether the referenced BACnet object is in fault. [Dstb] = 1 if: Otherwise [Dstb] = 0 | Boolean | 0 |
Rlb | Reliability | Integer | 0: No fault detected |
ErrCode | Error code indication | Integer | 0: No error |
= 0 - No error | |||
The write function is not available if the BACnet object is on another device.