Parameterizing machine data
3.2 Parameterizing the control using machine data
HMI Advanced (IM4)
Commissioning Manual, 03/2009, 6FC5397-0DP10-3BA0
101
REDEF $MA_ENC_SEGMENT_NR APR 2 APW 2 MD 30210
; (APW ... Write access)
REDEF $SN_JOG_CONT_MODE_LEVELTRIGGRD APR 2 APW 2
M30 SD 41050
MD 30100: $MA_CTRLOUT_SEGMENT_NR has access level 2/7, i.e. access level 2 is
required for write access (corresponding to password) and access level 7 for read access.
In order to access the machine data area, key-operated switch setting 3 or higher is
required.
Undoing the access level change
In order to undo access level changes, the original values have to be restored.
Example:
_N_DEF_DIR/__N_SGUD_DEF ; File for global variables
; $PATH=/_N_DEF_DIR
REDEF $MA_CTRLOUT_SEGMENT_NR APR 7 APW 2
; (APR ... Read access)
REDEF $MA_ENC_SEGMENT_NR APR 0 APW 0
; (APW ... Write access)
REDEF $SN_JOG_CONT_MODE_LEVELTRIGGRD APR 7 APW 7
M30
Definition files for REDEF
For programming REDEF commands - the same as for the GUD definitions - separate
definition files exist, which are evaluated when then control boots.
/_N_DEF_DIR/_N_UACCESS_DEF // Definition file for access level instructions of the
end user
/_N_DEF_DIR/_N_MACCESS_DEF // Definition file for access level instructions of the
manufacturer
/_N_DEF_DIR/_N_SACCESS_DEF // Definition file for access level instructions for
Siemens system applications (e.g. standard
cycles, ShopMill, etc.)
A additional Siemens definition file, which is used to configure the system, is saved on the
PCMCIA card or CF card in the NC system software.