EasyManua.ls Logo

Siemens SINUMERIK 828D

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

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Related product manuals