> For the complete documentation index, see [llms.txt](https://docs.yudash.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yudash.com/dc/df/modbus/modbus-poll-tutorial.md).

# Modbus Poll Tutorial

For a new instrument integration with IoT, it is advisable to first read a given set of registers using PC based software to validate Modbus settings of the instrument. Following are two popular software tools used in the industry:

1\) Modscan [download link](https://www.win-tech.com/)

2\) Modbus Poll [download link](https://www.modbustools.com/download.html)

{% hint style="info" %}
The integration of instrument with PC based software is not in YuDash support scope. The details of software are shared for reference only and ease of integration.&#x20;
{% endhint %}

In this tutorial, steps for reading the Modbus instrument using YuDash IoT device with help of Modbus poll is explained (with focus on data type). Following are steps involved

## 1) Modbus read through Modbus Poll

1a) Interface the given Instrument using Modbus poll software.&#x20;

1b) A sample modbus register value has been read in Modbus poll and a non-zero value is validated successfully.&#x20;

<figure><img src="/files/e1BmF8keWPPp6JRtWzIh" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Details and support for above step (1)is outside the scope of YuDash support.&#x20;

As per customer requirement, YuDash provided online training and RS-485 to USB kit on chargeable basis.
{% endhint %}

## 2) Mapping of Modbus-Poll Settings to YuDash Modbus

<figure><img src="/files/MnXe9BX6ag72kzdTKccg" alt=""><figcaption><p>RS485/Modbus instrument is connected to YuDash IoT device</p></figcaption></figure>

### 2a) Baudrate and parity settings

<figure><img src="/files/2CaHFgHJ1UvZj9LfPV6e" alt=""><figcaption></figcaption></figure>

### 2b) SlaveID, register and display type mapping

<figure><img src="/files/2nZIt92J0CdjTA7vcc5v" alt=""><figcaption></figcaption></figure>

## 3) Mapping of Display data types to YuDash Modbus Types

There are various data types (16, 32 and 64 bit) applicable in Modbus. It is important to have correct data type selected while reading the instrument/PLC from YuDash IoT devices. The data types are explained in [Modbus Integration guide. ](https://docs.yudash.com/dc/df/modbus/pages/VogxISTVQJKQuRFsVKvT#h.jt0n9eorg4hg_l)

After successful read of register in step 1b, corresponding code in "Type" has to be filled in YuDash Modbus settings as per below mapping:&#x20;

<figure><img src="/files/D1F3pUzyuyKQSkQArioj" alt=""><figcaption></figcaption></figure>

### Data Type for 16 bit integers

<figure><img src="/files/1BIld7jYT9rdaRnWig1o" alt=""><figcaption></figcaption></figure>

### Data Type for 32 bit signed integer

<figure><img src="/files/1jhz1k52aUosR3Hy3wAd" alt=""><figcaption></figcaption></figure>

### Data type for 32 bi unsigned integer

<figure><img src="/files/lTqgToF58e5jCXmN9gNn" alt=""><figcaption></figcaption></figure>

### Data type for 32 bit Float

<figure><img src="/files/QXqdjUnExgigk6nlyrns" alt=""><figcaption></figcaption></figure>

### Data type for 64 bit data types

YuDash supports few 64 bit register data types which are converted to 32 bit floating point numbers.

## Byte Alignment Reference

<figure><img src="/files/kXVazr0MoiDD8LrntYbz" alt=""><figcaption></figcaption></figure>

## 4) Technical Notes

### 4a) Data exchange between YuDash IoT and RS485 instrument

<figure><img src="/files/FhPkdarxAqpbWigvOOdT" alt=""><figcaption></figcaption></figure>
