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 |
|
|||||||||
|
0x02 |
Stack Information |
STRUCT |
R |
– |
|||||||||
|
WORD |
The stack types are given as follows:
|
|||||||||||
|
BYTE[4] |
Example:
|
|||||||||||
|
BYTE[4] |
Received from USER_GetVersion() |
|||||||||||
|
0x03 |
Stack Option |
DWORD |
R |
The bit field are given as follows:
|
|||||||||
|
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 |
– |
|||||||||
|
WORD |
Sze in byte (CIP_TARGET_IO+CIP_ORIGINATOR_IO)/8 in bytes |
|||||||||||
|
WORD[] |
Table of IO status |
|||||||||||
|
WORD |
Sze in byte (CIP_TARGET_IO+CIP_ORIGINATOR_IO)/8 in bytes |
|||||||||||
|
WORD[] |
Table of IO status |
|||||||||||
|
0x07 |
Connection Information |
STRUCT |
R |
– |
|||||||||
|
UINT |
Number of class 1 connections opened since the last reset |
|||||||||||
|
UINT |
Number of class 1 connections currently opened |
|||||||||||
|
UINT |
Number of class 3 connections opened since the last reset |
|||||||||||
|
UINT |
Number of class 3 connections currently opened |
|||||||||||
|
UINT |
Increments each time a forward open is unsuccessful (originator and target) |
|||||||||||
|
UINT |
Increments when the connection is time out (originator and target) |
|||||||||||
|
UINT |
Number of TCP connections opened since the last reset |
|||||||||||
|
UINT |
Number of TCP connections currently opened |
|||||||||||
|
0x08 |
IO messaging Diag |
STRUCT |
RW |
– |
|||||||||
|
UDINT |
Increments each time a class 0 or 1 message is sent |
|||||||||||
|
UDINT |
Increments each time a class 0 or 1 message is received |
|||||||||||
|
UINT |
Increments each time a class 0 or 1 message is not sent |
|||||||||||
|
UINT |
Increments each time a consumption is received with an error |
|||||||||||
|
0x09 |
Explicit messaging Diag |
STRUCT |
RW |
– |
|||||||||
|
UDINT |
Increments each time a class 3 message is sent |
|||||||||||
|
UDINT |
Increments each time a class 3 message is received |
|||||||||||
|
UDINT |
Increments each time a UCMM message is not sent |
|||||||||||
|
UDINT |
Increments each time a UCMM message is received |
|||||||||||
|
0x10 |
CCO mode |
WORD |
RW |
|
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 |