Siemens SINUMERIK 840D sl Programming Manual page 149

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

• Attributes of arrays cannot be set for individual elements but only always for the entire
DEF CHAN INT _MYGUD[10,10]
REDEF _MYGUD INIRE
REDEF _MYGUD[1,1] INIRE
• Initialization of GUD arrays themselves is not affected.
DEF NCK INT _MYGUD[10] =(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
DEF NCK INT _MYGUD[100,100] = REP (12)
DEF NCK INT _MYGUD[100,100] ;
• REDEF statements with R parameters must be enclosed in parentheses.
REDEF R[ ] INIRE
• INI attributes
• R parameters and system variables
• For data type FRAME of GUD it is not possible to specify a default deviating from the
• GUD (DEF NCK INT_MYGUD)
Setting a default value
If REDEF <name> INIRE, INIPO; INICF; PRLOC is used to change the behavior of a system
variable or GUD, the machine data DEFAULT_VALUES_MEM_MASK must be set to 1
(memory for initialization values active). Otherwise, alarm 12261 "Initialization not allowed" is
output.
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
array:
Note, however, that when the INI attributes for these variables are set, that an
appropriately large memory for INIT values, can be set using MD 18150:
MM_GUD_VAL_MEM, must be available. In the machine data 11270:
DEFAULT_VALUES_MEM_MASK must be set to 1 (memory for initialization values
active). Too small a memory cause alarm 12261 "Initialization not allowed".
For R and system variables it is not possible to specify a default that deviates from the
compiled value. However, resetting to the compiled value is possible with INIPO, INIRE,
or INICF.
compiled value either (like for definition of the data item).
Only the INIPO attribute is permissible for global GUD (DEF NCK INT_MYGUD).
Only the data in the corresponding channel is initialized for channel-specific GUD (DEF
CHAN INT_MYGUD) with the corresponding result (RESET, BAG-RESET or NewConfig).
Example: 2 channels are defined with the channel-specific GUD that is to be initialized
during RESET:
DEF CHAN INT _MYGUD
REDEF _MYGUD INIRE
During a RESET in the first channel, the GUD for this channel is reset and the value in
the second channel is not affected.
3.5 REDEF Changing the attributes of the NC language elements
// ok
// not possible, alarm is output
// (array value)
File and Program Management
3-23

Advertisement

Table of Contents
loading

Table of Contents