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

Can't set default value of read-only status variables on M172

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
  • Can't set default value of read-only status variables on M172
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
FedericoM
Commander FedericoM Commander
66
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
47
LeTomas
Lt. Commander LeTomas Lt. Commander
14
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Machine Expert - HVAC

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to HVAC and Pumping Forum
Solved
obscuresc
Lieutenant JG obscuresc
Lieutenant JG

Posted: ‎2020-12-01 03:14 PM . Last Modified: ‎2020-12-14 01:38 AM

0 Likes
7
4606
  • 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: ‎2020-12-01 03:14 PM . Last Modified: ‎2020-12-14 01:38 AM

Can't set default value of read-only status variables on M172

Hi,

 

I'm trying to design a consistent Modbus map across different devices in the same product range. The majority of these variables are being implemented as Status Variables. Some I would like to be set during Programming and remain constant for the life of the machine, and was intending on using the read-only property to prevent remote writes from changing them.

 

If I enable read-only, it disables the ability to set the default value.

Am I going about this the wrong way or should this work?

I'm running EcoStruxure Machine Expert - HVAC v1.2.1.

 

Cheers,

Jack

Labels
  • Labels:
  • HVAC
  • 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

Accepted Solutions
FedericoM
Commander FedericoM Commander
Commander

Posted: ‎2020-12-03 10:58 PM

In response to obscuresc
0 Likes
0
4561
  • 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: ‎2020-12-03 10:58 PM

Hi @obscuresc ,

 

I see 2 options:

1) use the MAC Address, it's unique

2) write into an EEprom parameter, load its content in the init task into a RAM variable. In the background task write continously the RAM value into the EEprom.using target block sysWritePar<type>(adr(eepromvariable), ramvariable). EEprom is protected from rewrite of the same value.

 

With the solution 2, the eeprom could be changed using a param.bin or a new download all.

 

Federico

See Answer In Context

  • Tags:
  • english
Reply

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

Replies 7
Rodrigo_Garcia
Commander Rodrigo_Garcia Commander
Commander

Posted: ‎2020-12-02 06:18 AM

0 Likes
5
4597
  • 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: ‎2020-12-02 06:18 AM

Hello @Luigi_dAndrea . Do you know who can support on this?

 

Thanks in advance,

 

Regards,

 

Rodrigo G. 


Industrial Automation Community manager

  • Tags:
  • english
Reply

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

FedericoM
Commander FedericoM Commander
Commander

Posted: ‎2020-12-03 02:49 AM

In response to Rodrigo_Garcia
0 Likes
4
4587
  • 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: ‎2020-12-03 02:49 AM

Hi @obscuresc @Rodrigo_Garcia ,

 

when you define a Status Variable as Read Only, it will be protected from modbus writes, but it is supposed to be updated from IEC code in the Programming perspective, that's why default, min, max are disabled in this case.

 

Regards,

Federico

  • Tags:
  • english
Reply

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

obscuresc
Lieutenant JG obscuresc
Lieutenant JG

Posted: ‎2020-12-03 09:09 PM

In response to FedericoM
0 Likes
3
4566
  • 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: ‎2020-12-03 09:09 PM

Hi @FedericoM,

 

That works nicely if I want to do a read-only variable for the state of the machine or using a program at boot time to set constant information.

What if I want to have a serial number that is unique to each machine that should not be available to change by the end user, but can be set prior by us before a customer gets it?

 

Jack

 

  • Tags:
  • english
Reply

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

FedericoM
Commander FedericoM Commander
Commander

Posted: ‎2020-12-03 10:58 PM

In response to obscuresc
0 Likes
0
4562
  • 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: ‎2020-12-03 10:58 PM

Hi @obscuresc ,

 

I see 2 options:

1) use the MAC Address, it's unique

2) write into an EEprom parameter, load its content in the init task into a RAM variable. In the background task write continously the RAM value into the EEprom.using target block sysWritePar<type>(adr(eepromvariable), ramvariable). EEprom is protected from rewrite of the same value.

 

With the solution 2, the eeprom could be changed using a param.bin or a new download all.

 

Federico

  • Tags:
  • english
Reply

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

Anonymous user
Not applicable

Posted: ‎2021-02-08 01:22 AM . Last Modified: ‎2021-02-08 08:29 PM

0 Likes
0
4183
  • 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: ‎2021-02-08 01:22 AM . Last Modified: ‎2021-02-08 08:29 PM

Read these instructions carefully, and look at the equipment to become familiar with the Modicon M172 Performance Logic Controllers, Hardware User Manual Prg (Programming), the menu Set Status (M171 Optimized only), and Alarms of the M171 minimum/maximum default values of the resource displayed on.

 

 

 

Nox App Player

  • Tags:
  • english
Reply

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

Geethanjali
Ensign Geethanjali Ensign
Ensign

Posted: ‎2021-02-08 01:41 AM

In response to obscuresc
0 Likes
1
4177
  • 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: ‎2021-02-08 01:41 AM

Hi,

 

For Having a unique serial number you can do the same, Have a read only variable (eg.Var1) and move Local variable(eg: Var2) data in Boot task/ init task to Var1. So all you need to do for the next machine is change the value of Var2 before download.

In this case the serial number is controlled by you and is not accessible to customer. 

 

 

  • Tags:
  • english
Reply

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

Khoa_NTM
Lieutenant | EcoXpert Master Khoa_NTM Lieutenant | EcoXpert Master
Lieutenant | EcoXpert Master

Posted: ‎2023-06-16 11:50 AM

In response to Geethanjali
0 Likes
0
1704
  • 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: ‎2023-06-16 11:50 AM

Hi @all

I use M172 as device slave. 

Attach the digital input to a register address in the status variable. I used modbus poll to read that address. it's ok. but I want multiple digital inputs to be on the same register which is binary 0000111...

eg Di1 : 40001.0

      di2: 40001.1

 

how can i do it please help me make it

Thanks

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