Siemens SINUMERIK 840D sl Programming Manual page 62

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

Advertisement

Flexible NC programming
1.2 Indirect programming
Examples
Example 1: Indirectly programming a spindle number
Direct programming:
Program code
S1=300
Indirect programming:
Program code
DEF INT SPINU=1
S[SPINU]=300
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:
Program code
$AA_MM[X]
Indirect programming:
Program code
DEF AXIS AXVAR3=X
$AA_MM[AXVAR3]
62
Comment
; Speed in rpm for the spindle number 1.
Comment
; Defining variables, type INT and value assignment.
; Speed 300 rpm for the spindle, whose number is saved in
the SPINU variable (in this example 1, the spindle with
the number 1).
Comment
; Feed rate 300 for axis "U".
Comment
; 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.
Comment
; Read probe measured value (MCS) of axis "X".
Comment
; Defining a variable, type AXIS and value assignment.
; Read probe measured value (MCS) whose name is saved in the
variables AXVAR3.
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents