[CMD_LGTG] Command lighting group
Function block CMD_LGTG distributes, at a particular priority, either a Present value or a Control command to multiple analog or binary BACnet lighting output objects for a specific Group data tag.
CMD_LGTG distributes, at a particular priority, either a Present value or a Control command to multiple analog or binary BACnet lighting output objects for a specific Group data tag. Both target state commanding and control command commanding are supported.
Proprietary objects are needed for the grouping infrastructure: one Group manager object and one or more Group member objects. The individual member data points (the lighting output objects) are grouped and referenced via the Group member object(s).
CMD_LGTG writes value / priority pair(s) for a particular Group data tag to the Group command property of the Group manager object. The data is passed from the Group manager object to the Group member object(s) where it is distributed to the intended lighting output objects with matching Group data tag.
Compatible data points
- Analog lighting output [LgtAOut]
- Binary lighting output [LtgBOut]
Required properties of grouped data points
- Present value
- Control command (structured lighting output command)
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] or [OpIn1] or [LvlIn1] or [StepIn1] change. | If [EnIn1] = 1 and [ValIn1] or [OpIn1] or [LvlIn1] or [StepIn1] change. | |
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 the 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 the controller memory.
The operation with other input sets of the function block ([EnIn2]...[EnIn4], [ValIn2]...[ValIn4], [OpIn2]...[OpIn4], [LvlIn2]...[LvlIn4], [StepIn1]...[StepIn4], [RptcIn2]...[RptcIn4]) is the same.
Input | Description | Data type | Default value |
|---|---|---|---|
EnIn1…EnIn4 | Enable input 1…Enable input 4 [EnIn1] controls whether [ValIn1] or [OpIn1] are commanded at the priority held by [PrioIn1] or if the priority is released. | Boolean | 0 |
0 - Priority of [PrioIn1] is released if it is not currently active by a different [EnInX] set to 1. | |||
ValIn1...ValIn4 | Value input 1...Value input 4 [ValIn1] is used to command the present value property at [PrioIn1] (target state commanding).
The functionality of [ValIn2]...[ValIn4] is identical to [ValIn1]. | Real | 0.0 |
OpIn1…OpIn4 | Operation input 1…Operation input 4 [OpIn1] is used to command the control command property ([LvlIn1] and [StepIn1]) at [PrioIn1]. | Integer | 32767: None |
0: Stop | |||
LvlIn1...LvlIn4 | Level input 1...Level input 4 [Lvlln1] is part of the command field [OpIn1] and defines the target level for the input set. It is written to the lighting output object in conjunction with the commanding of [OpIn1] and is used in combination with some of the operation commands (for example Go to level, Fade to, Ramp to). | Real | 0.0 |
StepIn1...StepIn4 | Step input 1...Step input 4 [Stepln1] is part of the command field [OpIn1] and defines the step increment for the input set. It is written to the lighting output object in conjunction with the commanding of [OpIn1] and is used together with some of the operation commands (for example Step up and Step down). [StepIn1] can be parameterized (set by developer) or linked in the programming editor and calculated by the control program during runtime. The functionality of [StepIn2]...[StepIn4] is identical to [StepIn1]. | Real | 0.0 |
PrioIn1...PrioIn4 | Priority input 1...Priority input 4 | Integer | 17 |
[PrioIn1] holds the priority that comes with [Valln1] or [OpIn1]. Priority range Exclusive control 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 must not share a common exclusive control priority, as this will result in conflicts. Last wins
Priority 6 Priority 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 the repeat of the command of [ValIn1] on restart or when restoring communication to the automation station of the group manager. | Boolean | 0 |
0 - The group manager repeats the last command from [ValIn1] at priority [PrioIn1] on restart or once communication is restored to the automation station of the group manager. | |||
TshVal | Threshold value [TshVal] is a 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 | 1.0 |
GrpTag1 | Group data tag 1 [GrpTag1] defines a specific group data for the central distribution by the function block. [GrpTag1] is used only for target state commanding (present value, priority). | Double Word | 0 |
GrpTag2 | Group data tag 2 [GrpTag2] defines a specific group data for the central distribution by the function block. [GrpTag2] is used only for control command commanding (control command, priority). | 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 | |||