Cancel
Showing results for 
Search instead for 
Did you mean: 

Calling the subroutine described in the body of the main program

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Hello,

 

Has anyone encountered a task in CSE: a subroutine call that was described in the main program file?
Is there any solution without outputting the subroutines in a separate file?

 

Example:
The simulation of the L3003 subroutine was called from the main program % _N_101_SPF

Important: Both programs are outputed by the postprorocessor in one file.

 

%_N_101_SPF
;$PATH=/_N_WKS_DIR/_N_0012532_WPD
;PROGRAMM: 101
;
;***********************************************
;MACHINE TYPE: EMAG-VSC-400_70
;PROGRAMMER: VLASOV SIEMENS PLM
;TEL.:                         tel. XXXXXXX
;DATA:                       11.05.2018 13:13
;DOLOTO:                  E:\E47_621\R20829_MFG_400_70_SETUP_1_V3TEST.PRT
;OPORA:                     513
;TOTAL MACHINE TIME: 12.000 MIN;
;CUTTING MACHINE TIME: 12.000 MIN
;***********************************************
N10 MSG(OPERATION: "CENTERLINE_PECKDRILL")
N20 L3003
N30 ;----------------------------------
N40 ; T1 D1 ; TOOL CHANGE
N50 ;----------------------------------
N60 STOPRE
N70 T1 D1
N80 LIMS=800
N90 G95 S800 M3
N100 M8
N110 G0 G90 X0.0 Z-72. D1 M46
...
N2030 M5 M9
N2040 M47
N2050 M30 ; END OF PROGRAMM


%_N_L3003_SPF
;$PATH=/_N_WKS_DIR/_N_0012532_WPD
MSG("FREIFAHREN MESSEN")
; T - TASTER *----*
;+++++++++++++++++++++++++
G1 G94 G53 D0 X1043.42 F500
G1 G94 G53 D0 Z540 F500
R921=0
;+++++++++++++++++++++++++
MSG()
M17
M99


Thank You

3 REPLIES

Re: Calling the subroutine described in the body of the main program

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Alex,

 

please try to add the CCF (attached) into your MCF. That activates one method to allow what you are looking for. this is disabled by default as in that cases all the time we first need to post everything to find possible subprograms and that could lead to longer time during simulation from the operations.

 

Please let me know if that does the job.

 

Thanks

Thomas

 

Thomas Schulz
Siemens PLM
Manufacturing Engineering Software

Re: Calling the subroutine described in the body of the main program

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Hello, Thomas

 

Unfortunately adding a CCF-file to the MCF did not solve the problem. The size of the CCF file after unzipping is only 1KB. That's right?

Re: Calling the subroutine described in the body of the main program

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello,

 

yes, the CCF is very small. Please make sure it is listed on the TOP of CCF not at the bottom in the machine Configurator. Then it should work.

 

Do you simulate that based on operations (internal NC Code simulation) select the file as simulate external NC Code simulation? Does that make a difference?

 

What shows the Program Manager as subprogramms?

 

When simulate from internal operation make sure the post used the method

MOM_start_subroutine <name_of_subprogram>

to output data related to a subprogram, so that CSE knows the NC Code belongs not to the main program.

 

Thomas

 

Thomas Schulz
Siemens PLM
Manufacturing Engineering Software

Learn online





Solution Information