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 ........................................................................................................................ 15
1.1
Variables ......................................................................................................................................15
1.1.1
General information about variables............................................................................................15
1.1.2
System variables..........................................................................................................................16
1.1.3
Predefined user variables: Arithmetic parameters (R).................................................................19
1.1.4
Predefined user variables: Link variables ....................................................................................21
1.1.5
Definition of user variables (DEF) ................................................................................................24
1.1.6
1.1.7
Attribute: Initialization value .........................................................................................................34
1.1.8
Attribute: Limit values (LLI, ULI)...................................................................................................38
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.........................................................................47
1.1.12
Definition and initialization of array variables (DEF, SET, REP) .................................................48
1.1.13
Data types ....................................................................................................................................57
1.2
Indirect programming ...................................................................................................................58
1.2.1
Indirectly programming G codes ..................................................................................................62
1.2.2
Indirectly programming position attributes (BP)...........................................................................63
1.2.3
Indirectly programming part program lines (EXECSTRING) .......................................................66
1.3
Arithmetic functions......................................................................................................................67
1.4
Comparison and logic operations ................................................................................................70
1.5
Precision correction on comparison errors (TRUNC) ..................................................................73
1.6
1.7
Priority of the operations ..............................................................................................................77
1.8
Possible type conversions ...........................................................................................................78
1.9
String operations..........................................................................................................................79
1.9.1
Type conversion to STRING (AXSTRING) ..................................................................................80
1.9.2
Type conversion from STRING (NUMBER, ISNUMBER, AXNAME) ..........................................81
1.9.3
1.9.4
Conversion to lower/upper case letters (TOLOWER, TOUPPER) ..............................................85
1.9.5
Determine length of string (STRLEN) ..........................................................................................86
1.9.6
1.9.7
Selection of a substring (SUBSTR) .............................................................................................89
1.9.8
Selection of a single character (STRINGVAR, STRINGFELD) ...................................................90
1.10
Program jumps and branches......................................................................................................92
1.10.1
Return jump to the start of the program (GOTOS) ......................................................................92
1.10.2
Program jumps to jump markers (GOTOB, GOTOF, GOTO, GOTOC) ......................................93
1.10.3
Program branch (CASE ... OF ... DEFAULT ...) ..........................................................................97
1.11
Repeat program section (REPEAT, REPEATB, ENDLABEL, P) ................................................99
1.12
Check structures ........................................................................................................................107
1.12.1
Program loop with alternative (IF, ELSE, ENDIF)......................................................................109
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents