Siemens Sinumerik 840D sl Programming Manual page 698

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

Advertisement

Additional functions
14.5 Check scope of NC language present (STRINGIS)
13.The string "MYVAR" is defined as LUD variable:
211 == STRINGIS("MYVAR")
14.String "XYZ" is a command that is not known in the NCK, GUD variable, macro or cycle
name:
000 == STRINGIS("XYZ")
Tool magazine management
If the tool magazine management function is not active, STRINGIS supplies for the system
parameters of the tool magazine management, independent of the machine data
MD10711 $MN_NC_LANGUAGE_CONFIGURATION
always a value of 000.
ISO mode
If the "ISO mode" function is active:
MD18800 $MN_MM_EXTERN_LANGUAGE (activation, external NC languages)
MD10880 $MN_ MM_EXTERN_CNC_SYSTEM (control system to be adapted)
STRINGIS checks the specified string initially as SINUMERIK G-Code. If the string is not a
SINUMERIK G code, then it is subsequently checked as ISO G code.
Programmed switchovers (G290 (SINUMERIK mode), G291 (ISO Mode)) have no effect on
STRINGIS.
Example
The machine data, relevant for the function STRINGIS(...), have the following values:
MD10711 $MN_NC_LANGUAGE_CONFIGURATION = 2 (only the NC language
commands whose options are set are considered to be known)
MD19410 $ON_TRAFO_TYPE_MASK = 'H0' (option: transformations)
MD10700 $MN_PREPROCESSING_LEVEL='H43' (preprocessing for cycles is active)
The following program example is executed without error message:
Program code
N1 R1=STRINGIS("TRACYL")
N2 IF STRINGIS("TRACYL") == 204
N3
TRACYL(1,2,3)
N4 ELSE
N5
G00
N6 ENDIF
N7 M30
698
Comment
;
R1 == 0, as TRACYL is identified as
;
"not known" because of the missing transformation
;
option
;
;
N3 is skipped
;
and instead, N5 is executed
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents