Attribute: location
Enforces a storage of the POU (PRG) in the non-safe memory area
Syntax:
{attribute 'location':=16#800}
Insert location: First line above the declaration part of programs (PRG)
The pragma attribute is automatically inserted when a PRG POU is marked as nonSafe
. This causes all data of the PRG to be stored in the "non-safe memory area". The POU is no longer protected as interference-free.
The non-safe area is defined in the runtime system with the SysMemItf
interface with DA_NONSAFETY
.
#define DA_NONSAFETY 0x0800
For more information, see: Nonsafety-Relevant Programs (NonSafe PRGs)