Siemens Sinumerik 840D sl Programming Manual page 7

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

Advertisement

Table of contents
Preface.........................................................................................................................................................3
1
Flexible NC programming .........................................................................................................................17
1.1
Variables.................................................................................................................................... 17
1.1.1
General information about variables .......................................................................................... 17
1.1.2
System variables ....................................................................................................................... 18
1.1.3
Predefined user variables: Arithmetic parameters (R) ............................................................... 21
1.1.4
Predefined user variables: Link variables .................................................................................. 23
1.1.5
Definition of user variables (DEF) .............................................................................................. 25
1.1.6
1.1.7
Attribute: Initialization value ....................................................................................................... 34
1.1.8
Attribute: Limit values (LLI, ULI) ................................................................................................ 37
1.1.9
Attribute: Physical unit (PHU) .................................................................................................... 39
1.1.10
Attribute: Access rights (APR, APW, APRP, APWP, APRB, APWB) ........................................ 41
1.1.11
Overview of definable and redefinable attributes ...................................................................... 46
1.1.12
Definition and initialization of array variables (DEF, SET, REP) ............................................... 47
1.1.13
1.1.14
Data types ................................................................................................................................. 55
1.2
Indirect programming................................................................................................................. 56
1.2.1
Indirectly programming addresses ............................................................................................ 56
1.2.2
Indirectly programming G codes ................................................................................................ 59
1.2.3
Indirectly programming position attributes (BP) ......................................................................... 60
1.2.4
Indirectly programming part program lines (EXECSTRING) ..................................................... 63
1.3
Arithmetic functions ................................................................................................................... 64
1.4
Comparison and logic operations .............................................................................................. 67
1.5
Precision correction on comparison errors (TRUNC) ................................................................ 69
1.6
1.7
Priority of the operations............................................................................................................ 73
1.8
Possible type conversions ......................................................................................................... 74
1.9
String operations ....................................................................................................................... 75
1.9.1
Type conversion to STRING (AXSTRING) ................................................................................ 76
1.9.2
Type conversion from STRING (NUMBER, ISNUMBER, AXNAME) ........................................ 77
1.9.3
1.9.4
Conversion to lower/upper case letters (TOLOWER, TOUPPER) ............................................ 79
1.9.5
Determine length of string (STRLEN) ........................................................................................ 80
1.9.6
1.9.7
Selection of a substring (SUBSTR) ........................................................................................... 82
1.9.8
Selection of a single character (STRINGVAR, STRINGFELD) ................................................. 83
1.9.9
Formatting a string (SPRINT) .................................................................................................... 84
1.10
Program jumps and branches ................................................................................................... 93
1.10.1
Return jump to the start of the program (GOTOS) .................................................................... 93
1.10.2
Program jumps to jump markers (GOTOB, GOTOF, GOTO, GOTOC) .................................... 94
1.10.3
Program branch (CASE ... OF ... DEFAULT ...) ........................................................................ 97
Job planning
Programming Manual 02/2011, 6FC5398-2BP40-1BA0
7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents