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

How to read system variables via their Modbus address

Industry Automation and Control Forum

This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.

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
  • Industry Automation and Control Forum
  • How to read system variables via their Modbus address
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
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
32
LeTomas
Lt. Commander LeTomas Lt. Commander
11
RoozeeR
Lt. Commander RoozeeR Lt. Commander
6
JerryBartlemay
Lieutenant JG JerryBartlemay Lieutenant JG
6
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Industry Automation and Control Forum
Yelper85
Ensign Yelper85
Ensign

Posted: ‎2024-04-26 04:01 AM

0 Likes
3
2035
  • 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-04-26 04:01 AM

How to read system variables via their Modbus address

Hi all,

 

I currently read the PLC serial number via the variable name. I'd like to do this by reading the Modbus address. How can I do this?

 

If you look at the attached images you'll see the code using the full variable name which works, but I can't seem to get the Modbus read on the line below it to be accepted no matter what I do, yet I've seen it online (sods law I can't find it again even if I search my history).

 

Can somebody tell me the correct syntax structure for reading the system variables?

Attachments
Labels
  • Labels:
  • Smart Design & Engineering
  • 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 3
MatthewM
Lt. Commander MatthewM
Lt. Commander

Posted: ‎2024-04-28 01:05 PM

0 Likes
1
2001
  • 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-04-28 01:05 PM

I'm assuming you are talking about an M241 PLC?  Based on another entry in the help, it might not be %SW, but %MW.  %MW60050 is i_byIPAddress, a read-only System Variable.  Try %MW60002.

 

That said, there is a note in the help which says 60000 to 60034 are "not accessible through the application":

MatthewM_2-1714333760637.png

 

MatthewM_3-1714333775068.png

 

Compare against this, which specifies %MW, and is also a system read-only variable:

MatthewM_4-1714333898664.png

 

Have a play based on that and see what you get.  Also try reading both of those registers directly via Modbus tester and see if they are available externally (assuming 60002 = %MW60002 = 460002 or 460003).

 

It is also possible it is neither %MW or %SW, and may just be the straight Modbus address where 6x is the 'Extended Registers' range that some devices support (but I have never used or seen used).

Reply

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

Yelper85
Ensign Yelper85
Ensign

Posted: ‎2024-04-28 11:10 PM

In response to MatthewM
0 Likes
0
1967
  • 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-04-28 11:10 PM

Hi @MatthewM,

 

Many thanks for replying, much appreciated.

 

The PLC is an M251.

 

I can definitely read 60002 if I read by 'Var Name', so where it says ''Not accessible through the application'' I wonder if this means only the Modbus reads via %SW and/or %MW are not allowed for that variable.

I will try addressing the Modbus registers directly though as you suggest and report back.

Reply

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

Sharonmartin
Crewman Sharonmartin
Crewman

Posted: ‎2024-07-01 10:32 PM

0 Likes
0
1789
  • 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-07-01 10:32 PM

To read system variables using their Modbus address instead of their names, you need to use the correct syntax in your PLC programming. Instead of referring to the variable by its name, you should use the Modbus address directly. Make sure the Modbus read command is formatted correctly for your PLC system. Sometimes, the syntax can be tricky, so double-check your code for any errors in how you're specifying the Modbus address. If you've seen examples online before but can't find them now, try checking your browsing history for reference. This approach should help you read system variables via Modbus effectively.

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