EasyManuals Logo

Siemens SINUMERIK 840D Programming Manual

Siemens SINUMERIK 840D
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 #25 background imageLoading...
Page #25 background image
Flexible NC programming
1.3 Array definitions (DEF, SET, REP)
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1-11
Example: Initialization of complete variable arrays
The current assignment is shown in the drawing.
N10 DEF REAL ARRAY1[10,3] = SET(0, 0, 0, 10, 11, 12, 20, 20, 20, 30, 30, 30, 40, 40,
40,)
N20 ARRAY1[0,0] = REP(100)
N30 ARRAY1[5,0] = REP(-100)
N40 ARRAY1[0,0] = SET(0, 1, 2, -10, -11, -12, -20, -20, -20, -30, , , ,
-40, -40, -50, -60, -70)
N50 ARRAY1[8,1] = SET(8.1, 8.2, 9.0, 9.1, 9.2)
1


































































11
11
$UUD\LQGH[
7KHDUUD\HOHPHQWV>@WR
>@KDYHEHHQLQLWLDOL]HG
ZLWKWKHGHIDXOWYDOXH
7KHDUUD\HOHPHQWV>@WR
>@KDYHQRWEHHQ
FKDQJHG
7KHDUUD\HOHPHQWV>@WR
>@KDYHEHHQLQLWLDOL]HG
ZLWKWKHGHIDXOWYDOXH
,QLWLDOL]DWLRQZLWK
YDULRXVYDOXHV
,QLWLDOL]DWLRQIRU
GHILQLWLRQ

,QLWLDOL]DWLRQZLWK
LGHQWLFDOYDOXH
Initialization with value lists for the array definition, SET
As many array elements are assigned as initialization values are programmed.
Array elements without values (gaps in the value list) are automatically initialized to 0.
For variables of type AXIS, gaps in the value list are not permitted.
Programming more values than exist in the remaining array elements triggers an alarm.
Example:
DEF REAL ARRAY[2,3]=(10, 20, 30, 40)

Table of Contents

Other manuals for Siemens SINUMERIK 840D

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 840D Specifications

General IconGeneral
SeriesSINUMERIK 840D
AxesUp to 31
ChannelsUp to 10
Operating SystemWindows-based
Power Supply24 V DC
Control Unit TypeCNC
InterfaceEthernet, PROFIBUS
DisplayTFT color display
InterpolationSpline
PLCIntegrated PLC
Data StorageCompactFlash, USB

Related product manuals