Adding a recipient to a recipient list
Entries in the recipient list property of Notification Class objects are complex data-types supporting two options. Either the device instance number may be used to identify the recipient or, as an alternative, the BACnet MAC-address (physical address) may be specified.
The example below shows both options for the variable aRecipientList:
aRecipientList := [
(
stValidDays :=
(bMonday:=TRUE, bTuesday:=TRUE, bWednesday:=TRUE, bThursday:=TRUE, bFriday:=TRUE),
stFromTime := F_BA_ToSTTime(T#0H),
stToTime := F_BA_ToSTTime(T#23H59M59S),
stRecipient :=
F_BACnet_DeviceRecipient(nDeviceInstance:=42),
nProcessId := 10000,
bIssueConfirmed := FALSE,
stEventTransitions :=
(bToOffNormal:=TRUE, bToFault:=TRUE, bToNormal:=TRUE)
),
(
stValidDays := (bSunday:=TRUE, bSaturday:=TRUE),
stFromTime := F_BA_ToSTTime(T#7H),
stToTime := F_BA_ToSTTime(T#15H30M),
stRecipient :=
F_BACnet_EthernetRecipient(nIPAddress1:=192,168,10,200, nPort:=47808, nNetworkNr:=444),
nProcessId := 30100,
bIssueConfirmed := TRUE,
stEventTransitions := (bToOffNormal:=TRUE)
)
]