File and Program Management   
3.4 Protection levels for user data, MD, SD and NC commands 
  Job planning 
3-12  Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0 
3.4  3.4 Protection levels for user data, MD, SD and NC commands 
3.4.1  Defining protection levels for user data (GUD) 
Function 
Access criteria can be defined for GUD modules to protect them against manipulation. In 
cycles GUD variables can be queried that are protected in this way from change via the HMI 
user interface or from the program. The access protection applies to all variables defined in 
this module. When an attempt is made to access protected data, the control outputs an 
appropriate alarm.  
Programming 
Protection levels for the whole module are specified in the headers. 
 
%_N_MGUD_DEF ;module type 
;$PATH=/_N_DEF_DIR ;path 
APR value APW n  ;protection levels in separate line 
The access protection level is programmed with the desired protection level in the GUD 
module before any variable is defined. Vocabulary words must be programmed in a separate 
block. 
Parameters 
 
Protection level: 
APW n 
APR n 
Access protection (Access Protection) 
for writing (Write) 
for reading (Read) 
n  Protection level n 
from 0 or 10 (highest level) 
to 7 or 17 (lowest level) 
Meaning of the protection levels n: 
0 or 10 
1 or 11 
2 or 12 
3 or 13 
4 or 14 
... 
7 or 17 
 
SIEMENS 
OEM_HIGH 
OEM_LOW 
End user 
Keyswitch 3 
... 
Keyswitch 0 
APW 0-7, APR 0-7 
The read and write protection acts on the 
user interface and in the NC program or in 
the MDA operation. 
APW 10-17, APR 10-17: 
The read and write protection acts here on 
the user interface.  
These values are permissible in GUD 
modules and in protection levels for 
individual variables in the REDEF 
instruction. 
 
This values are only permissible for 
module-specific GUD protection level.