File and Program Management
3.3 Defining user data
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
3-9
Parameters
range Range identifies the variable as a GUD
variable and defines its validity scope:
NCK NCK-wide
CHAN channel-wide
preprocessing_stop Optional attribute preprocessing stop:
SYNR Preprocess stop while reading
SYNW Preprocess stop while writing
SYNRW Preprocess stop while
reading/writing
Type Data type
BOOL
REAL
INT
AXIS
FRAME
STRING
CHAR
name Variable name
[.., ...] Optional run limits for array variables
Value Optional initialization value, several
values for arrays, each separated with a
comma or REP (w1), SET(w1, W2, ...), (w1,
w2, ...)
Initialization values are not possible
for type Frame.
Example: definition file, global data (Siemens)
%_N_SGUD_DEF
;$PATH=/_N_DEF_DIR
DEF NCK REAL RTP ;Retraction plane
DEF CHAN INT SDIS ;Safety clearance
M30
Example: definition file, global data (machine manufacturer)
%_N_MGUD_DEF
;$PATH=/_N_DEF_DIR
;Global data definitions of the machine manufacturer
DEF NCK SYNRW INT QUANTITY ;Implicit preprocess stop while
;reading/writing
;Specific data present in the control
;Access from all channels
DEF CHAN INT TOOLTABLE[100] ;Tool table for channel-spec. View of
;the tool number at magazine locations
M30 ;Separate table created for each channel