Pretty sure I know the answer, but thought I would ask just in case. Is there a way to set variables declared in a POU to private so that they can not be accessed from other POUs.
I tried using the library pragma, but that just stops the variables being displayed in the selection tree.
My compiler version is 2.3.9.62 if that's relevant, and I'm using an ABB AC500 V2 PLC.
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Pretty sure I know the answer, but thought I would ask just in case. Is there a way to set variables declared in a POU to private so that they can not be accessed from other POUs.
I tried using the library pragma, but that just stops the variables being displayed in the selection tree.
My compiler version is 2.3.9.62 if that's relevant, and I'm using an ABB AC500 V2 PLC.
Cheers