EasyManuals Logo

Siemens SINUMERIK ONE MCP 2400.4c Programming Manual

Siemens SINUMERIK ONE MCP 2400.4c
1334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #515 background imageLoading...
Page #515 background image
Examples
Example 1: Resuming in the main program after ASUB execution
Programming Comment
N10010 CALL "UP1" ; Program level 0 (main program)
N11000 PROC UP1 ; Program level 1
N11010 CALL "UP2"
N12000 PROC UP2 ; Program level 2
...
N19000 PROC ASUP ; Program level 3 (ASUB execution)
...
N19100 RET("N10900", ,$P_STACK) ; Subprogram return jump into the main program
; $P_STACK: actual program level
N10900 ; Target block in the main program
N10910 MCALL ; Deactivate the modal subprogram call
N10920 G0 G60 G40 M5 ; Initialize additional modal settings
Example 2: Character string (string>) to specify the target block search
Main program:
Program code Comment
PROC MAIN_PROGRAM
N1000 DEF INT iVar1=1, iVar2=4
N1010 ...
N1200 subProg1 ; Calls subprogram "subProg1"
N1210 M2 S1000 X10 F1000
N1220 ......
N1400 subProg2 ; Calls subprogram "subProg2"
N1410 M3 S500 Y20
N1420 ..
N1500 lab1: iVar1=R10*44
N1510 F500 X5
N1520 ...
N1550 subprog1: G1 X30 ; "subProg1" is defined here as jump marker.
N1560 ...
N1600 subProg3 ; Calls subprogram "subProg3"
N1610 ...
N1900 M30
Subprogram subProg1:
Program code Comment
PROC subProg1
Work preparation
3.2 Subprogram technique
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 515

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals