5
01/2008 Parameters operating area
5.7 Define user data
5
© Siemens AG 2008 All rights reserved.
SINUMERIK 840Di sl/840D sl/840D Operating Manual HMI-Advanced (BAD) - 01/2008 Edition 5-239
5.7 Define user data
5.7.1 Define variables (GUD, PUD, LUD)
Function
User data (UD) can be defined by means of a variety of variables:
• GUD - global variables which are valid in all programs.
• LUD - local variables which are valid only in the program or
subprogram in which they have been defined.
• PUD – global program variables.
Local variables (LUD) defined in the main program are turned into
global program variables (PUD) by a setting in a machine data.
PUD variables are valid on all subprogram levels, where they can
also be written and read.
The user data (GUD) can be defined for HMI in the Services operating
area (in the Definitions directory); reinitialization is not necessary.
The following applies:
• Definition files that are on the hard disk are not active.
• Files can be transferred to NC and activated using the "Activate"
softkey.
The user memory must be configured to a large enough size before
the GUD definition file is loaded to the control. All relevant machine
data have GUD as a component of their name.
The display of global user data (GUD) can be locked by means of the
keylock switch or a password.
For more information on how to protect global user data in the part
program, please refer to
/PGA/, Programming Guide Advanced
Section: File and Program Management.