Siemens sinumerik 840d Programming Manual page 32

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

Flexible NC Programming
1
1.3
Array definition
840D
840D
NCU 571
NCU 572
NCU 573
In the above example, the initialization values match
the index of the array element in order to illustrate
the sequence of the individual array elements.
Initialization of arrays
Initialization values can be assigned to array
elements during program execution or when arrays
are defined.
The right-hand array index is incremented first on
two-dimensional arrays.
Initialization with value lists, SET
1. Options during array definition
DEF Type VARIABLE = SET(VALUE)
DEF Type ARRAY[n,m] = SET(VALUE,
value, ...)
Or:
DEF Type VARIABLE = value
DEF Type ARRAY[n,m] = (value, value,
...)
• The number of array elements assigned
corresponds to the number of initialization values
programmed.
• Array elements without values (gaps in value list)
are automatically assigned the value "0".
• There may be no gaps in the value list for
variables of the AXIS type.
• If more values are programmed than remaining
array elements exist, the system triggers an
alarm.
Example:
DEF REAL ARRAY[2,3]=(10, 20, 30, 40)
You can specify SET optionally when defining
arrays.
1-32
FM-NC
810D
840Di
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
04.00
1
 Siemens AG 2000. All rights reserved

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents