Table of contents
3.1.4.5
3.1.4.6
3.1.4.7
3.1.4.8
3.1.4.9
3.1.5
3.1.5.1
3.1.5.2
3.1.5.3
Program branch (CASE ... OF ... DEFAULT ...)...................................................................467
3.1.6
3.1.7
Check structures ..................................................................................................................474
3.1.7.1
3.1.7.2
3.1.7.3
Count loop (FOR ... TO ..., ENDFOR)..................................................................................478
3.1.7.4
3.1.7.5
3.1.7.6
3.1.8
CLEARM) .............................................................................................................................481
3.1.9
Macro technique (DEFINE ... AS) ........................................................................................487
3.2
Subprogram technique.........................................................................................................490
3.2.1
General information..............................................................................................................490
3.2.1.1
Subprogram .........................................................................................................................490
3.2.1.2
Subprogram names..............................................................................................................491
3.2.1.3
Nesting of subprograms .......................................................................................................492
3.2.1.4
Search path..........................................................................................................................493
3.2.1.5
3.2.1.6
Parameter transfer ...............................................................................................................494
3.2.2
3.2.2.1
3.2.2.2
3.2.2.3
3.2.2.4
3.2.2.5
3.2.2.6
3.2.2.7
3.2.2.8
Subprogram return M17 .......................................................................................................510
3.2.2.9
RET subprogram return .......................................................................................................511
3.2.2.10
3.2.2.11
3.2.3
Subprogram call ...................................................................................................................522
3.2.3.1
3.2.3.2
3.2.3.3
3.2.3.4
3.2.3.5
3.2.3.6
TO ...) ...................................................................................................................................530
3.2.3.7
3.2.3.8
3.2.3.9
3.2.3.10
12
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming