Definition And Initialization Of Array Variables (Def, Set, Rep) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.1 Variables
1.1.12

Definition and initialization of array variables (DEF, SET, REP)

Function
A user variable can be defined as a 1- up to a maximum of a 3-dimensional array.
● 1-dimensional: DEF <data type> <variable name>[<n>]
● 2-dimensional: DEF <data type> <variable name>[<n>,<m>]
● 3-dimensional: DEF <data type> <variable name>[<n>,<m>,<o>]
Data types
User variables can be defined as arrays for the following data types: BOOL, CHAR, INT,
REAL, STRING, AXIS, FRAME
Assignment of values to array elements
Values can be assigned to array elements at the following points in time:
● During array definition (initialization values)
● During program execution
Values can be assigned by means of:
● Explicit specification of an array element
● Explicit specification of an array element as a starting element and specification of a
● Explicit specification of an array element as a starting element and specification of a
48
Note
STRING data type user variables can be defined as up to a maximum of 2-dimensional
arrays.
value list (SET)
value and the frequency at which it is repeated (REP)
Note
FRAME data type user variables cannot be assigned initialization values.
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents