<< Click to Display Table of Contents >> Navigation: »No topics above this level« IP_RETAIN |
mapp Services V5.16
Pragma IP_RETAIN controls whether declared elements will be retained when the source file is unloaded.
#pragma IP_RETAIN ['ON' | 'OFF']
•EIN: Retains the element in IP memory when all files that declare it are unloaded.
•OFF: Standard behavior. Removes the variable/type data when all files that declare it are unloaded.
If a retained variable has a custom data type, then this type must also be retained.
Pragma IP_RETAIN should not be confused with a VAR RETAIN declaration (variables stored in battery-backed PLC memory).
#pragma IP_RETAIN 'ON'
VAR {IP_GLOBAL}
(* Variables declared here will be retained when the declaration file is unloaded. *)
END_VAR