Siemens Sinumerik 840D sl Programming Manual page 58

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

Advertisement

Flexible NC programming
1.2 Indirect programming
Example 5: Indirectly programming an axis
Direct programming:
Program code
G2 X100 I20
Indirect programming:
Program code
DEF AXIS AXVAR1=X
G2 X100 IP[AXVAR1]=20
Example 6: Indirectly programming array elements
Direct programming:
Program code
DEF INT ARRAY1[4,5]
Indirect programming:
Program code
DEFINE DIM1 AS 4
DEFINE DIM2 AS 5
DEF INT ARRAY[DIM1,DIM2]
ARRAY[DIM1-1,DIM2-1]=5
Example 7: Indirect subprogram call
Program code
CALL "L" << R10
58
Comments
; Defining a variable, type AXIS and value
assignment.
; Indirect programming the center point data for
the axis, whose address name is saved in the
variable with the name AXVAR1.
Comments
; Defining array 1
Comments
; For array dimensions, array sizes must be
specified as fixed values.
Comments
; Call the program, whose number is located in R10
(string cascading).
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents