VERICUT Users' Forum

Due to relentless spammers, we are no longer automatically accepting new forum registrations. If you wish to register for this forum, please send an e-mail to: info@cgtech.com

You are not logged in.

#1 2017-12-11 20:42:50

cylinder2
Member
Registered: 2014-12-30
Posts: 2

Running a Sub Program Vericut 8.1.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

#2 2017-12-14 08:21:54

paehv
Senior Member
From: Eindhoven, Netherlands
Registered: 2005-01-17
Posts: 167
Website

Re: Running a Sub Program Vericut 8.1.1

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 Aerospacehttps://www.kmwe.com
(Vericut V9.5, Siemens NX2206, Campost)

Offline

Board footer