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
System variable............................................................................................................................17
1.1.2
Predefined user variables: Arithmetic parameters (R).................................................................20
1.1.3
Predefined user variables: Link variables ....................................................................................21
1.1.4
Definition of user variables (DEF) ................................................................................................24
1.1.5
1.1.6
Attribute: Initialization value .........................................................................................................32
1.1.7
Attribute: Limit values (LLI, ULI)...................................................................................................35
1.1.8
Attribute: Physical unit (PHU) ......................................................................................................37
1.1.9
Attribute: Access rights (APR, APW, APRP, APWP, APRB, APWB) ..........................................39
1.1.10
Overview of definable and redefinable attributes.........................................................................44
1.1.11
Definition and initialization of array variables (DEF, SET, REP) .................................................45
1.1.12
1.1.13
Data types ....................................................................................................................................52
1.1.14
Explicit data type conversions (AXTOINT, INTTOAX).................................................................53
1.1.15
Check availability of a variable (ISVAR) ......................................................................................54
1.1.16
GETVARDFT, GETVARTYP) ......................................................................................................56
1.2
Indirect programming ...................................................................................................................61
1.2.1
Indirectly programming addresses...............................................................................................61
1.2.2
Indirectly programming G codes ..................................................................................................64
1.2.3
Indirectly programming position attributes (GP) ..........................................................................65
1.2.4
Indirectly programming part program lines (EXECSTRING) .......................................................68
1.3
Arithmetic functions......................................................................................................................69
1.4
Comparison and logic operations ................................................................................................71
1.5
Precision correction on comparison errors (TRUNC) ..................................................................73
1.6
1.7
Priority of the operations ..............................................................................................................76
1.8
Possible type conversions ...........................................................................................................77
1.9
String operations..........................................................................................................................78
1.9.1
Type conversion to STRING (AXSTRING) ..................................................................................78
1.9.2
Type conversion from STRING (NUMBER, ISNUMBER, AXNAME) ..........................................79
1.9.3
1.9.4
Conversion to lower/upper case letters (TOLOWER, TOUPPER) ..............................................82
1.9.5
Determine length of string (STRLEN) ..........................................................................................83
1.9.6
1.9.7
Selection of a substring (SUBSTR) .............................................................................................85
1.9.8
Reading and writing of individual characters ...............................................................................85
1.9.9
Formatting a string (SPRINT) ......................................................................................................87
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents