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

Function Block in Workbech that take a global variable vs function blocks in SCADAPack x70 Logic public variable

Remote Operations Forum

Support forum for Schneider Electric SCADA systems, radios and RTUs. From commissioning integration devices and software, to enhancing existing installations or troubleshooting.​

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
  • Remote Operations
  • Remote Operations Forum
  • Function Block in Workbech that take a global variable vs function blocks in SCADAPack x70 Logic public variable
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
Joel_Weder
Captain Joel_Weder Captain
75
BevanWeiss
Spock BevanWeiss
20
sbeadle
Kirk sbeadle Kirk
17
MartinChartrand
Captain MartinChartrand Captain
15
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to Remote Operations Forum
Solved
AlbertoArdila
Lieutenant AlbertoArdila
Lieutenant

Posted: ‎2022-01-24 12:32 PM . Last Modified: ‎2022-01-24 12:47 PM

0 Likes
5
1908
  • 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: ‎2022-01-24 12:32 PM . Last Modified: ‎2022-01-24 12:47 PM

Function Block in Workbech that take a global variable vs function blocks in SCADAPack x70 Logic public variable

Hi

 

The function blocks in Workbench can accept Global variables inside without be an input in the function block

I tried to do the same in SCADAPack X70 Logic. I created a Function Block with a public variable and put the FB in the custom Library. After, I create a new project, add the function block created from the library, create an elementary variable with a defined initial value and the same name that the public variable inside the function.

 

The problem is that when I run the program the public variable doesn’t take the value of the global variable  

   

How can I resolve this problem? , how can I link the global variable to the public variable in the FB?

 

Please see image attached

 

Thanks for the help.

Attachments
Labels
  • Labels:
  • SCADA
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
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
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-01-24 01:52 PM

0 Likes
4
1903
  • 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: ‎2022-01-24 01:52 PM

It was a bad idea for SCADAPack Workbench to support this, and largely came about through the ISaGRAF support for the same.

The concept isn't good from a software engineering stand-point, since it becomes an implicit dependency.

 

Hence in Logic Editor / ControlExport (and most other modern logic engines) such associations need to be explicit.

You would need to pass these parameters in.

 

I would not recommend using the Public variable interface to do this.

I wouldn't recommend Public variable interface for many things (only for optional output values really).

 

If you want to supply values through the Public variable interface, then outside of your DFB (in the application logic) you would need to MOVE or similar the appropriate value into that Public variable for the DFB instance in question (prior to executing the DFB instance).

 

There is possibly some way to circumvent this by using various system EF / EFB calls.  But this would not be generally recommended (an exception for this would be things that are more generic.. like wallclocktime kind of things).

i.e. in the SCADAPack x70 world you could have an Object defined with a fixed name, and within your DFB you would call OBJ_NameToID to get the ObjectID.  Then you could call OBJ_ReadField to get the .Value field from that object.

But you should NOT do this.  You should define an explicit interface to pass in the information the DFB requires to operate.

The more important the information is, the more explicit the passing in should be (i.e. if it's required for the block to operate, don't pass it in with a Public variable.. make it required as an Input)

NOTE: If you go down this path, and post any request for help about this, I will simply reply with "I told you NOT to do this"


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..

See Answer In Context

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

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

Replies 5
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-01-24 01:52 PM

0 Likes
4
1904
  • 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: ‎2022-01-24 01:52 PM

It was a bad idea for SCADAPack Workbench to support this, and largely came about through the ISaGRAF support for the same.

The concept isn't good from a software engineering stand-point, since it becomes an implicit dependency.

 

Hence in Logic Editor / ControlExport (and most other modern logic engines) such associations need to be explicit.

You would need to pass these parameters in.

 

I would not recommend using the Public variable interface to do this.

I wouldn't recommend Public variable interface for many things (only for optional output values really).

 

If you want to supply values through the Public variable interface, then outside of your DFB (in the application logic) you would need to MOVE or similar the appropriate value into that Public variable for the DFB instance in question (prior to executing the DFB instance).

 

There is possibly some way to circumvent this by using various system EF / EFB calls.  But this would not be generally recommended (an exception for this would be things that are more generic.. like wallclocktime kind of things).

i.e. in the SCADAPack x70 world you could have an Object defined with a fixed name, and within your DFB you would call OBJ_NameToID to get the ObjectID.  Then you could call OBJ_ReadField to get the .Value field from that object.

But you should NOT do this.  You should define an explicit interface to pass in the information the DFB requires to operate.

The more important the information is, the more explicit the passing in should be (i.e. if it's required for the block to operate, don't pass it in with a Public variable.. make it required as an Input)

NOTE: If you go down this path, and post any request for help about this, I will simply reply with "I told you NOT to do this"


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

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

AlbertoArdila
Lieutenant AlbertoArdila
Lieutenant

Posted: ‎2022-01-26 05:18 AM

In response to BevanWeiss
0 Likes
3
1888
  • 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: ‎2022-01-26 05:18 AM

Hi Bevan Weiss

 

Thanks for the answer

 

In this case I go to use an explicit variable creating an input in the function block.

 

have a good day

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-01-26 12:02 PM

In response to AlbertoArdila
0 Likes
2
1882
  • 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: ‎2022-01-26 12:02 PM

Why do you keep marking your own posts as 'the solution'?

Do you consider that the people posting answers to your problems haven't appropriately solved your problem?

 

Just like StackOverflow it should be incredibly uncommon for you to mark a post of your own as the solution.  Unless the other answers really haven't addressed your problem (in which case it might go unsolved), or your own independent investigations have revealed the best solution, in which case you should provide a detailed post of that solution.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

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

AlbertoArdila
Lieutenant AlbertoArdila
Lieutenant

Posted: ‎2022-01-26 12:36 PM

In response to BevanWeiss
0 Likes
1
1879
  • 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: ‎2022-01-26 12:36 PM

Hi Bevan Weiss

 

It is my fault. 

 

The answer that you gave me is the solution. I replied to say thank you and after mark as solution but I didn’t know that it take that as my solution.

 

 

 

Thanks again.

 

 

  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

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

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-01-27 01:48 PM

In response to AlbertoArdila
0 Likes
0
1869
  • 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: ‎2022-01-27 01:48 PM

When you start a topic, there is a button on every reply that people make

2022-01-28 08_46_05-Solved_ M340_M580 reading Input Registers _ Coils _ Contacts (1, 10001, 30001 et.png

You can mark multiple posts as 'a solution'.  So you could go through the topics that you have already started and "fix-up" any mistakes that you have made in assigning 'solutions'.


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
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