Справочник Пользователя для Omron CS1W-ETN11

Скачать
Страница из 317
241
Command/Response Reference
Section 11-3
11-3-23 PROTOCOL STATUS READ
Reads the Ethernet Unit protocol status.
Command Block
Response Block
Parameters
IP Status (Response)
Twelve types of IP status information occupying 4 bytes each are returned in
the following sequence. Each value is returned as an 8-digit hexadecimal
value.
1,2,3...
1.
Total number of IP packets received.
2.
The number of IP packets discarded due to an error with the checksum in
the packet header. 
3.
The number of IP packets discarded because the received packet was
larger than the overall packet length value in the packet header.
4.
The number of IP packets discarded because the minimum size of the IP
header data could not be stored in the first short buffer when an attempt
was made to store the packet. Refer to 11-3-24 MEMORY STATUS READ
and Appendix F Buffer Configuration.
5.
The number of packets discarded for one of the following reasons:
• The IP header length value in the IP header was smaller than the
smallest size of the IP header. 
• The size of the first short buffer was smaller than the IP header length
value in the IP header when storing the packet.
6.
The number of IP packets discarded because the IP header length was
larger than the overall packet length value in the packet header.
7.
The number of fragmented packets received.
8.
The number of received fragmented IP packets discarded because a
queue for reassembly could not be secured.
9.
The number of fragmented IP packets discarded because they could not
be reassembled within 12 seconds after being received. 
10. Always 0.
11. The number of packets addressed to other networks that have been dis-
carded.
12. Always 0.
ICMP Status (Response)
Ten types (46 items) of ICMP status information occupying 4 bytes each are
returned in the following sequence. Each value is returned as an 8-digit hexa-
decimal value.
1,2,3...
1.
The number of times the ICMP error routine was called. The ICMP error
routine uses ICMP packets to inform the source about errors. The routine
is called when an illegal packet is received (error in IP option processing
or error in relay processing) or if the object port does not exist when using
UDP.
2.
Always 0.
62
27
Command 
code
48 bytes
Command 
code
Response 
code
IP status
184 bytes
184 bytes
12 bytes
ICMP status
TCP status
UDP status
27
62