Global variable
How to a transmitter as global variable? And how to invert an existing local variable into a global variable?
Voted best answer
If you want to communicate between two diagrams, then you shall declare the local variable as IAC ( Communication Variable) in both diagrams.
Source as out IAC and sink as in IAC. then values will be passed between two diagrams.
Source as out IAC and sink as in IAC. then values will be passed between two diagrams.
Answers
For converting an existing Local variable into a Global variable, move the Local variable from Variables tab to External Variables tab in the POU. Then copy this External Variable to Global Variables tab in the Application level.
Add new comment