Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

code to post editing?


Sandybar
 Share

Recommended Posts

I did a search for this, could not find what I'm looking for and I'm pretty sure I have seen this before.

 

When you are posting code is there an editor and or switch that puts in the post variable associated with that line?

 

I must be dreamming but I thought it was real.

Link to comment
Share on other sites

Sandybar,

 

The change to force the post to output the variable names is in the Control Definition file, not the text editor.

 

You should also use your text editor to edit the .PST file. Look for the "Debugging and program switches" section.

 

Here is a copy from one of my posts:

code:

 

 

# --------------------------------------------------------------------------

# Debugging and program switches

# --------------------------------------------------------------------------

fastmode$ : 1 #Posting speed optimizition

bug1$ : 2 #0=No display, 1=Generic list box, 2=Editor

bug2$ : 30 #Append postline labels, non-zero is column position? <---- This line forces the output of variables when debugging is enabled in the control definition file.

Set this value to a negative number (-40) to force the output of all variables associated with this output line.

bug3$ : 0 #Append whatline no. to each NC line?

bug4$ : 1 #Append NCI line no. to each NC line?

 


Link to comment
Share on other sites

John,

 

That only works if you have a V9 post that has been updated. If your post reads the MD/CD settings, these settings override the post file. That is what is happening to Sandybar. That post is set to read the CD and it won't output the postblock info. You have to go into the Machine Def manager, open the control def, and check or uncheck the "enable post debug" switch. This is true of any native X or X2 post that is provided by CNC Software (I'm not sure about MPMaster).

 

HTH,

Link to comment
Share on other sites

Colin,

 

I am using the latest MPMaster post.

 

code:

 pprep$          #Pre-process postblock - Allows post instructions after the post is parsed but before the NC and NCI file are opened.

#DO NOT ATTEMPT TO OUTPUT TO THE NC FILE IN THIS POSTBLOCK (OR ANY POSTBLOCKS YOU MAY CALL FROM HERE) BECAUSE THE NC OUTPUT FILE IS NOT YET OPENED!

rd_mch_ent_no$ = 0 #Read only the machine base parameters (use to collect common parameters from CNC_MACHINE_TYPE)

rd_md$ #Read machine definition parameters

fastmode$ = 1

From the thread I mention earlier

Per Paul Decelles

quote:

You can also cheat (like I do) and add this to the top of your post (under the first line):

 

pprep$

fastmode$ = no$

 

 

(Do a search for pprep$ first and just add the fastmode$ = no$ in it if it exists)

 

Then you can just comment out the fastmode$ line to turn it off (or delete the two lines altogether when done "tweaking" the post).

Pauls advice didn't seem to be MPMaster specific so I assume it would work for any post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...