ST_IPAdapterInfo

Local adapter information..

TYPE ST_IPAdapterInfo
STRUCT
    bDefault        : BOOL;
    sAdapterName    : STRING(MAX_ADAPTER_NAME_LENGTH) := '';
    sDescription    : STRING(MAX_ADAPTER_DESCRIPTION_LENGTH) := '';
    physAddr        : ST_IPAdapterHwAddr;
    dwIndex         : DWORD;
    eType           : E_MIB_IF_Type;
    sIpAddr         : T_IPv4Addr;
    sSubNet         : T_IPv4Addr;
    sDefGateway     : T_IPv4Addr;
    bDhcpEnabled    : BOOL;
    sDhcpSrv        : T_IPv4Addr;
    bHaveWins       : BOOL;
    sPrimWinsSrv    : T_IPv4Addr;
    sSecWinsSrv     : T_IPv4Addr;
    tLeaseObt       : DT;
    tLeaseExp       : DT;
END_STRUCT
END_TYPE

bDefault: Supported only under Windows CE! Specifies whether this adapter is default TwinCAT adapter..

sAdapterName: Specifies the name of the adapter.

sDescription:  Specifies a description for the adapter.

physAddr: Hardware address.

dwIndex: Specifies the internal adapter index.

eType: Specifies the adapter type.

sIpAddr: Specifies the IP address for this adapter.

sSubNet: Specifies the IP address mask.

sDefGateway: Specifies the IP address of the default gateway for this adapter.

bDhcpEnabled: Specifies whether dynamic host configuration protocol (DHCP) is enabled for this adapter.

sDhcpSrv:  Specifies the IP address of the DHCP server for this adapter.

bHaveWins: Specifies whether this adapter uses Windows Internet Name Service (WINS).

sPrimWinsSrv: Specifies the IP address of the primary WINS server.

sSecWinsSrv: Specifies the IP address of the secondary WINS server.

tLeaseObt: Specifies the time when the current DHCP lease was obtained ( UTC time ).

tLeaseExp: Specifies the time when the current DHCP lease will expire. ( UTC time ).

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.10.0 Build > 1307

PC or CX (x86)
CX (ARM)

TcUtilities.Lib