![](/images/new-backgrounds/1203057/20305747x1.webp)
| Page 24 of 26 |
Appendix B.2. Driver Stats
EGD producers produce data messages for slave devices to consume. The type and frequency of the messages depends on the producer configuration.
The driver counts all incoming messages of interest as the PLC_READ_MSG_RECD statistic. Other legal messages which do not contain the data this driver is interested in are discarded and are counted as the MSG_IGNORED statistic.
The PLC_READ_MSG_RECD statistic is incremented once by each Map Descriptor which extracts data from an incoming message. Thus, one incoming message and three associated Map Descriptors would cause the statistic to increase by three (when viewed from the connection's point of view.)
This driver can expose some driver statistics by writing data to a Data Array. A special Map Descriptor is required. The driver recognizes the Map Descriptor by its name which must be
The following example shows how this special Map Descriptor can be configured.
Nodes |
|
|
Node_name, | Protocol |
|
null_node, | ge_egd |
|
Data_Arrays |
|
|
Data_Array_Name, | Data_Format, | Data_Array_Length |
EGD_STATS, | UINT32, | 100 |
Map_Descriptors |
|
|
Map_Descriptor_Name, | Data_Array_Name, | Node_name |
EGD_STATS, | null_node |
When the driver sees this Map Descriptor it uses the Data Array EGD_STATS (in this example) to store driver specific statistics. Only one of these Map Descriptors may be specified per FieldServer.
The driver stores the following data.
Array Element | Contents |
0 | Messages Produced |
1 | Bytes Produces |
2 | Messages Received |
3 | Bytes Received |
4 | Messages Consumed |
5 | Messages Ignored |
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldserver.com Tel: (408)