Documente Academic
Documente Profesional
Documente Cultură
http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...
Ads by Google
Pro Engineer
Search Help
Solidworks Tutorial
Register Login
Tutorial Solidworks
Manufacturing
Pro/ENGINEER Forum : Manufacturing
leow_john
Veteran
Back to Top
Don.Rhea
Contributor
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.
leow_john
Veteran
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.
wsylvester
MVP
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
http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...
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
Thanks for spending your time. I tried this method earlier but not good like master cam.
Back to Top
wsylvester
MVP
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
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
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
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
http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...
$$ 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
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
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
3 of 4
19/07/2012 3:09 CH
http://www.mcadcentral.com/proe/forum/forum_posts.asp?TID=332...
4 of 4
19/07/2012 3:09 CH