Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-11-21 11:53 AM
Hi all,
apparently, since CE V15.0, it is possible to use variables defined in the variable list (outside the DFB) inside an DFB. I tried this with CE V15.2 and it does not work. Can anyone say anthing to this topic?
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: 2023-12-06 03:54 PM
Inside your DFB address the external variables as "PROJECT.xyz" where xyz is the external variable you'd like to use.
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: 2024-01-24 03:18 PM
This is giving me an error. It's saying there is a variable conflict.
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: 2024-01-25 10:16 PM
There are two ways to get your global variables into the DFB:
1) Use the "MOVE" function block to move your global data to a declared "Public" variable within the DFB, or
2) Use the "inputs/outputs" pin of the DFB as the direct connection to the global variable.
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: 2024-01-29 01:49 AM
Or use the global variable direcly in the DFB code named as "Project.Global_Data"
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.