Subprogram Names - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

3.2.1.2

Subprogram names

Naming rules
The subprogram name can be chosen freely providing the following rules are observed:
● Permissible characters:
– Letters: A ... Z, a ... z
– Numbers: 0 ... 9
– Underscore: _
● The first two characters should either be two letters or an underscore followed by a letter.
Note
If this condition is satisfied, then an NC program can be called as subprogram from another
program just by specifying the program name. However, if the program name starts with
digits, the subprogram call is then only possible via the CALL statement.
● Maximum length: 24 characters
Note
Uppercase/lowercase letters
The SINUMERIK NC language does not distinguish between uppercase and lowercase letters.
Note
Impermissible program names
To avoid problems with Windows applications, the following program names may not be used:
● CON, PRN, AUX, NUL
● COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9
● LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9
Control-internal extensions
The program name assigned when the subprogram is created is expanded within the control
with the addition of a prefix and a suffix:
● Prefix: _N_
● Postfix: _SPF
Using the program name
When using the program name, e.g. in the context of a subprogram call, all combinations of
prefix, program name, and suffix are possible.
Example:
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Work preparation
3.2 Subprogram technique
491

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents