Table of Contents

Class IpcNIC

Namespace
TwinSharp.IPC
Assembly
TwinSharp.dll

The IpcNIC class provides an interface to interact with network interface card (NIC) settings through the TwinCAT ADS protocol. It allows reading and writing of various NIC properties such as MAC address, IPv4 address, subnet mask, DHCP status, default gateway, DNS servers, and virtual device name. The class handles specific behaviors for different operating systems like Windows, WinCE, TC/BSD, and TC/RTOS.

public class IpcNIC
Inheritance
IpcNIC
Inherited Members

Properties

DHCP

DHCP active.

public bool DHCP { get; set; }

Property Value

bool

IPv4Address

With WinCE a reboot may be required in order to obtain a correct value. Without a reboot WinCE may still supply the previous value!

public string IPv4Address { get; set; }

Property Value

string

IPv4DNSServers

Not for WinCE.

public string IPv4DNSServers { get; set; }

Property Value

string

IPv4DNSServersActive

Only for TC/BSD and TC/RTOS

public string IPv4DNSServersActive { get; }

Property Value

string

IPv4DefaultGateway

With WinCE a reboot may be required in order to obtain a correct value. Without a reboot WinCE may still supply the previous value! WinCE: depending on the DHCP status, a "Read" operation has the return value "DefaultGateway" or "DhcpDefaultGateway".

public string IPv4DefaultGateway { get; set; }

Property Value

string

IPv4SubNetMask

With WinCE a reboot may be required in order to obtain a correct value. Without a reboot WinCE may still supply the previous value!

public string IPv4SubNetMask { get; set; }

Property Value

string

MACAddress

MAC address of the card.

public string MACAddress { get; }

Property Value

string

VirtualDeviceName

Only for Windows.

public string VirtualDeviceName { get; set; }

Property Value

string