File and Program Management
3.4 Protection levels for user data, MD, SD and NC commands
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
3-17
Parameters
The REDEF command acts globally for all channels and mode groups
REDEF
Effect and application of the REDEF command
NC language element Language element to which a protection level is to
be assigned for execution:
1. Predefined subroutines/functions
(see list with same name).
2. "DO" statement keyword for synchronized actions
3. G functions (G functions/preparatory
functions).
4. Program identifier for cycle
The cycle must be stored in one of the cycle
directories and contain a PROC statement.
System variables System variable to which a protection level is to
be assigned for write access. Read access is
always possible. (see "List of system variables"):
Machine data/setting data Machine data or setting data to which a protection
level is to be assigned for read/write access.
APX
APW, APR
Vocabulary word for access protection
Execute
Write, read
Value Numerical value of the protective level (0 to 7)
from 0 or 10 (highest level)
to 7 (lowest level)
value 7 Keyswitch position 0 corresponds to the default
setting of all available parts program commands
Example: subroutine call in definition files
N10 REDEF GEOAX APX 3
N20 IF(ISFILE("/_N_CST_DIR/_N_SACCESS_SUB1_SPF"))
N30 PCALL /_N_CST_DIR/_N_SACCESS_SUB1_SPF
N40 ENDIF
N40 M17