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:

progname prompt trouble


machtek
 Share

Recommended Posts

Hi all, I need some help adding a user prompt for program number (asks while posting) I am working in 9.1 today trying to get some posts ready for updatepost.dll for x2.

 

I am very new to post modifying so please help me with the abc's. I know I have to put a "fq2" statement somewhere then call it later but that is as far as my expertise goes.

 

Thanks in advance

Dennis

Link to comment
Share on other sites

you need to format your questions

 

code:

fq 1 stock       "Amount of stock to remove:"

fq 2 ball_dia "Probe ball dia size:"

fq 3 work_set "Work Offset 1=G54, 2=G55, 3=G56, etc:"

fq 4 probe_pos "Probe Depth "Z":"

and then trigeer then and capture the required info whcih will also require a formatted variable

 

code:

fmt   2 stock

fmt 2 ball_dia

fmt 2 work_set

fmt 2 probe_pos

code:

if mi5$ = 1,

[

"(" "SET BLOCK DELETE OFF TO BYPASS", ")", e$

"(" "THIS SECTION AFTER SETTING Z HEIGHT", ")", e$

pfbld, "(" "#180 = X TOUCH POSITION", ")", e$

pfbld, "(" "#181 = Y TOUCH POSITION", ")", e$

pfbld, 35, no_spc$, "180", 61, 35, no_spc$, "5021", e$

pfbld, 35, no_spc$, "181", 61, 35, no_spc$, "5022", e$

q1

pfbld, "(" "#170 = TOP STOCK REMOVAL", ")", e$

q2

pfbld, "(" "#171 = PROBE BALL SIZE", ")", e$

q3

pfbld, "(" "#172 = WORK OFFSET", ")", e$

q4

pfbld, "(" "#173 = PROBE HEIGHT", ")", e$

pfbld, 35, no_spc$, "170", 61, *stock, e$

pfbld, 35, no_spc$, "171", 61, ball_dia, e$

pfbld, 35, no_spc$, "172", 61, work_set, e$

pfbld, 35, no_spc$, "173", 61, probe_pos, e$

pfbld, "M98 P8889", e$

]

Link to comment
Share on other sites

Thanks John,

 

There are too many other things going on for me to make sense of the example you sent.

 

I understand the format comment

I don't understand the trigger

I also don't unserstand the mi5 block, what is pfbld.

 

My format statement will read:

fq 2 "Input Main Program Number"

 

then I want to call it from within mc9 as the program is being posted. I think I will call it in psof and don't know how to use it. I have tried many combinations so far, none of them right.

 

Thanks

Dennis

Link to comment
Share on other sites

the fq 1 line is where you define you question

 

the q1

 

line will trigger it to ask question 1

 

some of that code in that example is part of what I was doing and not really relevant to your use.

 

If you are trying to use letters and numbers you might have to define the variable a a string instead of a numerical format.

 

I have to look that one up, defining input as a string.

 

 

So in your case it might be

 

sprg_name ""

 

fq1 sprg_name "SET PROGRAM NAME"

 

q1

 

pbld, "(", sprg_name, ")", e$

 

 

something like that should get it.

Link to comment
Share on other sites

Would you mind sending me an email with nothing attached?

 

Just a quick text email.

 

Do you have an IT security system in place? I am wondering if they are hanging up your email with attachments.

Link to comment
Share on other sites

Your email server seems a bit funky.

 

I can send to you on my cncprogrammingsolutions.com but I cannot receive from you.

 

I can received from you gmail but I cannot mail you back using gmail

 

headscratch.gif

Link to comment
Share on other sites

Mail Dennis

 

Let me know if this is what you were looking to do.

 

We can move it at this point it is all coded in.

 

 

I added a check, I saw you tried to do that, it will check for a program # if the variable is blank it will add a 1111

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