News:

  • October 13, 2025, 05:53:56 PM

Login with username, password and session length

Author Topic: Modbus scanner device from profile - No structure?  (Read 1493 times)

Kristjan

  • Sr. Member
  • ****
  • Posts: 67
    • Idnadartaekni ehf
Modbus scanner device from profile - No structure?
« 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?
« Last Edit: May 25, 2022, 08:42:58 AM by Kristjan »

RBPLC

  • Hero Member
  • *****
  • Posts: 585
Re: Modbus scanner device from profile - No structure?
« Reply #1 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. 
« Last Edit: May 25, 2022, 08:47:12 AM by RBPLC »

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: Modbus scanner device from profile - No structure?
« Reply #2 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.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Kristjan

  • Sr. Member
  • ****
  • Posts: 67
    • Idnadartaekni ehf
Re: Modbus scanner device from profile - No structure?
« Reply #3 on: May 25, 2022, 11:10:18 AM »
Thank you guys, it works like a charm now!