IPAddressSet (FB)ΒΆ
FUNCTION_BLOCK FINAL IPAddressSet IMPLEMENTS IIPAddressSet, IIPAddressSet_Internal
Represents a set of IIPAddress instances
Static initialization, as shown in the following code snippet.
VAR
    myFirstPublisher : NBS.IPv4Address := (ipAddress:='224.0.100.20');
    mySecondPublisher : NBS.IPv4Address := (ipAddress:='224.0.100.30');
    myPublisherSet : ARRAY[0..1] OF NBS.IIPAddress := [myFirstPublisher, mySecondPublisher];
    myMulticastSet : NBS.IPAddressSet := (paitfIPAddress:=ADR(myPublisherSet[0]), udiSize:=SIZEOF(myPublisherSet));
END_VAR
- InOut:
- Scope - Name - Type - Comment - Input Const - paitfIPAddress- POINTER TO ARRAY [0..0] OF IIPAddress - The address of the first array element - udiSize- UDINT- Size of the array - paitfIPAddressis pointing to
