# Quickstart

In this 5–10 minute guide, you will set up communication with a Modbus TCP device and create several tags available for the OPC UA client. If you do not have Monokot Server, go to[ ](https://www.monokot.io/download/)[<mark style="color:blue;">this</mark>](https://docs.monokot.io/basics/installation) section to download and install it.

### Connection to Monokot Server <a href="#h.26ahlvn04b2v" id="h.26ahlvn04b2v"></a>

1. Open Monokot Server Administrator
2. Create a new connection or just click the *Connect* button to connect to the local server
3. Please wait until the main application window opens

### Configuring Modbus TCP Device <a href="#h.g6g8jfvgg34d" id="h.g6g8jfvgg34d"></a>

1. In the *Server Explorer* pane, double-click on *Devices* to open the device manager

![](https://4282443477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cwznMbQcEQxtnjiRDYX%2Fuploads%2FKvWv26WsmKpxT4mXp6dC%2FQuickstart%20\(360034746351\)_mceclip1.png?alt=media\&token=fe56a8b1-07e8-4aff-949b-5f1b9d6fc63e)

2. In the device manager, click on the *New Device* button
3. In the drop-down menu, select *Modbus TCP*
4. On the settings pane, enter the IP address of the target device and slave ID (if required)

### Creating Tags <a href="#h.ux81zl8bzqaa" id="h.ux81zl8bzqaa"></a>

1. In the *Server Explorer* pane, double-click on *Tags* to open the tags manager

![](https://4282443477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cwznMbQcEQxtnjiRDYX%2Fuploads%2FQjJuB7HkqwFfQViX1EV0%2FQuickstart%20\(360034746351\)_mceclip0.png?alt=media\&token=e190b31c-3786-43c5-88c9-1d8c0baffb10)

2. In the tags manager, click on the *New Group* button
3. Double-click on the new group, name it as **MyModbusTags** and press the Enter key
4. Click on the *New Tag* button
5. To associate the tag with a device, double-click on the *Device* cell
6. Click on the *...* button in the device cell
7. In the device selector dialog window, select the **Device1** and click the *OK* button
8. Double-click on the *Address* cell
9. To specify Modbus register, in the address editor, type **300000\@WORD** and press the Enter key or use graphical address editor by clicking on the *Pen* button. Thus, the tag will be addressed to the first register of the Internal Registers area in the Word format
10. Click on the *New Tag* button and associate the created **Tag2** with **Device1**
11. Set address **400001.3** to **Tag2**. Thus, the tag will be addressed to the fourth bit of the second register from the Holding Registers area
12. To make your changes take effect, click on the *Sync* button (on the top panel) or press the F5 key

After the changes are synchronized with the server, the **Tag1** and **Tag2** will be associated with the specified registers and will become available to the OPC UA client.

### Testing by Third-party OPC UA client <a href="#h.gvnzwlpaxsg" id="h.gvnzwlpaxsg"></a>

In the OPC UA client, connect to the Monokot Server using the following endpoint parameters:

* Endpoint URL - **opc.tcp\://localhost:43043/MonokotOPC**
* Security Policy - **None**
* Authentication Mode - **Anonymous**

Now you can see the created tags and device in the object browser of your OPC UA client.

![](https://4282443477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cwznMbQcEQxtnjiRDYX%2Fuploads%2FxbPqQoWwdDx8r5iQWIsm%2FQuickstart%20\(360034746351\)_image-4.png?alt=media\&token=efee6fe5-3752-459d-8dd8-e0500744b9bf)


---

# 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/quickstart.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.
