Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IFRs on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Post Builder, can't force output of high speed codes at every G00/G01/G02/G03.

Status
Not open for further replies.

Tingsryd

Industrial
Jul 28, 2010
269
I am trying to out G187 P1 right before every G00 and ouput G187 P3 right before every G01/g02/g03. I used a pb_cmd with mom_output_literal but the post only outputs the codes once then not again after a tool change. I also tried a simple text command and that gave the same result.

Here is an example of one of the pb_cmd's:

# This cmd outputs the G code for smoothness level: finish
#
#
#
MOM_output_literal "G187 P3"

Quite simlple but I'm obviously missing something. By the way, when using the pb_cmd there is no force output choice when right clicking it but there is when using simple text input.

The reason I want to do this is the finish mode adversely affects positioning so I want to set it to rough for G00 and set it back to finish for G01/G02/G03.

NX8
 
Replies continue below

Recommended for you

The blocks populated after creating the the codes for linear, circular and rapid motion but I don't know how to create new words. Force output is now available but it seems to have no effect. Also, I was wrong about the nc output; I verified the post outputs a G187 P1 at the beginning of each operation, not just after each tool change.

This is very frustrating because I have been told there are not any classes for PB and taking a Tcl-Tk class is overkill for what little syntax we need to know for PB. What to do?

It's almost 9pm and way past the time to leave the office.

NX8
 
"The blocks populated after creating the the codes for linear, circular and rapid motion but I don't know how to create new words"

To create a new word select the NC Data Definitions tab
You have BLOCK, WORD, and FORMAT available
Select the WORD you want to copy and like G_mode for example and click Create You should now have a new word G_mode_1 for example. Now you can edit this word and add it to a block. Blocks have words and words are formatted.

Ther is a PB course listed on the siemens website


John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6 & NX7.5
 
I tried your suggestion and I'm still not able to get the correct output. Sorry to say but I have to bail on this project. I just can't spend any more time spinning my wheels and getting nowhere. Perhaps it's time to take the PB class and a Tcl-Tk class. I appreciate the help, John, but at this point I think I'm looking at roughly $10K for classes, plus my time, to get this done. At least when I'm done I'll be able to write custom PB code on my own. In the long run it will be cost effective so we won't be paying VARs $3-4.5k per post.

NX8
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor