Flexible NC programming
1.1 Variables
Job planning
30 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
1.1.6 Redefinition of system variables, user variables, and NC language commands
(REDEF)
Function
The REDEF command can be used to change system variable, user variable and NC language
command attributes. A fundamental condition of redefinition is that it has to post-date the
corresponding definition.
Multiple attributes cannot be changed simultaneously during redefinition. A separate
REDEF
operation has to be programmed for each attribute to be changed.
If two or more concurrent attribute changes are programmed, the last change is always
active.
Redefinable attributes
See "
Overview of definable and redefinable attributes (Page 45)".
Local user variables (PUD/LUD)
Redefinitions are not permitted for local user variables (PUD/LUD).
Syntax
REDEF <name> <PP_stop>
REDEF <name> <phys_unit>
REDEF <name> <limit_values>
REDEF <name> <access_rights>
REDEF <name> <init_time>
REDEF <name> <init_time> <init_value>
Significance
REDEF: Command for the redefinition of a specific system variable, user
variable, and NC language command attribute
<name>: Name of a predefined variable or an NC language command
Preprocessing stop
SYNR: Preprocessing stop while reading
SYNW: Preprocessing stop while writing
<PP stop>:
SYNRW: Preprocessing stop while reading/writing
Physical unit
PHU <unit>:
<phys_unit>:
See "
Attribute: Physical unit (PHU) (Page 38)"
Note
Cannot be redefined for:
• System variables
• Global user data (GUD)
• Data types:
BOOL, AXIS, STRING, FRAME