Sunteți pe pagina 1din 4

Pro/ENGINEER Forum: sub program

http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...

Ads by Google

Pro Engineer CAD


Active Topics

Pro Engineer
Search Help

Solidworks Tutorial
Register Login

Tutorial Solidworks

Manufacturing
Pro/ENGINEER Forum : Manufacturing

Topic: sub program


Author Message
Posted: 22 February 2007 at 8:36pm | IP Logged Hi all Joined: 13 August 2006 Location: Australia Online Status: Offline Posts: 145 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 << Prev Topic

| Next Topic >>

leow_john
Veteran

Back to Top

Don.Rhea
Contributor

Posted: 22 February 2007 at 10:28pm | IP Logged

Joined: 20 December 2006 Location: United States Online Status: Offline Posts: 47

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

Posted: 22 February 2007 at 11:01pm | IP Logged Hi

Joined: 13 August 2006 Location: Australia Online Status: Offline Posts: 145

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

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. Joined: 21 February 2005 Location: United States 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

1 of 4

19/07/2012 3:09 CH

Pro/ENGINEER Forum: sub program

http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...

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

Posted: 23 February 2007 at 3:22am | IP Logged Hi Mr. Wsylvester

Joined: 13 August 2006 Location: Australia Online Status: Offline Posts: 145

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

Posted: 23 February 2007 at 3:48am | IP Logged

Not a problem leow_john Joined: 21 February 2005 Location: United States Online Status: Offline Posts: 741 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

Posted: 23 February 2007 at 7:43am | IP Logged Dear Mr.Wsylvester

Joined: 13 August 2006 Location: Australia Online Status: Offline Posts: 145

Thank you very much... Waiting for your help... Regards Leow

Back to Top

mace
Member

Posted: 24 February 2007 at 7:53am | IP Logged

Leow, Preferred Member Joined: 03 October 2003 Online Status: Offline Posts: 39 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

Posted: 24 February 2007 at 10:41am | IP Logged

basically the same thing with comments Joined: 21 February 2005 Location: United States Online Status: Offline Posts: 741

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,$

2 of 4

19/07/2012 3:09 CH

Pro/ENGINEER Forum: sub program

http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...

SEQNO/OFF INSERT/TPNUM SEQNO/10,INCR,1 CIMFIL/OFF

$$ stop sequence numbering $$ insert sub-program number $$ restart sequence numbering $$ 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

Posted: 24 February 2007 at 8:25pm | IP Logged

Dear all valuable contributors Joined: 13 August 2006 Location: Australia Online Status: Offline Posts: 145 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 You cannot reply to topics You cannot delete your posts You cannot edit your posts You cannot create polls You cannot vote in polls

in this in this in this in this in this in this

forum forum forum forum forum forum

This page was generated in 0.3447 seconds.

3 of 4

19/07/2012 3:09 CH

Pro/ENGINEER Forum: sub program

http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...

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 W orld LLC. All Rights Reserved.

4 of 4

19/07/2012 3:09 CH

S-ar putea să vă placă și