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

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.

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
  • Unity storing reals on odd addresses. All of my addresses have shifted in a recent rebuild.
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
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
Anonymous user
Not applicable

Posted: โ€Ž2020-01-15 10:57 AM

1 Like
10
7539
  • 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-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
Janeway Omaelk
Janeway

Posted: โ€Ž2020-01-22 08:50 AM

1 Like
9
7513
  • 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-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
7487
  • 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-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
Commander Oncom
Commander

Posted: โ€Ž2020-01-23 08:12 PM

In response to Omaelk
1 Like
7
7486
  • 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-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
7483
  • 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-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
Commander Oncom
Commander

Posted: โ€Ž2020-01-23 11:26 PM

In response to Anonymous user
1 Like
0
7480
  • 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-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
Lt. Commander Eric_Coudurier Lt. Commander
Lt. Commander

Posted: โ€Ž2020-01-23 11:29 PM

In response to Anonymous user
3 Likes
4
7479
  • 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-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
Lt. Commander Eric_Coudurier Lt. Commander
Lt. Commander

Posted: โ€Ž2020-01-24 12:10 AM

In response to Eric_Coudurier
3 Likes
0
7478
  • 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-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
Crewman AhmedN
Crewman

Posted: โ€Ž2020-09-30 08:22 PM

In response to Eric_Coudurier
0 Likes
2
6312
  • 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-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
Lt. Commander Eric_Coudurier Lt. Commander
Lt. Commander

Posted: โ€Ž2020-10-13 06:55 AM

In response to AhmedN
0 Likes
1
6251
  • 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-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
Lt. Commander Eric_Coudurier Lt. Commander
Lt. Commander

Posted: โ€Ž2020-10-13 07:06 AM

In response to Eric_Coudurier
0 Likes
0
6250
  • 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-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

ย 
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