Siemens SINUMERIK 840D sl Programming Manual page 420

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.1 Flexible NC programming
<value>:
<number_array_elements>:
Array index
The implicit sequence of the array elements, e.g. in the case of value assignment using SET or
REP, is right to left due to iteration of the array index.
Example: Initialization of a 3-dimensional array with 24 array elements:
DEF INT FELD[2,3,4] = REP(1,24)
FELD[0,0,0] = 1
FELD[0,0,1] = 1
FELD[0,0,2] = 1
FELD[0,0,3] = 1
...
FELD[0,1,0] = 1
FELD[0,1,1] = 1
...
FELD[0,2,3] = 1
FELD[1,0,0] = 1
FELD[1,0,1] = 1
...
FELD[1,2,3] = 1
corresponding to:
FOR n=0 TO 1
FOR m=0 TO 2
420
FOR o=0 TO 3
Value, which the array elements should be written when in‐
itializing with REP.
Number of array elements to be written with the
specified <value>. The following apply to the remaining ar‐
ray elements, dependent on the point in time:
● Initialization when defining the array:
→ Zero is written to the remaining array elements.
● Assignment during program execution:
→ The actual values of the array elements remain un‐
changed.
If the parameter is not programmed, all array elements are
written with <value>.
If the parameter equals zero, the following apply dependent
on the point in time:
● Initialization when defining the array:
→ All elements are pre-assigned zero
● Assignment during program execution:
→ The actual values of the array elements remain un‐
changed.
1. array element
2. array element
3. array element
4. array element
5. array element
6. array element
12. array element
13. array element
14. array element
24. array element
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents