Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Active Topics Search Help Register Login

Manufacturing
Pro/ENGINEER Forum : Manufacturing
Topic: sub program
Author Message << Prev Topic | Next Topic >>
leow_john
Veteran
Joined: 13 August 2006
Location: Australia
Online Status: Offline
Posts: 145
Posted: 22 February 2007 at 8:36pm | IP Logged
Hi all
How I could I create a sub program using Pro-NC
I mean using M98, M98
Is it fully controlled by GPOST or else any setting inside Pro-NC?
Regards
Leow
Back to Top
Don.Rhea
Contributor
Joined: 20 December 2006
Location: United States
Online Status: Offline
Posts: 47
Posted: 22 February 2007 at 10:28pm | IP Logged

I am assuming your refering to Fanuc Macro "B".
The sub program is called with a M98 or a G65 and ends with a M99. If you call the subprogram with a G65 you can
pass data into the subprogram. See your Fanuc manual.
If you use 9000 program numbers there editing can be restricted.
GPOST has nothing to do with a Macro B subprogram.
I write the subprograms manually. If you will give an e-mail address I'll send you some samples.

__________________
Donald W. Rhea
Back to Top

leow_john
Veteran
Joined: 13 August 2006
Location: Australia
Online Status: Offline
Posts: 145
Posted: 22 February 2007 at 11:01pm | IP Logged
Hi
Thanks for the reply
I know how to do sub program, but how to accomplish it in Pro-NC.
I also do it manually.
I could not see any option in pro-e to create this.
Regards
Leow
leow_john_2007@yahoo.com.sg
Back to Top

wsylvester
MVP
Joined: 21 February 2005
Location: United States
Posted: 23 February 2007 at 3:02am | IP Logged
Leow not having pro/nc here at home... and not having used it in awhile, use mastercam most of the time.
you create you nc sequence then under cl data there should be a subroutines menu off the machining menu, they you
can check the ones you want to sub or all of them...done sel
Ads by Google Pro Engineer CAD Pro Engineer Solidworks Tutorial Tutorial Solidworks
Pro/ENGINEER Forum: sub program http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...
1 of 4 19/07/2012 3:09 CH
Online Status: Offline
Posts: 741
then you get more options..fixture offsets,absolute/ incremental and more menus picks etc. redefine... pat def
it's there somewhere..where depend of which flavor of pro/man
I wrote a vb program to manage this.

Back to Top

leow_john
Veteran
Joined: 13 August 2006
Location: Australia
Online Status: Offline
Posts: 145
Posted: 23 February 2007 at 3:22am | IP Logged
Hi Mr. Wsylvester
Thanks for spending your time.
I tried this method earlier but not good like master cam.
Sub routinesin pro-e helps just changing to G91 only
Any idea to get sub Programe call
Regards
Leow
Back to Top

wsylvester
MVP
Joined: 21 February 2005
Location: United States
Online Status: Offline
Posts: 741
Posted: 23 February 2007 at 3:48am | IP Logged
Not a problem leow_john
I will check at work tomorrow and try and get back to you this weekend if someone else does not get back to you
about this. LIke I said I am more mastercam than pro/man....
I work nights ... that why I am up late now...but need to get to sleep real soon it's 2:35 am and I am fading fast
I'm glad you brought this up as I had a bunch of tutorials that a ptc person sent me and thought I might of deleted
them...75megs zipped , it will take some time to look through them again.
I think that someone else will have a answer for you sooner than I will..it's a good forum with some great people
Back to Top

leow_john
Veteran
Joined: 13 August 2006
Location: Australia
Online Status: Offline
Posts: 145
Posted: 23 February 2007 at 7:43am | IP Logged
Dear Mr.Wsylvester
Thank you very much...
Waiting for your help...
Regards
Leow
Back to Top

mace
Member
Preferred Member
Joined: 03 October 2003
Online Status: Offline
Posts: 39
Posted: 24 February 2007 at 7:53am | IP Logged
Leow,
Here is what I use for sub Programs in pro nc!
CIMFIL/ON,DEFSUB
SUBNUM=POSTF(7,4)
TPNUM=TEXT/'O',CONVF,SUBNUM,4,0,0,1,1,'$'
INSERT/TPNUM
CIMFIL/OFF
CIMFIL/ON,ENDSUB
INSERT/'M99$'
INSERT/' $'
CIMFIL/OFF
CIMFIL/ON,CALSUB
CNUM=POSTF(7,4)
TPNUM=TEXT/'M98P',CONVF,CNUM,4,0,0,1,3,'$'
INSERT/TPNUM
CIMFIL/OFF
Back to Top

