Siemens Sinumerik 840D sl Programming Manual page 8

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

Advertisement

Table of contents
1.11
Repeat program section (REPEAT, REPEATB, ENDLABEL, P)............................................... 99
1.12
Check structures...................................................................................................................... 106
1.12.1
Program loop with alternative (IF, ELSE, ENDIF) .................................................................... 107
1.12.2
Continuous program loop (LOOP, ENDLOOP) ....................................................................... 109
1.12.3
Count loop (FOR ... TO ..., ENDFOR) ..................................................................................... 110
1.12.4
Program loop with condition at start of loop (WHILE, ENDWHILE) ......................................... 112
1.12.5
1.12.6
Program example with nested check structures ...................................................................... 114
1.13
1.14
Interrupt routine (ASUB) .......................................................................................................... 120
1.14.1
Function of an interrupt routine ................................................................................................ 120
1.14.2
Creating an interrupt routine .................................................................................................... 121
1.14.3
Assign and start interrupt routine (SETINT, PRIO, BLSYNC) ................................................. 122
1.14.4
1.14.5
Delete assignment of interrupt routine (CLRINT) .................................................................... 125
1.14.6
Fast retraction from the contour (SETINT LIFTFAST, ALF) .................................................... 126
1.14.7
Traversing direction for fast retraction from the contour .......................................................... 128
1.14.8
Motion sequence for interrupt routines .................................................................................... 131
1.15
Axis replacement, spindle replacement (RELEASE, GET, GETD).......................................... 132
1.16
Transfer axis to another channel (AXTOCHAN)...................................................................... 137
1.17
Activate machine data (NEWCONF) ....................................................................................... 139
1.18
Write file (WRITE).................................................................................................................... 140
1.19
Delete file (DELETE) ............................................................................................................... 146
1.20
Read lines in the file (READ) ................................................................................................... 148
1.21
Check for presence of file (ISFILE).......................................................................................... 152
1.22
1.23
Checksum calculation using an array (CHECKSUM) .............................................................. 158
1.24
Roundup (ROUNDUP)............................................................................................................. 160
1.25
Subprogram technique ............................................................................................................ 161
1.25.1
General information ................................................................................................................. 161
1.25.1.1 Subprogram ............................................................................................................................. 161
1.25.1.2 Subprogram names ................................................................................................................. 162
1.25.1.3 Nesting of subprograms ........................................................................................................... 163
1.25.1.4 Search path ............................................................................................................................. 164
1.25.1.5 Formal and actual parameters ................................................................................................. 165
1.25.1.6 Parameter transfer ................................................................................................................... 166
1.25.2
Definition of a subprogram ....................................................................................................... 168
1.25.2.1 Subprogram without parameter transfer .................................................................................. 168
1.25.2.2 Subprogram with call-by-value parameter transfer (PROC) .................................................... 169
1.25.2.4 Save modal G functions (SAVE) .............................................................................................. 172
1.25.2.5 Suppress single block execution (SBLOF, SBLON) ................................................................ 173
1.25.2.7 Identifying subprograms with preparation (PREPRO) ............................................................. 183
1.25.2.8 Subprogram return M17 ........................................................................................................... 184
8
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