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

Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation
Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively. Register now to secure your spot!

M172: How to change RS485 Device Node Modbus Address on the fly

HVAC and Pumping Forum

Support Forum for HVAC and pumping machines, Modicon M17x and EcoStruxure Machine Expert HVAC software for chillers, AHU, CRAC units for datacenters or process chillers applications - from design, implementation to troubleshooting and more, by Schneider Electric.

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
  • HVAC and Pumping Forum
  • M172: How to change RS485 Device Node Modbus Address on the fly
Options
  • 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
FedericoM
Commander FedericoM Commander
85
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
53
LeTomas
Lt. Commander LeTomas Lt. Commander
14
M_Cervati
M_Cervati Support
6
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to HVAC and Pumping Forum
pete238479
pete238479
Cadet

Posted: ‎2025-08-08 09:57 AM

0 Likes
1
47
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2025-08-08 09:57 AM

M172: How to change RS485 Device Node Modbus Address on the fly

I have an M172P running as a Modbus RTU Master on RS485-2, connected to an RTU device, and SUCCESSFULLY reading data from the device.

 

Knowing the Modbus RTU Unit ID of the device, I can set it in the 'Modbus Address' field of the Modbus Device Node for the RS485-2 resource in the Resource tree, rebuild, download, and run. No problems here.

 

What I want to do is change the Unit ID (Modbus Address) at runtime, either on-the-fly, or at least during initialization (in the Init task) or at reboot (in the Boot task). For example: save the desired Modbus Address as an EEPROM parameter (ex. DEVICE_UNITID), then in the Init task, so something like:

         sysMbMRtuNodeStatus[0].addr_1 := DEVICE_UNITID;

This throws an compiler error, presumably because sysMbMRtuNodeStatus is R/O, or addr_1 is R/O.

         INIT(5) - error G0008: sysMbMRtuNodeStatus[0].addr_1 => Invalid access to variable

I will assume that doing the same operation in response to an HMI button would also not work

 

Is there any way to update the Modbus Address (Unit ID) that an Modbus RTU Device Node is using at runtime? Specifically, is there any way OTHER than doing MB RTU master requests from a program (where the modbus request function blocks could take an arbitrary Modbus Address (unit ID)) ?

 

Thanks!

 

 

Details:

Machine Expert HVAC 1.6.0

Target: M172P, BIOS 596.14

Labels
  • Labels:
  • Connectivity
  • 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
Reply 1
M_Cervati
M_Cervati Support
Support

Posted: ‎2025-08-18 07:42 AM

0 Likes
0
19
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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: ‎2025-08-18 07:42 AM

Hi,

It is not possible to change the ID node at run time using modbus messages in Configuration.

But it is possible to change the ID node at run time using the modbus on event mode with FBs dedicated for modbus master communication.

In attachment a modbus module to present how to use both mode of modbus communication. Modbus on event is showed starting from slide 7.

BR

 

Marco Cervati

 

Attachments
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

Welcome!

Welcome to your new personalized space.

of