# Template Modbus devices

**URL:** <https://forum.tatsoft.com/t/template-modbus-devices/177>\
**Category:** Devices Communication\
**Tags:** scada, frameworx\
**Created:** [March 23, 2022, 12:29pm UTC](https://forum.tatsoft.com/t/template-modbus-devices/177 "2022-03-23T12:29:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![0rland0](https://forum.tatsoft.com/letter_avatar_proxy/v4/letter/0/258eb7/32.png) [@0rland0](https://forum.tatsoft.com/u/0rland0)\
**Post date:** [March 23, 2022, 12:29pm UTC](https://forum.tatsoft.com/t/template-modbus-devices/177/1 "2022-03-23T12:29:46Z")

</div>

Hi everyone!

I’m building my first demo with FrameworX.

Has anyone built Modbus tags based on templates?

![image](https://forum.tatsoft.com/uploads/default/original/1X/06f1315e6b44e0f7720cc670fcaced0a8370379b.png)

After building a User Custom Type, I don’t know where to tell the software that a certain tag has X initial address. Also, since in the PLC there is a substructure, each tag has a address based on the initial one.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![dschultz71](https://forum.tatsoft.com/user_avatar/forum.tatsoft.com/dschultz71/32/9_2.png) [@dschultz71](https://forum.tatsoft.com/u/dschultz71)\
**Post date:** [March 24, 2022, 7:38pm UTC](https://forum.tatsoft.com/t/template-modbus-devices/177/2 "2022-03-24T19:38:38Z")

</div>

When you create an instance of the UCT UI, you will configure the Tag Properties with a Device address. I have a attached an example of a float coming from 400056. Hope this helps.

 ![Screen Shot 2022-03-24 at 2.34.22 PM](https://forum.tatsoft.com/uploads/default/original/1X/01dd13f68bd79d7ee518131ddee8e2d72bfe9c17.jpeg)  
 ![Screen Shot 2022-03-24 at 2.34.06 PM](https://forum.tatsoft.com/uploads/default/original/1X/d551565d54daf86d6a450da9436230011032363d.jpeg)

---

<div class="post-metadata">

**Author:** ![0rland0](https://forum.tatsoft.com/letter_avatar_proxy/v4/letter/0/258eb7/32.png) [@0rland0](https://forum.tatsoft.com/u/0rland0)\
**Post date:** [March 25, 2022, 8:47am UTC](https://forum.tatsoft.com/t/template-modbus-devices/177/3 "2022-03-25T08:47:38Z")

</div>

You are right, I’m able to give an address to a new tag using the device’s address.

What I’m still unsure of, is how the program will know the location of each subsequent element in the structure.

Assuming 400056 is the initial address, the rest of tags embedded in the UCT also need an address (address + offset).

Example from Control Expert Classic:

 ![image](https://forum.tatsoft.com/uploads/default/original/1X/165d6e8762ee16c5b92cf61a95a789c82e75196a.png)

---

<div class="post-metadata">

**Author:** ![Eduardo\_support](https://forum.tatsoft.com/letter_avatar_proxy/v4/letter/e/2bfe46/32.png) [@Eduardo\_support](https://forum.tatsoft.com/u/Eduardo_support)\
**Post date:** [April 1, 2022, 1:44pm UTC](https://forum.tatsoft.com/t/template-modbus-devices/177/4 "2022-04-01T13:44:03Z")

</div>

Hi 0rland0 and dschultz71,

I agree with you two, you can use an array or a template with a device point. What will happen is that the following tags will be defined with the address + n.  
0rland0, the program will know the location of each tag just assuming the next tag address plus 1.

We did a test and if you put the same inicial address for both, Template and array they will show the same value, as shows the image below.

 ![image1](https://forum.tatsoft.com/uploads/default/original/1X/82d119b3937dca4f08a446e86b2f2b1ecf7e41d1.png)
