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.

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 means that there is no predefined %MW mapping for this system variable.

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