This object is available only for specific controllers. It is displayed automatically in the device tree. The object cannot be added or removed manually.
The object can be used for mapping the executable code of an application in different code areas on the controller. Specifically small controllers often have limited internal code areas (flash memory). If one or more additional code areas (for example, external flash memory) are available on the controller, then the location of the code POUs of an application can be changed specifically. In the case of a safety controller (SIL2), this can also be used for moving non-safety-relevant code POUs or entire libraries into this external memory.
If there are no specific requirements, then the code POUs are stored sequentially in the code areas (“default”). This means that the next code POUs are stored in the next areas only when the first code area is filled. In the “POU Locations” editor, you will see the current location of the POUs in the memory areas and you can change them specifically. Especially in the case of a safety application, this may be necessary for getting all safe POUs into the safe internal memory area.
For more information, see:
-
See also: ⮫ Build → Clean
-
See also: ⮫ Build → Generate Code
-
Editor: POU Locations