[R_BG] Read binary group
Function block R_BG links a group manager object that controls the continuous acquisition of group data (present value/status flag pairs) from multiple data points for a specific group data tag.
R_BG links a group manager object that controls the continuous acquisition of group data (present value/status flag pairs) from multiple data points for a specific group data tag. In addition, the group manager object triggers a configured evaluation function that calculated the resulting value. R_BG periodically reads the evaluated results at a preconfigured interval. A read can also be triggered by an external source.
R_BG can be configured to supply multiple (up to four) evaluated, resulting values based on the selectable evaluation functions. At least one evaluation function must be configured.
Proprietary objects are necessary for the grouping infrastructure: A group manager object and one or more group member objects. Individual member data points are grouped and referenced via the group member objects and the data is acquired and forwarded by the group member object to the group manager object.
Compatible data points:
- Binary input [BI]
- Binary output [BO]
- Binary, calculated value [BCalcVal]
- Binary configuration value [BCnfVal]
- Binary process value [BPrcVal]
Required properties of group data points:
- Present value
- Status flag
Input | Description | Data type | Default value |
|---|---|---|---|
Interval | Read interval Configurable polling time that specifies how often the calculated results are read. | Time | 15s_0ms |
ImpRead | Impulse for read Linkable pin that allows an external source to provide a digital pulse to initiate reading. | Boolean | 0 |
EvlFnct1…EvlFnct4 | Evaluation function 1…Evaluation function 4 [EvlFnct1] determines the type of procedure performed on the valid, present values from the acquired group data with a common [GrpTag]. | Integer | 32767 |
5: Count of values | |||
ValIn1…ValIn4 | Value input 1…Value input 4 Configurable parameter for the evaluation function that sets a marching value for the common data of the given [GrpTag]. | Boolean | 0 |
GrpTag | Grouping tag Specifies the specific group data (present value, status flags) that the function block acquires and evaluates. | Double Word | 0 |
|
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 |
|---|---|---|---|
Val1...Val4 | Value 1...Value 4 | Boolean | 0 |
The evaluated, resulting value based on the evaluation function selected in [EvlFnct1]. [Val1] belongs to one of four output sets where each contains [ValX], [DstbX], [CntX] and [UpdIndX]. [Val1] indicates:
The functionality of [Val2]...[Val4] is the same as [VaI1]. | |||
Cnt1…Cnt4 | Count 1…Count 4 | Integer | 0 |
The evaluated, resulting value based on the CountOfVal evaluation function selected in [EvlFnct1]. [Cnt1] belongs to one of four output sets where each contains [ValX], [DstbX], [CntX], and [UpdIndX]. [Cnt1] provides:
The functionality of [Cnt2]...[Cnt4] is the same as [Cnt1]. | |||
Dstb1...Dstb4 | Disturbance 1...Disturbance 4 [Dstb1] indicates whether the result of the evaluation select on [EvlFnct1] is valid. [Dstb1] belongs to one of five output sets where each contains [ValX], [DstbX], [CntX] and [UpdIndX]. [Dstb1] = 0 if at least on value is valid in the acquired group data. [Dstb1] = 1 if no value is valid in the acquired group data. The functionality of [Dstb2]...[Dstb4] is the same as [Dstb1]. | Boolean | 0 |
UpdInd1...UpdInd4 | Update indication 1...Update indication 4 | Boolean | 0 |
[UpdInd1] Indicates that at least one of the values in the evaluation was updated with a new or the same value. [UpdInd1] is set to 1 only if [Dstb1] = 0. The functionality of [UpdInd1] and [UpdInd1] is the same as [UpdInd1]. Note | |||
NumVals | Number of valid values Number of valid, present values acquired for a specific [GrpTag]. | Integer | 0 |
NumMbrs | Number of aggregated members Number of present values acquired for a specific [GrpTag], typically equal to the number of group member objects addressed by the group manager for a specific group. | Integer | 0 |
ErrCode | Error code indication | Integer | 0: No error |
= 0 - No error | |||