Siemens SINUMERIK 840D sl Programming Manual page 55

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

Advertisement

Further information (REP)
initialization during definition
● All or the optionally specified number of array elements are initialized with the specified
● Variables of the FRAME data type cannot be initialized.
Example:
Program code
DEF REAL varName[10]=REP(3.5,4)
Value assignment in program execution
In the case of value assignment in program execution, the rules described above for
definition apply. The following options are also supported:
● Expressions are also permitted as elements in the value list.
● Value assignment starts with the programmed array index. Values can be assigned
Examples:
Program code
DEF REAL varName[10]
varName[5]=REP(4.5,3)
R10=REP(2.4,3)
DEF FRAME FRM[10]
FRM[5] = REP(CTRANS (X,5))
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
value (constant).
selectively to subarrays.
Comments
; Initialize array definition and array
elements [0] to [3] with value 3.5.
Comments
; Array definition
; Array elements [5] to [7] = 4.5
; R-parameters R10 to R12 = 2.4
; Array definition
; Array elements [5] to [9] = CTRANS(X,5)
Flexible NC programming
1.1 Variables
55

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents