You are not logged in.
Pages: 1
This older project file for Siemens 810M seems to not be running the sub program.
At the end of the punch file I have this code.
N4400 L510 (this is the sub program call)
N4405G00X12.0091Z.7585
N4410 L510 (this is the sub program call)
N4415G00X12.5984Z.7874
N4420 D0 L625
N4425 M00
N4430 L999
N4435M02
%SPF510 (sub program starts here. Also all of following code is in separate file called L510.spf)
N2 G33 Z- 5.11811 K9
N4 G00 Z- 5.11811
N6X12.4016Z-.2015
N8Z.7874
N10M17
N12M02 (sub program ends here)
I made a separate program called 'L510.spf' that has the code from %SPF510 thru N12 in it.
In the project tree under 'NC Subroutines' I have added the above separate file.
Should this program just run when called in the main program or do I have to
configure the control to read it? How to?
Offline
First of all, if the subroutine is embedded in the main program, don't add it as a separate sub routine (what should vericut use? the %SPF in the main program or the separate sub routine?)
Check if under project tree > Setup > G-code tab the settings: Scan NC Program Files and Scan NC Project Subroutine Files are checked.
Check in the controller file if the L word has been set correctly to de subroutine macro
Word L should be defined as Macro
G-code processing > Word/Address > Register > L * > macro: CallSubName > Process after motion
Word %SPF should be defined as Macro
G-code processing > Word/Address > Specials > %SPF * > macro: SubroutineSequence
See controller sin810d.ctl from the installation library
Last edited by paehv (2017-12-14 08:27:04)
Patrick Delisse
KMWE Aerospace - https://www.kmwe.com
(Vericut V9.5, Siemens NX2206, Campost)
Offline
Pages: 1