Is your feature request related to a problem? Please describe.
In addition to external functions, we should support externally defined variables that could then be used in code.
Examples of such variables could be the stdout and stderr variables or global variables defined in other libraries/projects
Describe the solution you'd like
I propose allowing the @EXTERNAL keyword to be used on a VAR_GLOBAL keyword.
All variables in that block will then be external.
Additional context
The IEC61131-3 has a VAR_EXTERNAL block. This is, however, not intended for externally defined variables, but to explicitly state the variables that a certain POU will access from different POUs or global variables
Is your feature request related to a problem? Please describe. In addition to external functions, we should support externally defined variables that could then be used in code. Examples of such variables could be the stdout and stderr variables or global variables defined in other libraries/projects
Describe the solution you'd like I propose allowing the
@EXTERNAL
keyword to be used on aVAR_GLOBAL
keyword. All variables in that block will then be external.Additional context The IEC61131-3 has a
VAR_EXTERNAL
block. This is, however, not intended for externally defined variables, but to explicitly state the variables that a certainPOU
will access from differentPOUs
or global variables