DOCA0258EN-00

Adapter Diagnostic Object

Description

The Adapter Diagnostic Object provides diagnostic information about all the target I/O connections to the EtherNet/IP stack. The class ID can be changed with the definition OBJ_CLASS_DIAG_ADAPTER.

Class Code

The I/O Connection Diagnostic Object class code is 0x302.

Class Attributes

Attribute ID

Name

Access

Description

0x01

Revision

R

The I/O Connection Diagnostic Object implementation revision.

Returns 0x01.

0x02

Maximum Instance

R

Returns the maximum instance number created that varies from 0 to N (N = maximum number of CIP I/O connections = 32).

0x03

Number of Instances

R

Returns the number of instances created that varies from 0 to N (N = maximum number of CIP I/O connections = 32).

Instance Attributes

The following instance attributes are supported:

Attribute ID

Name

Type

Access

Description

0x01

Control Bits

WORD

RW

  • True: Activate checking time for production and consumption

  • False: Inactive (default)

0x02

ST_DIAG_CNT

STRUCT

RW

  • wErrFrameCnt

UINT

Increment the counter each time the system is unable to send a frame due to missing resources or an inability to transmit it

  • wErrTimeOutCnt

UINT

Increment when one connection is timed out

  • wErrRefusedCnt

UINT

Increment the counter when the remote station refuses a connection.

  • dwProdCnt

UDINT

Increment at each production

  • dwConsCnt

UDINT

Increment at each consumption

  • dwProdByteCnt

UDINT

Total number of bytes produced

  • dwConsByteCnt

UDINT

Total number of bytes consumed

0x03

Input status

WORD

R

0x04

Output status

WORD

R

0x05

ST_LINK

STRUCT

R

  • CIP status

UINT

  • Extended status

UINT

  • Production connection ID

DWORD

Connection ID

  • Consumed connection ID

DWORD

Connection ID

  • O to T API

UDINT

API of the connection

  • T to O API

UDINT

API of the connection

  • O to T RPI

UDINT

RPI of the connection

  • T to O RPI

UDINT

RPI of the connection

  • O to T NetPar

UDINT

Network parameters

  • T to O NetPar

UDINT

Network parameters

  • OriCnxSN

UINT

Originator connection serial number

  • OriVendorId

UINT

Originator vendor ID

  • OriSN

UDINT

Originator serial number

0x06

ST_SOCK_PARAM

STRUCT

R

Send

  • lpSockId

DWORD

Internal identifier

  • IpForeign

DWORD

IP of the remote station

  • wPortForeign

UINT

Port number of the remote station

  • IpLocal

DWORD

IP of the local station

  • wPortLocal

UINT

Port number of the local station

ST_SOCK_PARAM

STRUCT

RECV

  • lpSockId

DWORD

Internal identifier

  • IpForeign

DWORD

IP of the remote station

  • wPortForeign

UINT

Port number of the remote station

  • IpLocal

DWORD

IP of the local station

  • wPortLocal

UINT

Port number of the local station

0x07

ST_PRODUCTION

STRUCT

R

  • bValid

WORD

  • 0: Struct production data is not valid

  • 1: Struct production data is valid

  • dwCurrentTime

UDINT

Internal number of tick before next production

  • dwProductionTime

UDINT

Internal number of tick before between production

  • SequenceNumber

UDINT

Number of sequence in the production

  • stCheckTime

STRUCT

 

  • dwLastTime

UDINT

 

Internal use

  • dwMaxTime

UDINT

 

Maximum time between two productions

  • dwMinTime

UDINT

 

Minimum time between two productions

  • dwRPI

UDINT

 

API of the connection

  • wOverRun

UINT

 

Number of times when the production is too long

  • wUnderRun

UINT

 

Number of times when the production is too fast

  • dwCurrentTime

UDINT

 

Internal use

0x08

ST_CONSUMPTION

STRUCT

R

  • bValid

WORD

  • 0: Struct consumption data is not valid

  • 1: Struct consumption data is valid

  • dwCurrentTime

UDINT

Internal number of tick before time out

  • dwconsumptionTime

UDINT

Internal number of tick of the time out

  • SequenceNumber

UDINT

Number of sequence in the consumption

  • stCheckTime

STRUCT

  • dwLastTime

UDINT

Internal use

  • dwMaxTime

UDINT

Maximum time between two consumptions

  • dwMinTime

UDINT

Minimum time between two consumptions

  • dwRPI

UDINT

API of the connection

  • wOverRun

UINT

Number of times when the consumption is too long

  • wUnderRun

UINT

Number of times when the consumption is too fast

  • dwCurrentTime

UDINT

Internal use

0x09

ASM status

STRUCT

R

Status of assembly object

  • byGeneralStatus

BYTE

  • byReserved

BYTE

  • Extended Status

WORD

Instance Services

Service Code

Name

Description

0x01

Get Attribute All

Returns the value of all instance attributes*

0x0E

Get Attribute Single

Returns the value of the specified instance attribute

0x10

Set Attribute Single

Sets the value of the specified instance attribute

0x61

Get Output

Returns the status and values of the output

Response:

Offset Type Description
0 UINT Status
2 USINT (0 to 509) Output data

0x62

Get Input

Returns the status and values of the input

Response:

Offset Type Description
0 UINT Status
2 USINT (0 to 509) Intput data

0x63

Reset Diag Counters

Set the value of structure from ST_DIAG to to 0

QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.

Was this helpful?