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

Ways to use EBOOL (%M) in DDT

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
  • Ways to use EBOOL (%M) in DDT
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

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Modicon PAC Forum
dnordenberg1
Lieutenant dnordenberg1
Lieutenant

Posted: ‎2024-07-08 12:18 AM . Last Modified: ‎2024-07-08 05:59 AM

0 Likes
1
1295
  • 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-08 12:18 AM . Last Modified: ‎2024-07-08 05:59 AM

Ways to use EBOOL (%M) in DDT

Hi!

I guess everyone knows about the short coming that EBOOL can't be used in a DDT (https://community.se.com/t5/Modicon-PAC-Forum/EBOOL-in-DDT/m-p/460888#M965) so I want to hear how other people get around this in the simplest/nicest way.

 

For example I like to have my alarms in a DDT so I can have easy to read names for each alarm. I then want to read this structure from HMI/SCADA so a %M variable is needed for each alarm. (my SCADA isn't great at extracting bits from a %MW but that is another story).

 

This is how I do it now and that might not be the nicest way at all so that is why I would like others comments and ideas on this 🙂 I create two equal size arrays as the DDT, one EBOOL and one BOOL (since the DDT elements isn't accessible by a number/index too which I sometimes wished also but that too is another story).

I then give both the DDT and the BOOL array the same %MW start address making the %MW address the "glue" between those two data structures. The EBOOL array gets an %M start address. I then use a FOR loop in ST and loop through each BOOL array element and copies the value to the EBOOL array. This creates a one way copy of a BOOL DDT structure as an EBOOL array where %M addressing is possible. I might mention that my ST loop can have per alarm conditions too like blocking or delay as I thought this was a good place to do that too at.

The downside to my approach is that is is not directly clear what %M address a specific alarm in the DDT has, you have to count the BOOLs in the DDT. Second is that this approach is not a very efficient workflow if you have to do it with more BOOL DDTs, maybe one of these per project could be ok but I can't imagine doing it with many. Third it is one way which is fine for alarms. And last, it is not that obvious why and how it works for someone else looking at this code as it is what I consider a "workaround".

 

Comments, ideas?

Labels
  • Labels:
  • 01. Modicon M340 PAC
  • 02. Modicon M580 ePAC
  • 05. Networking & Communication
  • 06. EcoStruxure Control Expert
  • 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
Trinxs1
Lt. Commander Trinxs1 Lt. Commander
Lt. Commander

Posted: ‎2024-09-18 09:41 PM

0 Likes
0
1092
  • 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-09-18 09:41 PM

I assume that you need to transfer an Array of EBOOLS located at %M addresses to communicate to your SCADA.  Keep the array of located EBOOLs, i.e. assign the array to a %M address.  "Alias" a second bool with the alarm name to the first element of the array, repeat this for elements of the array.  You can use the spreadsheet tool that comes with Control expert to simplify this.

 

Use the alias tags in the alarm logic to help it make easier to understand.  Make sure that you have the tools \ project settings \program \languages \common \ enable implicit type conversion = ticked.

Trinxs
Senior Technical Sales Consultant - PAC
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