# Diagnostics

In addition to the diagnostic variables described in the Devices [<mark style="color:blue;">section</mark>](/tags-and-devices/devices/diagnostics.md), the Modbus device in slave mode also has the following diagnostic variables:

**Current Connections (Modbus TCP only):** contains the current number of connections to the server.

**Incoming Read Requests:** contains the number of incoming read requests for the current slave identifier.

**Incoming Write Requests:** contains the number of incoming write requests for the current slave identifier.

**Last Incoming Read Utc Time:** contains the UTC time of the last incoming read request for the current slave identifier.

**Last Incoming Write Utc Time:** contains the UTC time of the last incoming write request for the current slave identifier.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.monokot.io/tags-and-devices/modbus-connectivity/diagnostics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
