Siemens SINUMERIK 840D sl Programming Manual page 165

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

Advertisement

<array name>
[<m>,<n>,<o>]
Note
The program name specified after the
on the user interface.
Note
With arrays of an undefined array length, subprograms can process arrays of variable length
as formal parameter. When defining a two-dimensional array as a formal parameter, for
example, the length of the 1st dimension is not specified. However, the comma must be
written.
Example:
Example
Definition of a subprogram with 2 parameters as reference to REAL type:
Program code
PROC SUB_PROG(VAR REAL LENGTH, VAR REAL WIDTH)
...
N100 RET
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
:
Name of the array
:
Array size
Currently, up to 3-dimensional arrays are possible:
<m>
<n>
<o>
PROC <program name> (VAR REAL ARRAY[,5])
:
Array size for 1st dimension
:
Array size for 2nd dimension
:
Array size for 3rd dimension
keyword must match the program name assigned
PROC
Comment
; Parameter 1: Reference to type: REAL,
name: LENGTH
Parameter 2: Reference to type: REAL,
name: WIDTH
Flexible NC programming
1.24 Subprogram technique
165

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents