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

Contact Support

Close

Ask our Experts

Have a question related to our products, solutions or services? Get quick support on community Forums

Email Us

For Community platform-related support, please email us

New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).

Unity storing reals on odd addresses. All of my addresses have shifted in a recent rebuild.

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.

Search in

Improve your search experience:

  • Exact phrase → Use quotes " " (e.g., "error 404")
  • Wildcard → Use * for partial words (e.g., build*, *tion)
  • AND / OR → Combine keywords (e.g., login AND error, login OR sign‑in)
  • Keep it short → Use 2–3 relevant words , not full sentences
  • Filters → Narrow results by section (Knowledge Base, Users, Products)
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: 

Select a Country

Please select a country to continue with beta search.

  • Home
  • Schneider Electric Community
  • Industrial Automation
  • Modicon PAC Forum
  • Unity storing reals on odd addresses. All of my addresses have shifted in a recent rebuild.
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
Trinxs1
Trinxs1 Leader
19
YONGHO-KIM
YONGHO-KIM Mentor
9
ciupol
ciupol
9
View All

Recommended Forums

  • Industry Automation and Control Forum

  • Machine and Motion Control Forum

  • Alliance Partner Program System Integrator

Related Products
product field
Schneider Electric
Modicon M580

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Modicon PAC Forum
Start a Topic
Anonymous user
Not applicable

Posted: ‎2020-01-15 10:57 AM

1 Like
10
9766
  • 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: ‎2020-01-15 10:57 AM

Unity storing reals on odd addresses. All of my addresses have shifted in a recent rebuild.

I have a situation where my program is storing real variables with the starting word is an odd %mw for example %mw1553. My version of the program from a week ago the same real in the same structure was at %mw1554. There is not change to the structure, no new variables added or removed. I was under the impression that all real data types need to start at even address. Can anyone help me find what setting I may have changed or what may have happened here. We are running unity 13.1, and ran an update recently. All I can recall settings wise that has been changed is increasing memory size from 5000 to 7000 and "allowin dynamic arrays". This is an M580 2040 

  • Tags:
  • m580
  • unity
Reply

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

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 10
Omaelk
Omaelk Leader
Leader

Posted: ‎2020-01-22 08:50 AM

1 Like
9
9740
  • 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: ‎2020-01-22 08:50 AM

hey @Anonymous user , thank you for your question
 
I moved it to this forum when the community of experts will be able to provide you the right support 

 

@Oncom , I know you post a lot about M580 , can you help here please? 

 

 

Reply

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

Anonymous user
Not applicable

Posted: ‎2020-01-23 07:54 PM

In response to Omaelk
1 Like
0
9714
  • 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: ‎2020-01-23 07:54 PM

The reason was due to unity shuffling memory addresses when it is in simulation mode

Reply

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

Oncom
Oncom
Mentor

Posted: ‎2020-01-23 08:12 PM

In response to Omaelk
1 Like
7
9713
  • 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: ‎2020-01-23 08:12 PM

@Omaelk sure.

 

 

 

 

@Anonymous user Hi,

do you mean your Odd %MW address is incidentally shifted to Even after you Rebuild? 

 

Actually, Even addressing on Real data type is not new feature. if you try on Unity Pro 8.0 giving Odd address on Real data type variable it would be Error. 

 

 

www.pamtek.co.id
Reply

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

Anonymous user
Not applicable

Posted: ‎2020-01-23 08:29 PM

In response to Oncom
1 Like
6
9710
  • 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: ‎2020-01-23 08:29 PM

yes I know its not a new feature, that is the problem. In our original developed program we put a ddt at address %mw1000 for example. the first word is at %mw1000, the second thing in there is a real and is placed automatically at %mw1002. If you put your plc in simulation mode it will put the word at %mw1000 and the real at %mw1001

 

For testing a program in simulation mode the plc re positions reals that are in DDTs to be able to start on odd addresses without error. I see this as a huge flaw with the simulator mode, it should act identically to regular operation in terms of memory allocation.  

Reply

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

Oncom
Oncom
Mentor

Posted: ‎2020-01-23 11:26 PM

In response to Anonymous user
1 Like
0
9707
  • 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: ‎2020-01-23 11:26 PM

Ok, now I understand what you are facing. 

 

And I try this also on unity 8.0 and control expert 14.1  and you are absolutely right. 😂

 

 

Hi @Omaelk can you mention/forward to M580 Product manager / R&D team. about this issue. Thanks

 

Simulation:

simulationsimulation

 

Standard:

StandardStandard

www.pamtek.co.id
Reply

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

Eric_Coudurier
Eric_Coudurier Troubleshooter
Troubleshooter

Posted: ‎2020-01-23 11:29 PM

In response to Anonymous user
3 Likes
4
9706
  • 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: ‎2020-01-23 11:29 PM

Hello,

The problem comes from the 32 bits alignment in the M580 platforms. If you map a structure on %MW, due to the 32 bits alignment some holes can be created to align the 32 bits variable on even addresses. (DWORD, REAL...) this is not the case when you use the simulator which is based on 16bits alignment. this is due to the legacy platforms which are all 16 bits, when the simulator was developed. This is explained in the online help in the topic: DDT: Mapping Rules.

 

KR

 

Reply

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

Eric_Coudurier
Eric_Coudurier Troubleshooter
Troubleshooter

Posted: ‎2020-01-24 12:10 AM

In response to Eric_Coudurier
3 Likes
0
9705
  • 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: ‎2020-01-24 12:10 AM

I just forgot something, There is a warning message that can be triggered in case of mapping compatibility. this message is displayed if Control Expert needs to align the 32 bits variable:

 

2020-01-24_08-31-39.jpg

Reply

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

AhmedN
AhmedN
Explorer

Posted: ‎2020-09-30 08:22 PM

In response to Eric_Coudurier
0 Likes
2
8539
  • 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: ‎2020-09-30 08:22 PM

Hi @Eric_Coudurier ,

 

Is there a workaround to this issue other than filling these holes with dummy integers to be able to work on the simulator? Do you know if there is a newer release of the simulator that addresses this issue?

  • Tags:
  • english
Reply

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

Eric_Coudurier
Eric_Coudurier Troubleshooter
Troubleshooter

Posted: ‎2020-10-13 06:55 AM

In response to AhmedN
0 Likes
1
8478
  • 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: ‎2020-10-13 06:55 AM

Unfortunately there is no other options. There is no evolution plan in the new ECE version V15 for this issue.

If you use OFS server, with unlocated data there is no issue. the issue is only present when you use located data on %MW.

  • Tags:
  • english
Reply

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

Eric_Coudurier
Eric_Coudurier Troubleshooter
Troubleshooter

Posted: ‎2020-10-13 07:06 AM

In response to Eric_Coudurier
0 Likes
0
8477
  • 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: ‎2020-10-13 07:06 AM

An other way to overcome the issue, is to arrange the DDT to avoid the "holes". For example, instead of creating a structure like a Word, Real and Real, you can create it using a Real, Real and a Word.

  • Tags:
  • english
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

 

You’ve reached the end of your document

WHAT’S NEXT?

Ask our Experts

Didn't find what you are looking for? Ask our experts!

My Dashboard

Check out the new Feeds and activities that are relevant to you.

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

    Ask our Experts

    Have a question related to our products, solutions or services? Get quick support on community Forums

    Email Us

    For Community platform-related support, please email us

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 © 2026 Schneider Electric

Welcome!

Welcome to your new personalized space.

of

Explore