wsylvester
MVP
Joined: 21 February 2005
Location: United States
Online Status: Offline
Posts: 741
Posted: 24 February 2007 at 10:41am | IP Logged
basically the same thing with comments
1. CIMFIL/ON,DEFSUB $$ starts on all DEFSUB records
SUBNUM=POSTF(7,4) $$ first parameter of the DEFSUB command
$$ Convert the scalar SUBNUM to a string O followed by 4 digits
TPNUM=TEXT/O,CONVF,SUBNUM,4,0,0,1,1,$
Pro/ENGINEER Forum: sub program http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...
2 of 4 19/07/2012 3:09 CH
SEQNO/OFF $$ stop sequence numbering
INSERT/TPNUM $$ insert sub-program number
SEQNO/10,INCR,1 $$ restart sequence numbering
CIMFIL/OFF $$ end of CIMFIL on DEFSUB
The next step will be to create a FIL routine on the CL record that marks the end of a
sub-program: ENDSUB. On the Fanuc control, the end of sub-programs is defined by an
M99 code.
CIMFIL/ON,ENDSUB $$ starts on all ENDSUB
INSERT/(TEXT/M99$) $$ insert end of sub-program code
SEQNO/OFF $$ stop sequence numbering
INSERT/(TEXT/ $) $$ insert a blank line
SEQNO/ON $$ restart sequence numbering
CIMFIL/OFF $$ end of CIMFIL on ENDSUB
Finally you must create a routine on the sub-program call CL record: CALSUB. On the Fanuc
control, sub-programs are called using a M98 code followed by a P-block and the
sub-program number.
CIMFIL/ON,CALSUB $$ starts on all CALSUB
CNUM=POSTF(7,4) $$ first parameter of the CALSUB command
$$ Convert the scalar CNUM to a string M98P followed by
$$ the sub-program number
TPNUM=TEXT/M98 P,CONVF,CNUM,4,0,0,1,3,$
INSERT/TPNUM $$ output sub-program call
CIMFIL/OFF $$ end of CIMFIL on CALSUB
Back to Top

leow_john
Veteran
Joined: 13 August 2006
Location: Australia
Online Status: Offline
Posts: 145
Posted: 24 February 2007 at 8:25pm | IP Logged
Dear all valuable contributors
What a wonderful contribution you people are doing
Very helpful.
Grateful to you all
Thanks for each one of all
Regards
Leow
Back to Top

Page of 2 Next >>

Printable version
Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum
This page was generated in 0.3447 seconds.

Pro/ENGINEER Forum: sub program http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...
3 of 4 19/07/2012 3:09 CH
About Us | Contact Us | Report a Bug | Tell a Friend | Advertise | Site Map |
Catia | Inventor | Pro/ENGINEER | SolidWorks | Siemens PLM
Design World: Home | Articles | Engineering Resources | Leadership | Store | Materials Finder
Engineering Community: 3D CAD Discussion Forums | | 3D CAD Tips | 3D CAD Tutorials | Engineering
Careers | Engineering Exchange | Facebook Design World Fanpage | LinkedIn Group - Design World
| MCAD Central Forums | Twitter follow Design World
Engineering Network: | 3D CAD Models | 3D CAD Tips | 3D CAD Tutorials | Calculators - Widget
Resources | Coupling TIPS | Engineering Careers | Engineering Watch Video Library | LinearMotion
TIPS | 3D Printing - Digital Manufacturing Review | Materials Search - Powered by MatWeb |
MotionControl TIPS | Pneumatic Tips | Podcasts | Project Mechatronics | Protoype Parts - Powered by
Proto Labs | Sensor TIPS | Test & Measurement Tips
Privacy Policy | Disclaimer | User Agreement | Copyright Information
Copyright 2004-2008, Design World LLC. All Rights Reserved.
Pro/ENGINEER Forum: sub program http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...
4 of 4 19/07/2012 3:09 CH

You might also like