Siemens SINUMERIK 828D Programming Manual page 57

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

Advertisement

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
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
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).
Flexible NC programming
1.2 Indirect programming
57

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents