Using the example below, the access modifiers will be omitted on converting the library to a TIA Portal library. A warning will be issued for the 'ExampleInternal' function, for the 'varReal' and 'varInt' variables of the 'Example' class and for each of the 'ExampleStruct1' and 'ExampleStruct2' type declarations using the modifier INTERNAL.
NAMESPACE ExampleLibrary
FUNCTION PUBLIC ExamplePublic
;
END_FUNCTION
FUNCTION INTERNAL ExampleInternal // Warning for Function
;
END_FUNCTION
CLASS Example
VAR INTERNAL // Warning for each member
varReal : REAL;
varInt : INT;
END_VAR
END_CLASS
TYPE INTERNAL // Warning for each type declaration
ExampleStruct1 : STRUCT
memberWord : WORD;
END_STRUCT;
ExampleStruct2 : STRUCT
memberDint : DINT;
END_STRUCT;
END_TYPE
END_NAMESPACE
NOTICE
Note that access modifiers are omitted during export. This may unintentionally expose functionality that is supposed to be hidden.