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 |
|
|
0x02 |
ST_DIAG_CNT |
STRUCT |
RW |
– |
|
UINT |
Increment the counter each time the system is unable to send a frame due to missing resources or an inability to transmit it |
||
|
UINT |
Increment when one connection is timed out |
||
|
UINT |
Increment the counter when the remote station refuses a connection. |
||
|
UDINT |
Increment at each production |
||
|
UDINT |
Increment at each consumption |
||
|
UDINT |
Total number of bytes produced |
||
|
UDINT |
Total number of bytes consumed |
||
|
0x03 |
Input status |
WORD |
R |
– |
|
0x04 |
Output status |
WORD |
R |
– |
|
0x05 |
ST_LINK |
STRUCT |
R |
– |
|
UINT |
– |
||
|
UINT |
– |
||
|
DWORD |
Connection ID |
||
|
DWORD |
Connection ID |
||
|
UDINT |
API of the connection |
||
|
UDINT |
API of the connection |
||
|
UDINT |
RPI of the connection |
||
|
UDINT |
RPI of the connection |
||
|
UDINT |
Network parameters |
||
|
UDINT |
Network parameters |
||
|
UINT |
Originator connection serial number |
||
|
UINT |
Originator vendor ID |
||
|
UDINT |
Originator serial number |
||
|
0x06 |
ST_SOCK_PARAM |
STRUCT |
R |
Send |
|
DWORD |
Internal identifier |
||
|
DWORD |
IP of the remote station |
||
|
UINT |
Port number of the remote station |
||
|
DWORD |
IP of the local station |
||
|
UINT |
Port number of the local station |
||
|
ST_SOCK_PARAM |
STRUCT |
RECV |
||
|
DWORD |
Internal identifier |
||
|
DWORD |
IP of the remote station |
||
|
UINT |
Port number of the remote station |
||
|
DWORD |
IP of the local station |
||
|
UINT |
Port number of the local station |
||
|
0x07 |
ST_PRODUCTION |
STRUCT |
R |
– |
|
WORD |
|
||
|
UDINT |
Internal number of tick before next production |
||
|
UDINT |
Internal number of tick before between production |
||
|
UDINT |
Number of sequence in the production |
||
|
STRUCT |
– |
||
|
UDINT |
Internal use |
||
|
UDINT |
Maximum time between two productions |
||
|
UDINT |
Minimum time between two productions |
||
|
UDINT |
API of the connection |
||
|
UINT |
Number of times when the production is too long |
||
|
UINT |
Number of times when the production is too fast |
||
|
UDINT |
Internal use |
||
|
0x08 |
ST_CONSUMPTION |
STRUCT |
R |
– |
|
WORD |
|
||
|
UDINT |
Internal number of tick before time out |
||
|
UDINT |
Internal number of tick of the time out |
||
|
UDINT |
Number of sequence in the consumption |
||
|
STRUCT |
– |
||
|
UDINT |
Internal use |
||
|
UDINT |
Maximum time between two consumptions |
||
|
UDINT |
Minimum time between two consumptions |
||
|
UDINT |
API of the connection |
||
|
UINT |
Number of times when the consumption is too long |
||
|
UINT |
Number of times when the consumption is too fast |
||
|
UDINT |
Internal use |
||
|
0x09 |
ASM status |
STRUCT |
R |
Status of assembly object |
|
BYTE |
– |
||
|
BYTE |
– |
||
|
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:
|
|||||||||
|
0x62 |
Get Input |
Returns the status and values of the input Response:
|
|||||||||
|
0x63 |
Reset Diag Counters |
Set the value of structure from ST_DIAG to to 0 |