Indirectly Programming G Commands - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Indirect programming:
Program code
DEF AXIS AXVAR1 AXVAR2
AXVAR1=(X1) AXVAR2=(X2)
AX[AXVAR1]=100 AX[AXVAR2]=200
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
3.1.2.2

Indirectly programming G commands

Indirectly programming G commands (Page 1247) permits cycles to be effectively programmed.
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Comment
; 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
Comment
; 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.
Comment
; Defining array 1
Comment
; For array dimensions, array sizes must be specified as
fixed values.
Comment
; Call the program, whose number is located in R10 (string
cascading).
Work preparation
3.1 Flexible NC programming
435

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents