Save Modal G Functions (Save) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Flexible NC programming
1.25 Subprogram technique
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: PROC <program name> (VAR REAL ARRAY[,5])
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
1.25.2.4

Save modal G functions (SAVE)

Function
The SAVE attribute means that before the subprogram call, active modal G functions are
saved and are re-activated after the end of the subprogram.
CAUTION
Uninterruptible continuous-path mode
SAVE must not be used if continuous-path mode is active and should not be interrupted by
the subprogram call.
Syntax
PROC <subprogram name> SAVE
178
Comment
; Parameter 1: Reference to type: REAL,
name: LENGTH
Parameter 2: Reference to type: REAL,
name: WIDTH
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