EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK ONE MCP 2400.4c

Siemens SINUMERIK ONE MCP 2400.4c Programming Manual

Siemens SINUMERIK ONE MCP 2400.4c
1334 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
Page #435 background imageLoading...
Page #435 background image
Indirect programming:
Program code Comment
DEF AXIS AXVAR1 AXVAR2 ; Defining two type AXIS variables.
AXVAR1=(X1) AXVAR2=(X2) ; Assigning the axis names.
AX[AXVAR1]=100 AX[AXVAR2]=200 ; Traversing the axes whose address names are
saved in the variables with the names AXVAR1
and AXVAR2
Example 5: Indirectly programming an axis
Direct programming:
Program code
G2 X100 I20
Indirect programming:
Program code Comment
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 Comment
DEF INT ARRAY1[4,5] ; Defining array 1
Indirect programming:
Program code Comment
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 Comment
CALL "L" << R10 ; Call the program, whose number is located in R10 (string
cascading).
3.1.2.2 Indirectly programming G commands
Indirectly programming G commands (Page 1247) permits cycles to be effectively programmed.
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 435

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals