[CMD_AG] Command analog group
Function block CMD_AG distributes, for a specific priority, a present value of data type Real to multiple data points for a specific group data tag.
CMD_AG distributes, for a specific priority, a present value of data type Real to multiple data points for a specific group data tag.
Proprietary objects are necessary for the grouping infrastructure: A group manager object and one or more group member objects. The individual member data points are grouped and referenced via group member objects.
CMD_AG writes the value/priority pairs for a specific group data tag to the property 'Group command' of the group manager object. The data is forwarded by the group manager object to the group member object(s), and distributed from there to the impacted member data points with the appropriate group data tag.
Compatible data points:
- Analog output [AO]
- Analog configuration value [ACnfVal]
- Analog process value [APrcVal]
- Third-party objects with the required properties
Required property of a grouped data point:
- Present value
- Status flag
Optional properties:
- Priority array
Operate with priorities
The function block uses 2 approaches to control if operating with priorities:
1. Exclusive control (planned for priorities 1..5, 9..12, 14..16)
- Initialized at startup
- Multiple input sets of a function block cannot command the same priority.
2. Last win control (planned for priorities 7, 8, 13)
- Not initialized at startup.
| Exclusive control | Last win control |
|---|---|---|
Behavior at plant startup | [EnIn1] = 0 | [EnIn1] = 0 |
[EnIn1] = 1 | [EnIn1] = 1 | |
Command process | If [EnIn1] changes from 0 to 1. | If [EnIn1] changes from 0 to 1. |
If [EnIn1] = 1 and [ValIn1] changes. | If [EnIn1] = 1 and [ValIn1] changes. | |
If [EnIn1] = 1 and [RptcIn1] = 1. | If [EnIn1] = 1 and [RptcIn1] = 1. | |
Release | If [EnIn1] changes from 1 to 0. | If [EnIn1] changes from 1 to 0. |
If [EnIn1] = 0 and [RptcIn1] = 1. | If [EnIn1] = 0 and [RptcIn1] = 1. | |
Behavior in the event of commanding from another source | [EnIn1] = 0 | [EnIn1] = 0 |
[EnIn1] = 1 | [EnIn1] = 1 |
The data point periodically saves the value of priority 8 to controller memory. After a power outage, the value is restored in the property 'Priority array' and evaluated by the data point. All other priorities are not saved to controller memory.
Operation with other input sets of function block ([EnIn2]...[EnIn4], [ValIn2]...[ValIn4], [RptcIn2]...[RptcIn4]) is the same.
Input | Description | Data type | Default value |
|---|---|---|---|
EnIn1…EnIn4 | Enable input 1…Enable input 4 [EnIn1] determines whether [ValIn1] is commanded at the priority from [PrioIn1] or the priority is released. | Boolean | 0 |
0 - Priority of [PrioIn1] is released if not active at the moment by setting another [EnInX] to 1. | |||
ValIn1…ValIn4 | Value input 1…Value input 4 The value for commanding at [PrioIn1].
The functionality from [Valid2]...[Valid4] is the same as [VaIln1]. | Real | 0.0 |
PrioIn1…PrioIn4 | Priority input 1…Priority input 4 | Integer | 17 |
[PrioIn1] belongs to one of 4 input sets and receives the priority that accompanies [ValIn1]. Priority range: Exclusive control: During control program startup, the function block can use exclusive control to initialize the assigned priorities in ranges 1...5, 9...12 and 14...16. This function block does not support exclusive priority control during runtime. The last valid command controls or releases priority. Due to exclusive control during startup, two or more input sets on the same function block cannot have a common, exclusive control priority, as this will result in conflicts.
Prio 6: Prio 8: | |||
RptcIn1…RptcIn4 | Repeat command input 1…Repeat command input 4 [RptcIn1] repeats a command or releases a priority. | Boolean | 0 |
DscdcIn1…DscdcIn4 | Discard command input 1…Discard command input 4 [DscdcIn1] is used to configure repeat command [ValIn1] on restart or when restoring communications to the automation station of the group member. | Boolean | 0 |
0 - The group manager repeats the last command from [ValIn1] at priority [PrioIn1] during a restart or once communication is restored to the automation station of the group member. [DscdcIn2]...[DscdcIn4] functionality is the same as [DscdcIn1]. | |||
TshVal | Threshold value Configured value to control function block write attempts. An attempt is only permitted if the change of value is greater than or equal to [TshVal]. Note | Real | 0.1 |
WIvlMin | Minimum write interval Minimum interval without writing on the BACnet object based on a change to [ValIn1]...[ValIn4] (limit values are not affected). | Time | 0 ms |
GrpTag | Grouping tag Specifies the group data (present value, priority) for central distribution by the function block. | 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 |
|---|---|---|---|
Dstb | Disturbed [Dstb] indicates whether the referenced BACnet object was accessed. | Boolean | 0 |
ErrCode | Error code indication | Integer | 0: No error |
= 0 - No error | |||