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:

Post help


connormac
 Share

Recommended Posts

Here is a snippet of how I check them.

code:

 sav_spc = spaces$

spaces$ = 0

if workofs$ <= 4, 032, "MSG", "(",034,*sbadoff,034, ")"

if workofs$ > 100, 032, "MSG", "(",034,*sbadoff,034, ")"

spaces$ = sav_spc

if workofs$ >= 0 & workofs$ < 4,

For your Q value, you can can track the peck1$ variable as I do the workoff$

 

perhaps like.......

code:

  

ppeck$ #Canned Peck Drill Cycle

pdrlcommonb

if peck1$ <= 0,

[

032, "MSG", "(",034,*sbadq,034, ")"

]

else,

[

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout,

prdrlout, *peck1$, *feed, strcantext, e$

]

pcom_movea

Link to comment
Share on other sites

IMO you're better off creating an error message that will post up on the screen so you can fix it immediately.

 

to do this;

 

Create an error message. If you're using mpmaster there should be an error message section;

 

code:

speckrate_error  "ERROR --- PECKRATE = 0"

setup a conditional line to catch and print the error;

 

code:

ppeck$           #Canned Peck Drill Cycle

savdrl_gcode = gcode$

pdrlcommonb

if peck1$ = 0, result = mprint(speckrate_error) #<<<<<<<<<<<<<<<<<<<<<<

pcan1, pbld, n$, *sgdrlref, pgdrill, pdrlxy, pfzout, pcout,

prdrlout, *peck1$, *feed, strcantext, e$

pcom_movea

You will get a message window on the screen that you'll have to click "ok" to close and resume posting.

Link to comment
Share on other sites

In my control def file under "Files" I have Keep error file "On post errors and messages" and under Message options "All error messages to file" but I would think you shouldn't need to have that turned on.

 

I do have this in my post (from V9)

 

code:

error_msg$   : 0     #0=file and prompt, 1=to screen, 2=one to screen

err_file$ : 1 #0=fatal, 1=all errors, 2=inc mprint, 3=inc prompts, 4=always

You can try adding it to your post and see what happens.

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...