Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Editable named/structured variable names for generic modbus DTM IO scanner

Modicon PAC Forum

A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Industrial Automation
  • Modicon PAC Forum
  • Editable named/structured variable names for generic modbus DTM IO scanner
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
MatthewM
Lt. Commander MatthewM
8
RoozeeR
Lt. Commander RoozeeR Lt. Commander
7
Trinxs1
Lt. Commander Trinxs1 Lt. Commander
6
ciupol
Lieutenant ciupol
6
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Modicon PAC Forum
dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2024-02-05 09:53 AM

0 Likes
2
915
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-02-05 09:53 AM

Editable named/structured variable names for generic modbus DTM IO scanner

Hi!

Since the DTM browser does not allow any change inside a modbus device request without a offline build I tried to find a nicer way around that and having the scanned variables named and changeable without a offline build.

I tried to make my own struct with an INT with bit rank naming for my variables/IOs and somehow tie them to the default/automatically generated scanned variable(s) of the scanner. But I fails because a struct can not be an alias of an INT for example even if the struct in turn contains an INT too 😞

I previously copied data from the scanner variables into my own variables using some ST but I'm not really happy with that solution either, not pretty, extra work coding, extra work maintaining and a source of possible human mistakes 😞

 

Does someone know a better way to create variable names for scanned variables while still allowing them to be modified without offline build all the time?

 

I have also previously posted a feature request regarding this here:

M580 DTM browser - allow changes online - Schneider Electric Community

And it was accepted as scheduled for ESCE v17, however I suspect that the answer meant that this feature will be available only for the next generation remote IO mentioned, not for the generic modbus DTM so I feel this issue will probably persists even with ESCE v17 😞

Labels
  • Labels:
  • 02. Modicon M580 ePAC
  • 06. EcoStruxure Control Expert
  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 2
MatthewM
Lt. Commander MatthewM
Lt. Commander

Posted: ‎2024-02-07 08:21 PM

0 Likes
0
904
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-02-07 08:21 PM

The incoming raw data is a byte array.  Use the generic Modbus DTM, then use EXTRACT block to take the byte array and overlay on top of your structured variable, making sure to match the size of source and destination data.  You could do this inside a DFB for VSDs, Advantys I/O, Weidmuller I/O etc.  This is a well established practice (here at least).  There is no need to do anything clever inside the DTM browser other than where and how many words to read/write.

 

PS.  We always use the generic DTMs unless there is no other choice.

Reply

Link copied. Please paste this link to share this article on your social media post.

dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2024-03-05 10:42 PM

0 Likes
0
833
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2024-03-05 10:42 PM

Hi! Thanks for this! I had no idea about this FB. I started using this method and found it way superior way of working with variable/IO names than using the DTM browser for that. The only things a bit annoying with it is that EXTRACT is a bit picky about the data sizes to you have to keep that in mind when making changes to size of SRC/DST structures so this is one more thing to be careful about or you may suddenly have something else than 0 at ERR and IO is stops working completely. And the other thing it is not very user friendly with byte counting when we are so used to everything else is done in 16 bit but I think I can live with that 🙂

 

And one last thing when working with DDT in general is of course this workaround https://www.youtube.com/watch?v=XPjjP_lwfhw which in my opinion silly and unnecessary extra step for doing certain DDT operations. It just feels a bit scary unattaching hundreds of variable names and the little thought that comes in the back of your mind that saying "is everything connected back correctly to where is was before?" hehe 😛

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of