Malish
02-21-2008, 12:09 PM
I have read on the fourms that some of you edit the post processors. Is there any kind of documention on how to do it? I have not found anything in the help files about it.
|
View Full Version : Newbie Post Processor Editing Malish 02-21-2008, 12:09 PM I have read on the fourms that some of you edit the post processors. Is there any kind of documention on how to do it? I have not found anything in the help files about it. PinMan 02-21-2008, 01:28 PM What CAM software are you using? I use SmartCAM and BobCAD, and for both of those you can download literature from their websites on editing post processors. With BobCAD, they have a pretty extensive .pdf on it. My suggestion is check with whoever makes your software. Malish 02-21-2008, 01:31 PM I just upgraded to BoBcad V22 PinMan 02-21-2008, 01:36 PM Good deal, I have some links for you then :) Mill (http://www.bobcadsupport.com/download/NewHowToo/V22MillInstalling-Editing_Post_Processors.pdf) Lathe (http://www.bobcadsupport.com/download/NewHowToo/V22MillInstalling-Editing_Post_Processors.pdf) Malish 02-21-2008, 01:46 PM Thanks for the links! Only bad thing is that I get and error when I try to lunch the MillEditPost.exe "MillEditPost MFC Application has encountered a problem and needs to close. We are sorry for the inconvenience." PinMan 02-21-2008, 01:48 PM Ouch! I am running WindowsXP at the shop and Vista at home. They both run ok on my OS's. Not sure I can help ya out there :( mmc005 02-21-2008, 04:22 PM You need to go to the bobcad website and redownload the millpostedit file. Click here http://s229444871.onlinehome.us/bobcadsupport/posts/index.php?start=/kunden/homepages/17/d229444852/htdocs/bobcadsupport/posts/BobCAD_2007_Mill_Posts/MILL%20POST%20EDITOR&parent=/kunden/homepages/17/d229444852/htdocs/bobcadsupport/posts Then read the instructions for downloading and installing the file. This should get you up and running again. Dave Malish 02-25-2008, 08:36 AM Thanks for the info. It now works! PinMan 02-25-2008, 09:08 AM Great to hear it! :D Malish 02-25-2008, 09:15 AM Ok, I got the post editor to work now I have one small problem with the cose I am generating. The Haas mills allow the use of the M97 subroutines instead of the using the M98 sub program call (M97 will put the subroutine right after the main program in the same file, while M98 creates an entire new program to call). I perfer using the M97 as I like seeing the entire thing in the same program. I changed the subprogram call to M97, but I need to have the prgram of the subrotuine be N1000 (SUBPROGRAM OF O173) instead of the O1000 (SUBPROGRAM OF O173) that it is creating. Is this possible to do? Below is the program I created... % O173 ( PROGRAM NUMBER ) ( PROGRAM NAME: B010862.NC) ( POST: HAAS TM) ( DATE: MON. 02/25/2008 , TIME: 09:49AM) ( T1 CENTER DRILL , DIAMETER = .25 , LENGTH = 5.) ( T2 DRILL , DIAMETER = .1875 , LENGTH = 5.) N10 G20 N20 G00 G90 G17 G49 G80 G99 N30 G91 G28 Z0. (JOB 1 HOLE RANDOM POINT PATTERN) (TOOL #1 0.2500 CENTER DRILL) N40 T1 M06 N50 S1497 M03 N60 G90 G54 X.25 Y-.235 N70 G43 H1 Z.1 N80 M08 N90 G81 G98 X.25 Y-.235 Z-.08 R.07 F5.9893 N100 M97 P1000 ( SUBPROGRAM CALL ) N110 G80 N120 G00 Z.1 N130 M05 N140 M09 N150 G49 N160 G91 G28 Z0. (JOB 1 HOLE RANDOM POINT PATTERN) (TOOL #2 0.1875 DRILL) N170 T2 M06 N180 S3340 M03 N190 G90 G54 X.25 Y-.235 N200 G43 H2 Z.1 N210 M08 N220 G81 G98 X.25 Y-.235 Z-.4683 R.07 F26.7278 N230 M97 P1000 ( SUBPROGRAM CALL ) N240 G80 N250 M09 N260 G00 G91 G28 Z0. N270 M05 N280 T1 M06 N290 G90 X0. Y0. N300 M30 % O1000 (SUBPROGRAM OF O173) X.5 Z-.08 F5.9893 X.75 X1. X1.25 M99 ( SUBPROGRAM RETURN ) this is what I need Below is the program I created... % O173 ( PROGRAM NUMBER ) ( PROGRAM NAME: B010862.NC) ( POST: HAAS TM) ( DATE: MON. 02/25/2008 , TIME: 09:49AM) ( T1 CENTER DRILL , DIAMETER = .25 , LENGTH = 5.) ( T2 DRILL , DIAMETER = .1875 , LENGTH = 5.) N10 G20 N20 G00 G90 G17 G49 G80 G99 N30 G91 G28 Z0. (JOB 1 HOLE RANDOM POINT PATTERN) (TOOL #1 0.2500 CENTER DRILL) N40 T1 M06 N50 S1497 M03 N60 G90 G54 X.25 Y-.235 N70 G43 H1 Z.1 N80 M08 N90 G81 G98 X.25 Y-.235 Z-.08 R.07 F5.9893 N100 M97 P1000 ( SUBPROGRAM CALL ) N110 G80 N120 G00 Z.1 N130 M05 N140 M09 N150 G49 N160 G91 G28 Z0. (JOB 1 HOLE RANDOM POINT PATTERN) (TOOL #2 0.1875 DRILL) N170 T2 M06 N180 S3340 M03 N190 G90 G54 X.25 Y-.235 N200 G43 H2 Z.1 N210 M08 N220 G81 G98 X.25 Y-.235 Z-.4683 R.07 F26.7278 N230 M97 P1000 ( SUBPROGRAM CALL ) N240 G80 N250 M09 N260 G00 G91 G28 Z0. N270 M05 N280 T1 M06 N290 G90 X0. Y0. N300 M30 N1000 (SUBPROGRAM OF O173) X.5 Z-.08 F5.9893 X.75 X1. X1.25 M99 ( SUBPROGRAM RETURN ) % It also has to put the % sign after the subprogram. PinMan 02-25-2008, 10:43 AM I also have to do some tinkering with some of my programs after they are posted. I find it easiest just to go into the program at the editor and change what I need to change before sending it to the machine. tjones 02-26-2008, 06:51 AM I am trying to make this out. So there is not really a sub program number but a line number instead? Wierd from what I have seen on other controllers. I see how it works...just never saw that done before. I am not sure without some toying around in the post how to make this work (if at all). This may also require a special post from Bobcad. Did you know that you have more options in the post than the post editor program shows you? You can go into the post directory and edit the post using notepad. Then you may see something that could help. tjones 02-26-2008, 07:08 AM It was simple to find. Look in the Last tab (Prefixes) on the post editor. There you see the prefix for Subprograms. Change the O to a N and you should have it. Malish 02-26-2008, 07:29 AM I like the M97 command better then the M98 becasue it keeps the subprogram in the same file as the main program. It's kind of like the old GOTO commands in basic. when the controller reaches the M97 it skips ahead to the end of the program and finds the subprograms after the M30 of the main program. After it reaches the M99 in the subprogram it goes back and picks up where it left off in the mian program. I actually got the % sign to go to the end by moving it from the End of Program section to the Program Trailer section. This places it at the end no matter what. I got the "N" to post as the subprogram prefix by changing the line in the post using notepad. 645. Subprogram prefix? "O" I change the "O" to "N" and it works fine now. This value didn't show up in the post editor so I had to do it manually in notepad. tjones 02-26-2008, 07:32 AM If it did not show up in the post editor then it sounds like we have different editors. Also if you wish to add the text to the sub call you can go to the 'Edit Code blocks' tab of the post editor then select 'Subprograms>Subprogram definitions' change the line like this. " " sub_num_with_prefix" (SUBPROGRAM OF O", prog_n,")" Malish 02-26-2008, 07:33 AM It was simple to find. Look in the Last tab (Prefixes) on the post editor. There you see the prefix for Subprograms. Change the O to a N and you should have it. Cool, I see it now. Did not relize that that was what those were for. I like this method of subprograms as long as your not using the same subprogram in other main programs. It's much easier to see what your doing and to edit if you have to. tjones 02-26-2008, 07:41 AM The post editor is Bobcad's little known tool that most people are afraid of using. What I did was make a copy of my original post and then edit that one (just in case I got it really screwed up. You can not mess up a copy because you can simply delete it. SUsing the post editor you can also play with the code to determine if you messed up a internal procedure call. The editor changes valid commands to a blue color. If the text is black then it is not a valid command (variable). zephyr9900 05-01-2008, 04:26 PM Where is the post editor for v20? Thanks, Randy zephyr9900 05-05-2008, 06:05 PM Never mind...I'm new to Bobcad and didn't realize that there was no post configuration file (like the SheetCam and MeshCAM I'm used to) but a whole lot of little menu things to change... [sheesh--newbies :) ] Randy Malish 05-07-2008, 11:59 AM I have another question for everyone (I think it's along the same lines as my orginal post so I put it here). Anyways, one of the things I always did was list the tools needed for the program at the top of the program so the operator can know what to put in what tool slots. Is there a way to make the post processor do this? It already puts it in the line when it is switching from one operation to another. Malish 05-07-2008, 12:06 PM Never mind, I got it to work. I was using the wrong post processor and the one I was using didn't have the commands in there. |