View Full Version : g and f word on every line?


july_favre
01-11-2007, 06:47 PM
IS it possible to have the post put the g word and f word on every line?
I often jump around the program with the stuff I do so I need it to do the right movements when I do.
Could someone explain how to do this?
Thanks

BMackinnon
01-16-2007, 05:18 PM
are you saying you want to know on each line wheater or not your in G01, G02, G03, G00 etc. and for your feed to be displayed as well ?

I dont know your machine or control and how much space it will hold, but this will produce a lot of un-needed code. Again Im not sure of your control but, Im sure it has a current commands screen that will display all of this for you.

july_favre
01-16-2007, 07:14 PM
are you saying you want to know on each line wheater or not your in G01, G02, G03, G00 etc. and for your feed to be displayed as well ?


Its not that I want to know, its that I want the machine to know-
I know that the screen displays the information, the reason I need it on everyline is because I do prototype stuff and I mkae changes on the machine and jump around the program when Im machining. When I dont run the program straight through and I jump from one point to another, its not uncommon for the line I jump to have a different feed rate or movement type or both.

BMackinnon
01-17-2007, 06:22 PM
ahhh I understand what your saying now. My aploigies

I took a look around a couple other fourms to see how to force this on each line but I found nothing. I myself have not come across the need for this, but I understand why you would.

Im sure it can be done.

sorry I couldnt help you.

lgreeves
01-18-2007, 01:12 PM
Your post-processer software should give you the option. It may say something like "Commands Model"

mark c
01-18-2007, 09:44 PM
Yes, it's possible. Are you familiar with post editing?
What you want to do is put the asterisk (*) character in front of each occurence. This will output the code in every line where it is used whether it has changed or not. Some machines need to see this.
The following is an example:
plinout #Output to NC of linear movement - feed

pbld, n, *sgfeed, sgplane, `sgcode, sgabsinc, pccdia,
pxout, pyout, pzout, pcout, *feed, strcantext, scoolant, e

The sgfeed and feed words in this post control the G0, 1,2,3 and feed.
Depending on the post the other areas you'll need to address might be: pcirout1, prapidout, & ptlchg or ptlchg_com.
Remember to back up your post before changing anything and only change one thing at a time. I like to "flag" my changes with my initials at the end of a line after the pound (#) sign. MC ignores anything after the #.
Hope this helps. Let us know ifyou need any more ideas

Willbird
01-21-2007, 01:22 PM
Doing this would make any given program a LOT bigger right ?? caracter wise ??

Bill

mark c
01-21-2007, 01:51 PM
Doing this would make any given program a LOT bigger right ?? caracter wise ??

Yup!

july_favre
01-22-2007, 04:25 PM
Yes, it's possible. Are you familiar with post editing?
What you want to do is put the asterisk (*) character in front of each occurence. This will output the code in every line where it is used whether it has changed or not. Some machines need to see this.
The following is an example:
plinout #Output to NC of linear movement - feed

pbld, n, *sgfeed, sgplane, `sgcode, sgabsinc, pccdia,
pxout, pyout, pzout, pcout, *feed, strcantext, scoolant, e

The sgfeed and feed words in this post control the G0, 1,2,3 and feed.
Depending on the post the other areas you'll need to address might be: pcirout1, prapidout, & ptlchg or ptlchg_com.
Remember to back up your post before changing anything and only change one thing at a time. I like to "flag" my changes with my initials at the end of a line after the pound (#) sign. MC ignores anything after the #.
Hope this helps. Let us know ifyou need any more ideas

In the post I am using it doesnt have those values, but I was able to get the g-word on every line by using the asterik like you said-

prapidm # Linear line movement - at rapid feedrate
pxycalc
n$, sgabsinc, sgplane, sccomp, pccdia, *sgcode, pxout, pyout,
pzout, pcan
...

plinm # Linear line movement - at feedrate
pxycalc
n$, sgabsinc, sccomp, pccdia, *sgcode, pxout, pyout, pzout, pfr, pcan


However I am unable to get the f-word on every line. Can you tell what value I need to change here? The f-word, I believe, is done with the "pfr" portion. Here is the "pfr" porttion of the post incase you need it-

pfr # Feedrate W/O Negative Feedrates
if fr$ > zero, fr$

Thanks for any help you can give.

mark c
01-22-2007, 05:05 PM
You can try that, but I don't know if it will work on a postblock. Which post are you using?

july_favre
01-22-2007, 05:12 PM
I using the "MAXNC 3X MILL" post that I got off the mastercam website.
Its probably obvious I dont really deal with mastercam let alone its posting system. RIght now I just want to try out the ouput code to see if it will be more effecient than how Ive been doing it.

mark c
01-22-2007, 05:16 PM
Gimmie a while. I'll download that post and see what I can come up with