1
Flexible NC Programming 04.00
1.4 Indirect
ro
rammin
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
1-36
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
1.4 Indirect programming
Indirect programming enables programs to be used
universally. The extended address (index) is
substituted by a variable of suitable type.
All addresses can be configured, except for:
•
N – block number
•
G – G command
•
L – subroutine
Indirect programming is not possible for any settable
addresses.
Example: X[1] is not permitted instead of X1.
Programming
ADDRESS[INDEX]
Programming examples
Spindle
S1=300
Direct programming
DEF INT SPINU=1
S[SPINU]=300
Indirect programming:
Speed 300 rpm for the spindle whose
number is stored in the variable SPINU (1 in
this example).
Feed
FA[U]=300
Direct programming
DEF AXIS AXVAR2=U
FA[AXVAR2]=300
Indirect programming:
Feed for positioning axis whose address
name is stored in the variable of type AXIS
with variable name AXVAR2.
Measured value
$AA_MM[X]
Direct programming
DEF AXIS AXVAR3=X
$AA_MM[AXVAR3]
Indirect programming:
Measured value in machine coordinates for
axis whose name is stored in the variable
AXVAR3.