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:

MP Ref Where is it question


Recommended Posts

Hey All,

In the MP reference guide there are a couple of pages illustrating the GUI interface pages for the Tool Description Parameters with the parameter numbers in the fields......I can't remember how many times I came across it, and now of course when I want to use it I cant' find it.....I'm going to print that sucker out if I don't expire before I .....find......it.....

Link to comment
Share on other sites
4 minutes ago, Colin Gilchrist said:

Did you look in the NCI and Parameter Reference for the older version?

Yes, but I have this feeling it is tacked on to another section.....I seem to remember thinking the last time I saw it, "What's that doing there?".......

I'm just working on a .set toolist and wanted to see if there were other parameters besides 20002 where I could enter manufacturers info.

The field appears to be able to hold a string long enough to do the job at the moment, whilst I intermittently search.......

 

Link to comment
Share on other sites
30 minutes ago, Colin Gilchrist said:

Most tool data is available as a '2x,xxx' parameter, which is actually in the NCI, but read in the 'pparameter$' Post Block. You might post out a test string, and search the NCI for that String. 

I've got the text string for the Manufacturers Tool Code field outputting via 20002 and that's working fine.

I also got the  LOC output using:

      if prmcode$ = 20007, flute_len = rpar(sparameter$,2)

But I am having trouble with:

      if prmcode$ = 20004, n_flutes1 = rpar(sparameter$,16)
      if prmcode$ = 20007, oa_len    = rpar(sparameter$,3)

Which I have set up the same way but are not outputting.

Also getting output for every op, i.e. multiple outputs of the same tool....

Aside from that it is working acceptably to start off.

I'm trying to support our tool crib with something they can use for ordering tools by part/program number

so even as is it will work for that. However I would like it to reflect the Tooltable at the top of the program which have Flute count and Out of Holder length included.

Link to comment
Share on other sites

So, the 'rpar' function, is used to select a 'range' of parameter numbers, from a space delimited string, and store each "place value" from the String into an implied array. This array is just a simple variable list.

The ordered list concept is important in MP.

Were you trying to use "existing" logic, or did you add this custom?

     # are you aware that the following line loads "16 variables ", starting the list with 'n_flutes1'

if prmcode$ = 20004, n_flutes1 = rpar(sparameter$,16)

# the next line gets 3 values, loading them into an array starting with 'oa_len'.

if prmcode$ = 20007, oa_len    = rpar(sparameter$,3)

So, your code is filling 'implied arrays'

If you just want a single "place value", use 'rparsngl' function instead.

 

      if prmcode$ = 20004, n_flutes1 = rparsngl(sparameter$,16)
      if prmcode$ = 20007, oa_len    = rparsngl(sparameter$,3)

 

  • Like 1
Link to comment
Share on other sites
39 minutes ago, Colin Gilchrist said:

So, the 'rpar' function, is used to select a 'range' of parameter numbers, from a space delimited string, and store each "place value" from the String into an implied array. This array is just a simple variable list

Yeah I read up about that and looked at my normal post and found:

fmt      2 slot                    # 20004 Parameter line
fmt      2 tool_type
fmt      2 matl_type
fmt      2 corner_rad_type
fmt      2 diameter
fmt      2 corner_rad
fmt      2 threads
fmt  "A" 2 tip_angle
fmt      2 dia_off
fmt      2 len_off
fmt      2 tool_feed
fmt      2 plunge
fmt      2 retract
fmt      2 rpm
fmt      2 coolant1
fmt      2 n_flutes1
fmt  "A" 2 tip_angle_ch

fmt     2 cut_ability             # 20006 Parameter line
fmt     2 step_r_xy
fmt     2 step_r_z
fmt     2 step_f_xy
fmt     2 step_f_z
fmt     2 tip_dia
fmt     2 min_dia
fmt     2 thd_ang

fmt     2 pilot_dia               # 20007 Parameter line
fmt     2 flute_len
fmt     2 oa_len
fmt     2 shldr_len
fmt     2 arbor_dia
fmt     2 hldr_dia
fmt     2 hldr_len
fmt     2 spindle_ccw
fmt     2 sfm
fmt     2 fpt
fmt     2 metric

These looked like the formatting for the implied arrays but adding them to the .set code didn't do the trick....must be missing something.

I will try the rparsngl function....

Link to comment
Share on other sites
47 minutes ago, Colin Gilchrist said:

If you just want a single "place value", use 'rparsngl' function instead.

Nice one C, that did the trick. I had seen that function and it was on my list of things to try but for some reason I was questioning whether it was functional in X9.....turns out it is.

Now just have to stop the repeats....

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