Programming
10.11 Subroutine technique
Cylindrical grinding
316
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
0
1;=
15
/
/
&DOO
5HWXUQ
5HWXUQ
0
1/&DOO
1
&DOO
6XESURJUDP
6XESURJUDP
0$,1
0$,1
6HTXHQFH
0DLQSURJUDP
0DLQSURJUDP
1/&DOO
Figure 10-37 Example of a sequence when a subroutine is called in a two-channel manner.
Subroutine name
The subprogram is given a unique name allowing it to be selected from several subroutines.
When you create the program, the program name may be freely selected provided the
following conventions are observed:
The same rules apply as for the names of main programs.
Example: BUCHSE7
It is also possible to use the address word L... in subroutines. The value can have 7 decimal
places (integers only).
Please observe: With address L, leading zeros are meaningful for differentiation.
Example: L128 ist nicht L0128 oder L00128 !
Dies sind 3 verschiedene Unterprogramme.
Note: The subroutine name LL6 is reserved for tool change.
Subroutine call
Subroutines are called in a program (main or subprogram) with their names. To do this, a
separate block is required.
Example:
N10 L785
; Subprogram call L785
N20 SHAFT7
; Subprogram call SHAFT7
Содержание SINUMERIK 802D
Страница 6: ...Preface Cylindrical grinding 6 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 12: ...Table of contents Cylindrical grinding 12 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 64: ...Define 4 10 User data Cylindrical grinding 64 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 152: ...System 8 7 Alarm display Cylindrical grinding 152 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 334: ...Programming 10 15 Oscillation Cylindrical grinding 334 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 394: ...Appendix A 5 Overview Cylindrical grinding 394 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 399: ...Index Cylindrical grinding Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 399 W Word structure 221 ...