IPv4Address
(FB)
FUNCTION_BLOCK PUBLIC FINAL IPv4Address IMPLEMENTS IIPv4Address, IIPv4Address_Internal
Encapsulates an IP address of version 4.
Static initialization, as shown in the following code snippet.
VAR
myIPAddress : NBS.IPv4Address := (ipAddress:='192.168.100.101');
END_VAR
Dynamic initialization, as shown in the following code snippet.
myIPAddress.SetInitialValue('192.168.100.101');
- InOut:
Scope
Name
Type
Initial
Input Const
ipAddress
‘’
Properties:
CompressedIP
ExplodedIP
IPIsGlobal
IPIsLinkLocal
IPIsLoopback
IPIsMultiCast
IPIsPrivate
IPIsReserved
IPIsUnspecified
IPLength
IPVersion
Methods:
GetIPasByteArray
SetInitialValue
Structure:
IPv4Address.GetIPasByteArray
(METH)IIPAddress
IPv4Address.CompressedIP
(PROP)IPv4Address.ExplodedIP
(PROP)IPv4Address.IPIsGlobal
(PROP)IPv4Address.IPIsLinkLocal
(PROP)IPv4Address.IPIsLoopback
(PROP)IPv4Address.IPIsMultiCast
(PROP)IPv4Address.IPIsPrivate
(PROP)IPv4Address.IPIsReserved
(PROP)IPv4Address.IPIsUnspecified
(PROP)IPv4Address.IPLength
(PROP)IPv4Address.IPVersion
(PROP)
IPv4Address.SetInitialValue
(METH)