ETH_R_ITF_STRUCT: Ethernet Interface Parameters

Library and Namespace

Library name: PLCSystemBase

Namespace: PLCSystemBase

Enumerated Type Description

The ETH_R_ITF_STRUCT enumeration data type contains the following values:

%MW

Var Name

Type

Comment

n/a

i_byIPAddress

ARRAY[0..3] OF BYTE

IP address of this Ethernet interface [aaa.bbb.ccc.ddd]:

oi_byIPAddress[0] = aaa

o...

oi_byIPAddress[3] = ddd

n/a

i_bySubNetMask

ARRAY[0..3] OF BYTE

Subnet mask of this Ethernet interface [aaa.bbb.ccc.ddd]:

oi_bySub-netMask[0] = aaa

o...

oi_bySub-netMask[3] = ddd

n/a

i_byGateway

ARRAY[0..3] OF BYTE

Gateway address of this Ethernet interface [aaa.bbb.ccc.ddd]:

oi_byGateway[0] = aaa

o...

oi_byGateway[3] = ddd

n/a

i_byMACAddress

ARRAY[0..5] OF BYTE

MAC address of this Ethernet interface [aa.bb.cc.dd.ee.ff]:

oi_byMACAddress[0] = aa

o...

oi_byMACAddress[5] = ff

n/a

i_sDeviceName

STRING(15)

Name used to get IP address from server.

n/a

i_wIpMode

ETH_R_IP_MODE

Method used to obtain an IP address.

n/a

i_byFDRServerIPAddress

ARRAY[0..3] OF BYTE

The IP address [aaa.bbb.ccc.ddd] of the DHCP or BootP server:

oi_byFDRServerIPAddress[0] = aaa

o...

oi_byFDRServerIPAddress[3] = ddd

Equals 0.0.0.0 if Stored IP or Default IP used.

n/a

i_udiFramesTransmittedOK

UDINT

Number of frames successfully transmitted. Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiFramedReceivedOK

UDINT

Number of frames successfully received. Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiTransmitBufferErrors

UDINT

Numbers of frames transmitted with detected errors. Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiReceiveBufferErrors

UDINT

Numbers of frames received with detected errors. Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_wPortALinkStatus

ETH_R_PORT_LINK_STATUS

Link of the Ethernet Port (0 = No Link, 1 = Link connected to another Ethernet device).

n/a

i_wPortASpeed

ETH_R_PORT_SPEED

Ethernet Port network speed (10Mb/s, 100Mb/s, or 1Gb/s).

n/a

i_wPortADuplexStatus

ETH_R_PORT_DUPLEX_STATUS

Ethernet Port duplex status (0 = Half or 1 = Full duplex).

n/a

i_wPortAIpStatus

ETH_R_PORT_IP_STATUS

Ethernet TCP/IP port stack status.

n/a means that there is no predefined %MW mapping for this system variable.