EasyManuals Logo

Siemens SINUMERIK 810D Programming Manual

Siemens SINUMERIK 810D
687 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 #26 background imageLoading...
Page #26 background image
Flexible NC programming
1.3 Array definitions (DEF, SET, REP)
Job planning
1-12 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Initialization with value lists in the program execution, SET
• Initialization is the same as in array definition.
• Expressions are possible values in this case too.
• Initialization starts at the programmed array indexes. Values can also be assigned
selectively to subarrays.
Example: Assignment of expressions
DEF INT ARRAY[5, 5]
ARRAY[0,0] = SET(1, 2, 3, 4, 5)
ARRAY[2,3] = SET(VARIABLE, 4*5.6)
The axis index of axis variables is not traversed:
Example: Initialization in one line
$MA_AX_VELO_LIMIT[1, AX1] = SET(1.1, 2.2, 3.3)
Is equivalent to:
$MA_AX_VELO_LIMIT[1,AX1] = 1.1
$MA_AX_VELO_LIMIT[2,AX1] = 2.2
$MA_AX_VELO_LIMIT[3,AX1] = 3.3
Initialization with the same values for the array definition, REP
All array elements are assigned the same value (constant).
Variables of type FRAME cannot be initialized.
Example:
DEF REAL ARRAY5[10,3] = REP(9.9)
Initialization with the same values in the program execution
• Expressions are possible values in this case too.
• All array elements are initialized to the same value.
• Initialization starts at the programmed array indexes. Values can also be assigned
selectively to subarrays.
Example: Initialization of all elements with one value
DEF FRAME FRM[10]
FRM[5] = REP(CTRANS (X,5))

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 810D and is the answer not in the manual?

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals