0x0002 - NIC

0x8nn0 - Module Header

SubIndex

Type

Name

Value

Type

Access

00

VAR

Len

 

UNSIGNED16

read-only

01

VAR

Address

0x0002 00nn

UNSIGNED32

read-only

02

VAR

Type

NIC

VISIBLE STRING

read-only

03

VAR

Name

Adapter Name

VISIBLE STRING

read-only

04

VAR

Dev type

0x0002 2710

UNSIGNED32

read-only

0x8nn1 – NIC properties

0x0002 - NIC 1:

If this component exists more than once on the system, a separate module instance is created for each one.

0x0002 - NIC 2:

Changing these settings requires an active network connection for the selected Ethernet/EtherCAT adapter. Without an active network connection no parameters can be (pre-)set.

SubIndex

Type

Name

Requirements

Type

Access

00

VAR

Len

 

UNSIGNED16

read-only

01

VAR

MAC Address

 

VISIBLE STRING

constant

02

VAR

IPv4 Address1

 

VISIBLE STRING

read-write

03

VAR

IPv4 Subnet Mask1

 

VISIBLE STRING

read-write

04

VAR

DHCP

 

BOOLEAN

read-write

05

VAR

IPv4 Default Gateway1,2

 

VISIBLE STRING

read-write

06

VAR

IPv4 DNS Servers

not for WinCE

VISIBLE STRING

read-write

07

VAR

Virtual Device Name

only for Windows

VISIBLE STRING

read-write

08

VAR

IPv4 DNS Servers Active

only for TC/BSD and TC/RTOS

VISIBLE STRING

read

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

2 WinCE: depending on the DHCP status, a "Read" operation has the return value "DefaultGateway" or "DhcpDefaultGateway".

0xBnn0 – IP Release/Renew Address (Service Transfer Object)

InputData

Type

Name

UNSIGNED8

DummyByte

0xBnn1 – Set IP, Subnet and Default Gateway

InputData

Type

Name

UNSIGNED32

cbInputData1

UNSIGNED32

IpLen

UNSIGNED32

SubnetLen

UNSIGNED32

GatewayLen

char[IpLen]

szIP

char[SubnetLen]

szSubnet

char[GatewayLen]

szGateway

1 Count of bytes of all input data including cbInputData (size of all values of table InputData)