Siemens sinumerik 840d Programming Manual page 35

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

04.00
1
840D
840D
NCU 571
NCU 572
NCU 573
Programming example
Initialization of complete variable arrays.
The drawing shows the current assignment.
N10 DEF REAL ARRAY1[10,3] = SET(0, 0, 0, 10, 11, 12, 20, 20, 20, 30,
30, 30, 40, 40, 40,)
N20 ARRAY1[0,0] = REP(100)
N30 ARRAY1[5,0] = REP(-100)
N40 ARRAY1[0,0] = SET(0, 1, 2, -10, -11, -12, -20, -20, -20, -30, , , ,
-40, -40, -50, -60, -70)
N50 ARRAY1[8,1] = SET(8.1, 8.2, 9.0, 9.1, 9.2)
Array index
1,2
0
1
2
3
4
5
6
7
8
9
The array elements [5,0]
to [9,2] have been initialized
with the default value (0.0).
1
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
FM-NC
810D
840Di
N10: Initialization
with definition
0
1
2
0
0
0
10
11
12
20
20
20
30
30
30
40
40
40
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1.3
N20/N30: Initialization
with identical value
0
1
2
100
100
100
100
100
100
100
100
100
100
100
100
100
100
100
-100
-100
-100
-100
-100
-100
-100
-100
-100
-100
-100
-100
-100
-100
-100
Flexible NC Programming
Array definition
N40/N50: Initialization
with different values
0
1
2
0
1
2
-11
-12
-10
-20
-20
-20
0
0
-30
0
-40
-40
-50
-60
-70
-100
-100
-100
-100
-100
-100
-100
8.1
8.2
9.0
9.1
9.2
The array elements [3,1]
to [4,0] have been initialized
with the default value (0.0).
The array elements [6,0] to
[8,0] have not been changed.
1
2
1-35

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents