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.12.2
Continuous program loop (LOOP, ENDLOOP)......................................................................... 111
1.12.3
Count loop (FOR ... TO ..., ENDFOR) ...................................................................................... 112
1.12.4
Program loop with condition at start of loop (WHILE, ENDWHILE).......................................... 114
1.12.5
1.12.6
Program example with nested check structures ....................................................................... 116
1.13
1.14
Interrupt routine (ASUB)............................................................................................................ 124
1.14.1
Function of an interrupt routine ................................................................................................. 124
1.14.2
Creating an interrupt routine ..................................................................................................... 125
1.14.3
Assign and start interrupt routine (SETINT, PRIO, BLSYNC) .................................................. 126
1.14.4
1.14.5
Delete assignment of interrupt routine (CLRINT) ..................................................................... 130
1.14.6
Fast retraction from the contour (SETINT LIFTFAST, ALF) ..................................................... 131
1.14.7
Traversing direction for fast retraction from the contour ........................................................... 134
1.14.8
Motion sequence for interrupt routines ..................................................................................... 137
1.15
Axis replacement, spindle replacement (RELEASE, GET, GETD)........................................... 138
1.16
Transfer axis to another channel (AXTOCHAN) ....................................................................... 144
1.17
Activate machine data (NEWCONF)......................................................................................... 146
1.18
Write file (WRITE) ..................................................................................................................... 147
1.19
Delete file (DELETE)................................................................................................................. 151
1.20
Read lines in the file (READ) .................................................................................................... 153
1.21
Check for presence of file (ISFILE)........................................................................................... 157
1.22
1.23
Checksum calculation using an array (CHECKSUM) ............................................................... 162
1.24
Roundup (ROUNDUP) .............................................................................................................. 164
1.25
Subprogram technique.............................................................................................................. 165
1.25.1
General information................................................................................................................... 165
1.25.1.1 Subprogram .............................................................................................................................. 165
1.25.1.2 Subprogram names................................................................................................................... 166
1.25.1.3 Nesting of subprograms ............................................................................................................ 167
1.25.1.4 Search path............................................................................................................................... 169
1.25.1.5 Formal and actual parameters .................................................................................................. 169
1.25.1.6 Parameter transfer .................................................................................................................... 170
1.25.2
Definition of a subprogram ........................................................................................................ 173
1.25.2.1 Subprogram without parameter transfer ................................................................................... 173
1.25.2.2 Subprogram with call-by-value parameter transfer (PROC) ..................................................... 174
1.25.2.4 Save modal G functions (SAVE) ............................................................................................... 178
1.25.2.5 Suppress single block execution (SBLOF, SBLON) ................................................................. 180
1.25.2.7 Identifying subprograms with preparation (PREPRO) .............................................................. 192
1.25.2.8 Subprogram return M17 ............................................................................................................ 193
1.25.2.9 RET subprogram return ............................................................................................................ 194
1.25.2.10 Parameterizable subprogram return jump (RET ...).................................................................. 195
1.25.3
Subprogram call ........................................................................................................................ 203
1.25.3.1 Subprogram call without parameter transfer............................................................................. 203
1.25.3.2 Subprogram call with parameter transfer (EXTERN)................................................................ 205
1.25.3.3 Number of program repetitions (P) ........................................................................................... 208
8
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents