[W_BG] Write binary group

Function block W_BG supports the distribution of properties present value and reliability to a group of binary, calculated value objects that share a specific group data tag.

W_BG supports the distribution of properties present value and reliability (a value/reliability pair) to a group of binary, calculated value objects that share a specific group data tag. W_BG supports the distribution of a value to a specific property of data type Bool, to a group of objects that share a specific group data tag.

Functioning

Compatible data points:

  • Binary, calculated value [BCalcVal]
  • BACnet object with a specific property of data type Bool
Pins

Input

Description

Data type

Default value
Value range

EnWrit

Enable write

If [EnWrit] = 1, writing values from inputs [Val] and [SetValid] to the BACnet object is enabled.
If [EnWrit] changes from 0 to 1, writing occurs.

Boolean

1

Val

Value

Virtual value, calculated and assigned by the control program to update the present value.
[Val] is used to update the property 'Tracking value'; followed by the BACnet object internally updating the present value with the written tracking value.

[Val] is written if [EnWrit] = 1 and one of the items applies:

  • [Val] changes.
  • [SetValid] changes.
  • [RptWrit] is 1.

Boolean

0

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:

  • [SetValid] changes.
  • [Val] changes.
  • [RptWrit] is 1.

Boolean

1

0 - Reliability error code 7 (unreliable - other).
1 - Reliability error code 0 (no fault).

RptWrit

Repeat write

Forces writing of [Val], and [SetValid] to the data point. Write is repeated with each program cycle until [RptWrit] = 1.
The control program typically calculates and sets [RptWrit].

Note:
[RptWrit] cannot be permanently forced to 1. This may influence performance and communications traffic.

Boolean

0

0 - No action.
1 - [Val] and [Sta] are written to the data point with each programming cycle.

GrpTag

Grouping tag

Specifies the group data (present value, priority) for central distribution by the function block.
The system provides predefined and customizable tags. Typically, the application engineer sets [GrpTag] in the programming editor and it cannot be changed during runtime. A tag that matches the data type of the function block must be set.

Double Word

0

BaObjRef

BA-Object reference
Link between function block and BACnet object.

Structure

---

BaObjRef
> DeviceID

Device identifier
[DeviceID] includes object type and object instance in one ID.
Identifies the device object: local or remote. A local device object can also be identified by value 16#3FFFFF.

Double Word

16#3FFFFF

BaObjRef
> ObjectID

Object identifier
[ObjectID] includes object type and object instance in one ID.
Identifies the object on a device.

Double Word

16#3FFFFF

BaObjRef
> ItemID

Item identifier
[ItemID] represents an index in a view node object that references the BACnet object.
[ObjectID] and [ItemID] together define an indirect reference to the BACnet object.
Value -1 indicates a direct interface.

Integer

-1

 

Output

Description

Data type

Default value
Value range

Dstb

Disturbed

[Dstb] indicates whether the referenced BACnet object was accessed.
[Dstb] = 0, if:
BACnet object access = Access successful
[Dstb] = 1, if:
BACnet object access = Error during access

Boolean

0

ErrCode

Error code indication

Integer

0: No error

= 0 - No error
> 0 - XFB error codes