Adds support to create new hardware variables by declaring a global variable with the address
For example :
VAR_GLOBAL
heatSwitch AT %IX1.2.3.4 : BOOL;
END_VAR
will create a variable __PI_1_2_3_4 : BOOL and map the heatSwitch variable to it.
A runtime can then point the __PI_1_2_3_4 to a real hardware value.
This PR still does not allow declaring hardware addresses with no associated variables.
Assigning variables inside POUs is also not possible.
This commit looks good. We should think about adding a validation to verify the PI variables are only accessed in their intended read/write directions, but doing so in a different story/commit is fine with me.
Adds support to create new hardware variables by declaring a global variable with the address For example :
will create a variable
__PI_1_2_3_4 : BOOL
and map the heatSwitch variable to it. A runtime can then point the__PI_1_2_3_4
to a real hardware value. This PR still does not allow declaring hardware addresses with no associated variables. Assigning variables inside POUs is also not possible.