EasyManuals Logo

Siemens SINUMERIK 828D Programming Manual

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
Page #52 background imageLoading...
Page #52 background image
Flexible NC programming
1.1 Variables
Job planning
52 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Further information (REP)
Initialization during definition
All or the optionally specified number of array elements are initialized with the specified
value (constant).
Variables of the FRAME data type cannot be initialized.
Example:
Program code Comments
DEF REAL varName[10]=REP(3.5,4) ; Initialize array definition and array
elements [0] to [3] with value 3.5.
Value assignment in program execution
In the case of value assignment in program execution, the rules described above for
definition apply. The following options are also supported:
Expressions are also permitted as elements in the value list.
Value assignment starts with the programmed array index. Values can be assigned
selectively to subarrays.
Examples:
Program code Comments
DEF REAL varName[10] ; Array definition
varName[5]=REP(4.5,3) ; Array elements [5] to [7] = 4.5
R10=REP(2.4,3) ; R-parameters R10 to R12 = 2.4
DEF FRAME FRM[10] ; Array definition
FRM[5] = REP(CTRANS (X,5)) ; Array elements [5] to [9] = CTRANS(X,5)
Further information (general)
Value assignments to axial machine data
In principle axial machine data have an array index of the
AXIS data type. In the case of
value assignments to an axial item of machine data using
SET or REP, this array index is
ignored or not processed.
Example: Value assignment to machine data MD36200 $MA_AX_VELO_LIMIT
$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

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 828D Specifications

General IconGeneral
Control TypeCNC
Operating SystemWindows Embedded
ProcessorIntel Atom
Display10.4" color TFT display
InterfacesEthernet, USB
ProgrammingShopMill, ShopTurn
Operation Panel Size10.4"
Protection ClassIP65
PLC Memory2 MB
Spindle Capacity4 spindles
Hard DriveCompactFlash

Related product manuals