Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Kristjan on May 25, 2022, 08:38:08 AM

Title: Modbus scanner device from profile - No structure?
Post by: Kristjan on May 25, 2022, 08:38:08 AM
I am starting to use Modbus scanner in conjunction with user defined structure (Modbus read to structure and Modbus write from structure). Works well by creating devices one by one (see attachment 2) but if I create a new device from profile I need to manually edit each device and enter the structure I want to use. In the help file on the topic (Modbus I/O scanner configuration - App Note) there is a description of exactly what I want to do but I am unable to select a structure name when creating a new device (see attachment 1). This leads to me having to manually enter the structures for each device (see attachment 3).

I also need to add the profile for every new device I create from the profile...

What am I missing? How to I get the structure to follow the profile (if that is what's missing)? And how to I get the profile to stay the same for each new device?
Title: Re: Modbus scanner device from profile - No structure?
Post by: RBPLC on May 25, 2022, 08:42:55 AM
You need to individually write your registers (or pairs of registers) to each member of HLS1. After doing that, "Generate Profile from Config" and you should be able to use the UDT with a new device. You also may need to populate the "New Device Name" field prior to being able to enter a UDT. 
Title: Re: Modbus scanner device from profile - No structure?
Post by: BobO on May 25, 2022, 10:31:21 AM
What am I missing? How to I get the structure to follow the profile (if that is what's missing)? And how to I get the profile to stay the same for each new device?

To have the option of using a UDT, every local field must be associated with the UDT. The last entry in your config references V rather than HLS1. If every field is tied to the UDT, you will be given the option to add the UDT to profile.
Title: Re: Modbus scanner device from profile - No structure?
Post by: Kristjan on May 25, 2022, 11:10:18 AM
Thank you guys, it works like a charm now!