ETH_R: Ethernet Port Read-Only System Variables

Variable Structure

This table describes the parameters of the ETH_R system variable (ETH_R_STRUCT type):

%MW

Var Name

Type

Comment

60050

i_byIPAddress[0..3]

ARRAY[0..3] OF BYTE

IP address [aaa.bbb.ccc.ddd]:

oi_byIPAddress[0] = aaa

o...

oi_byIPAddress[3] = ddd

60052

i_bySubNetMask[0..3]

ARRAY[0..3] OF BYTE

Subnet Mask [aaa.bbb.ccc.ddd]:

oi_bySub-netMask[0] = aaa

o...

oi_bySub-netMask[3] = ddd

60054

i_byGateway[0..3]

ARRAY[0..3] OF BYTE

Gateway address [aaa.bbb.ccc.ddd]:

oi_byGateway[0] = aaa

o...

oi_byGateway[3] = ddd

60056

i_byMACAddress[0..5]

ARRAY[0..5] OF BYTE

MAC address [aa.bb.cc.dd.ee.ff]:

oi_byMACAddress[0] = aa

o...

oi_byMACAddress[5] = ff

60059

i_sDeviceName

STRING(16)

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[0..3]

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_udiOpenTcpConnections

UDINT

Number of open TCP connections.

n/a

i_wFrameSendingProtocol

ETH_R_FRAME_PROTOCOL

Ethernet protocol configured for frames sending (IEEE 802.3 or Ethernet II).

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).

n/a

i_wPortADuplexStatus

ETH_R_PORT_DUPLEX_STATUS

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

n/a

i_udiPortACollisions

UDINT

Number of frames involved in one or more collisions and subsequently transmitted successfully. Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_wPortAIpStatus

ETH_R_PORT_IP_STATUS

Ethernet TCP/IP port stack status.

Modbus TCP/IP Specific

n/a

i_udiModbusMessageTransmitted

UDINT

Number of Modbus messages transmitted.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiModbusMessageReceived

UDINT

Number of Modbus messages received.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiModbusErrorMessage

UDINT

Modbus detected error messages transmitted and received.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_byMasterIpTimeouts

BYTE

Ethernet Modbus TCP Master timeout events counter.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_byMasterIpLost

BYTE

Ethernet Modbus TCP Master link status: 0 = link OK, 1 = link lost.

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

%MW

Var Name

Type

Comment

EtherNet/IP Specific

n/a

i_udiETHIP_IOMessagingTransmitted

UDINT

EtherNet/IP Class 1 frames transmitted.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiETHIP_IOMessagingReceived

UDINT

EtherNet/IP Class 1 frames received.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiUCMM_Request

UDINT

EtherNet/IP Unconnected Messages received.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiUCMM_Error

UDINT

EtherNet/IP invalid Unconnected Messages received.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiClass3_Request

UDINT

EtherNet/IP Class 3 requests received.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_udiClass3_Error

UDINT

EtherNet/IP invalid class 3 requests received.

Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_uiAssemblyInstanceInput

UINT

Input Assembly Instance number. See the appropriate Programming Guide of your controller for more information.

n/a

i_uiAssemblyInstanceInputSize

UINT

Input Assembly Instance size. See the appropriate Programming Guide of your controller for more information.

n/a

i_uiAssemblyInstanceOutput

UINT

Output Assembly Instance number. See the appropriate Programming Guide of your controller for more information.

n/a

i_uiAssemblyInstanceOutputSize

UINT

Output Assembly Instance size. See the appropriate Programming Guide of your controller for more information.

n/a

i_uiETHIP_ConnectionTimeouts

UINT

Number of connection timeouts. Reset at Power ON or with reset command ETH_W.q_wResetCounter.

n/a

i_ucEipRunIdle

ETH_R_RUN_IDLE

Run (value = 1)/Idle(value = 0) flag for EtherNet/IP class 1 connection.

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

Not used means that the variable is not maintained by the system, and that if the value of the variable is non-zero, it should be considered extraneous.

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