Machine Automation Forum
A forum addressing machine automation solutions for the complete machine lifecycle. Including offers like Machine Advisor, Modicon PLC/PacDrive, Lexium or Preventa. Discuss and share knowledge on offers relating to cloud-based service platforms, machine localization and monitoring, industrial operations control, motion products as well as safety function!
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-05-27 09:09 AM . Last Modified: 2022-05-27 09:22 AM
Hi All,
Our customers are looking to use our product with Machine Expert. I am in the process of building a library to simplify implementation and usage.
Thanks
Mark
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-05-27 11:36 AM
I believe I answered my own question. Use the word INTERNAL.
Example:
VAR_GLOBAL INTERNAL
test : INT := 5;
END_VAR
This GVL is now not exposed outside of the library.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-05-27 11:36 AM
I believe I answered my own question. Use the word INTERNAL.
Example:
VAR_GLOBAL INTERNAL
test : INT := 5;
END_VAR
This GVL is now not exposed outside of the library.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-01-06 07:38 AM
Hi.. Mark I have tried to implement your solution.
Where I have multiple blocks that would influence each other I was planning to create a GVL and route all the variables through it. But When I tried to create a VAR_GLOBAL INTERNAL as mentioned by you. My POUs which are some FBs not recognizing the global variable
Eg:
VAR_GLOBAL INTERNAL
test : INT := 5;
END_VAR
Link copied. Please paste this link to share this article on your social media post.
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.