DOCA0258EN-00

Stack Diagnostic Object

Description

The Stack Diagnostic Object provides information about the EtherNet/IP stack. The class ID can be changed with the definition OBJ_CLASS_DIAG_STACK.

Class Code

The Stack Diagnostic Object class code is 0x300, vendor specific definition.

Class Attributes

Attribute ID

Name

Access

Description

0x01

Revision

R

The Stack Diagnostic Object implementation revision.

Returns 0x01.

0x02

Maximum Instance

R

Returns 0x01 to indicate that there is only one instance.

0x03

Number of Instances

R

The number of object instances.

Returns 0x01.

Instance Codes

Only one instance is implemented: Instance 1 for the EtherNet/IP Interface Diagnostic object.

Instance Attributes

The following instance attributes are supported:

Attribute ID

Name

Type

Access

Description

0x01

Stack state

WORD

R

  • The table list the bit values of the stack state:

    Bit Description Value
    Bit 15 Run or Idle
    • 1: Run

    • 2: Idle

    Bit 7–10 State machine
    • 0: Non_Existent

    • 1: Offline

    • 2: Online

    • 3: IO_Running

0x02

Stack Information

STRUCT

R

  • Stack type

WORD

The stack types are given as follows:

  • 0x0001: Adapter stack

  • 0x0003: Scanner or Adapter stack

  • Stack version

BYTE[4]

Example:

  • Major: 3

  • Minor: 0

  • Build: 0

  • Special: 0

  • User version

BYTE[4]

Received from USER_GetVersion()

0x03

Stack Option

DWORD

R

The bit field are given as follows:

  • B0: Debug

  • B1: Debug stack

  • B2: Debug sockets

  • B3: Reserved

  • B4: QoS_Support

  • B5: UDP_Optmizations

  • B6: Multitasks

0x04

Stack define

STRUCT

R

UINT

Number of structure (one per defined stack)

STRUCT[]

Table of structure for each defined stack

BYTE

Size of string name in bytes

CHAR[]

String name of the defined stack

UDINT

Stack value

0x05

Configuration

STRUCT

R

WORD

Received CNF version from file header

UDINT

CRC

0x06

I/O connection

STRUCT

R

  • Size table

WORD

Sze in byte (CIP_TARGET_IO+CIP_ORIGINATOR_IO)/8 in bytes

  • Table

WORD[]

Table of IO status

  • Size table

WORD

Sze in byte (CIP_TARGET_IO+CIP_ORIGINATOR_IO)/8 in bytes

  • Table

WORD[]

Table of IO status

0x07

Connection Information

STRUCT

R

  • Maximum CIP IO connections opened

UINT

Number of class 1 connections opened since the last reset

  • Current CIP IO connections

UINT

Number of class 1 connections currently opened

  • Maximum CIP explicit connections opened

UINT

Number of class 3 connections opened since the last reset

  • Current CIP explicit connections

UINT

Number of class 3 connections currently opened

  • CIP connection opening error

UINT

Increments each time a forward open is unsuccessful (originator and target)

  • CIP connection time out error

UINT

Increments when the connection is time out (originator and target)

  • Maximum EIP TCP connections opened

UINT

Number of TCP connections opened since the last reset

  • Current EIP TCP connections

UINT

Number of TCP connections currently opened

0x08

IO messaging Diag

STRUCT

RW

  • IO production counter

UDINT

Increments each time a class 0 or 1 message is sent

  • IO consumption counter

UDINT

Increments each time a class 0 or 1 message is received

  • IO production send errors counter

UINT

Increments each time a class 0 or 1 message is not sent

  • IO consumption receive errors counter

UINT

Increments each time a consumption is received with an error

0x09

Explicit messaging Diag

STRUCT

RW

  • Class 3 message send counter

UDINT

Increments each time a class 3 message is sent

  • Class 3 message receive counter

UDINT

Increments each time a class 3 message is received

  • UCMM message send counter

UDINT

Increments each time a UCMM message is not sent

  • UCMM message receive counter

UDINT

Increments each time a UCMM message is received

0x10

CCO mode

WORD

RW

  • 0x01: Activate access to CCO in the module

  • 0x00: Block access to CCO

Instance Services

Service Code

Name

Description

0x01

Get Attribute All

Returns the value of all class attributes.

0x0E

Get Attribute Single

Returns the value of the specified attribute.

0x10

Set Attribute Single

Modifies the instance attribute value with the access type of RW

0x4B-0x66

Internal services

Reserved

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

Was this helpful?