Siemens SINUMERIK 828D Programming Manual page 56

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Flexible NC programming
1.2 Indirect programming
Example 2: Indirectly programming an axis
Direct programming:
Program code
FA[U]=300
Indirect programming:
Program code
DEF AXIS AXVAR2=U
FA[AXVAR2]=300
Example 3: Indirectly programming an axis
Direct programming:
Programming
$AA_MM[X]
Indirect programming:
Program code
DEF AXIS AXVAR3=X
$AA_MM[AXVAR3]
Example 4: Indirectly programming an axis
Direct programming:
Program code
X1=100 X2=200
Indirect programming:
Program code
DEF AXIS AXVAR1 AXVAR2
AXVAR1=(X1) AXVAR2=(X2)
AX[AXVAR1]=100 AX[AXVAR2]=200
56
Comments
; Feed rate 300 for axis "U".
Comments
; Defining a variable, type AXIS and value assignment.
; Feed rate of 300 for the axis whose address name is saved
in the variables with the name AXVAR2.
Comments
; Read probe measured value (MCS) of axis "X".
Comments
; Defining a variable, type AXIS and value assignment.
; Read probe measured value (MCS) whose name is saved in the
variables AXVAR3.
Comments
; Defining two type AXIS variables.
; Assigning the axis names.
; Traversing the axes whose address names are
saved in the variables with the names
AXVAR1 and AXVAR2
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents