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.10
Program jumps and branches..................................................................................................... 96
1.10.1
Return jump to the start of the program (GOTOS)...................................................................... 96
1.10.2
Program jumps to jump markers (GOTOB, GOTOF, GOTO, GOTOC)...................................... 97
1.10.3
Program branch (CASE ... OF ... DEFAULT ...)........................................................................ 100
1.11
Repeat program section (REPEAT, REPEATB, ENDLABEL, P).............................................. 102
1.12
Check structures ....................................................................................................................... 108
1.12.1
Conditional statement and branch (IF, ELSE, ENDIF) ............................................................. 110
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 ....................................................................... 115
1.13
1.14
Interrupt routine (ASUB)............................................................................................................ 121
1.14.1
Function of an interrupt routine ................................................................................................. 121
1.14.2
Creating an interrupt routine ..................................................................................................... 123
1.14.3
Assign and start interrupt routine (SETINT, PRIO, BLSYNC) .................................................. 124
1.14.4
1.14.5
Delete assignment of interrupt routine (CLRINT) ..................................................................... 126
1.14.6
Fast retraction from the contour (SETINT LIFTFAST, ALF) ..................................................... 127
1.14.7
Traversing direction for fast retraction from the contour ........................................................... 129
1.14.8
Motion sequence for interrupt routines ..................................................................................... 132
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)......................................................................................... 138
1.18
Write file (WRITE) ..................................................................................................................... 139
1.19
Delete file (DELETE)................................................................................................................. 144
1.20
Read lines in the file (READ) .................................................................................................... 146
1.21
Check for presence of file (ISFILE)........................................................................................... 148
1.22
1.23
Roundup (ROUNDUP) .............................................................................................................. 153
1.24
Subprogram technique.............................................................................................................. 154
1.24.1
General information................................................................................................................... 154
1.24.1.1 Subprogram .............................................................................................................................. 154
1.24.1.2 Subprogram names................................................................................................................... 155
1.24.1.3 Nesting of subprograms ............................................................................................................ 156
1.24.1.4 Search path............................................................................................................................... 157
1.24.1.5 Formal and actual parameters .................................................................................................. 158
1.24.1.6 Parameter transfer .................................................................................................................... 159
1.24.2
Definition of a subprogram ........................................................................................................ 161
1.24.2.1 Subprogram without parameter transfer ................................................................................... 161
1.24.2.2 Subprogram with call-by-value parameter transfer (PROC) ..................................................... 162
1.24.2.4 Save modal G functions (SAVE) ............................................................................................... 166
1.24.2.5 Suppress single block execution (SBLOF, SBLON) ................................................................. 167
8
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents