Flexible NC programming
1.1 Variables
Job planning
36 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
1.1.8 Attribute: Limit values (LLI, ULI)
An upper and a lower limit of the definition range can only be defined for the following data
types:
● INT
● REAL
● CHAR
Definition (DEF) of user variables: Limit values and implicit initialization values
If no explicit initialization value is defined when defining a user variable of one of the above
data types, the variable is set to the data type's implicit initialization value.
● INT: 0
● REAL: 0.0
● CHAR: 0
If the implicit initialization value is outside the definition range specified by the programmed
limit values, the variable is initialized with the limit value which is closest to the implicit
initialization value:
● Implicit initialization value < lower limit value (LLI) ⇒
initialization value = lower limit value
● Implicit initialization value > upper limit value (ULI) ⇒
initialization value = upper limit value
Examples:
Program code Comment
DEF REAL GUD1 ;
;
;
;
Lower limit value = definition range limit
Upper limit value = definition range limit
No initialization value programmed
=> Implicit initialization value = 0.0
DEF REAL LLI 5.0 GUD2 ;
;
;
Lower limit value = 5.0
Upper limit value = definition range limit
=> Initialization value = 5.0
DEF REAL ULI –5 GUD3 ;
;
;
Lower limit value = definition range limit
Upper limit value = -5.0
=> Initialization value = -5.0