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:

PARAMETER


Recommended Posts

I'm trying to look into the

 

CLEARANCE - INCREMENTAL

RETRACT - INCREMENTAL

FEED PLANE - INCREMENTAL

TOP OF STOCK - INCREMENTAL

DEPTH - INCREMENTAL

 

Would you guys please can tell me what the

prmcode$ code for each of those? I would like to use the pparameter$ to call out the function. Please help.

 

I'm trying to make the post warns if someone is using INCREMENTAL instead of ABSOLUTE because it is very dangerous for the setup man since the are not getting used to with INCREMENTAL programming. Please help.

 

 

 

Thank you

Link to comment
Share on other sites

Hi Pc,

 

Those incremental values have NOTHING to do with incremental PROGRAMMING !!!

Before post editing it's better to learn how mastercam works, this is very basic stuff !!!

 

Make an simple basic program.

Play with those settings and see on your screen what happens.

Then check your posted code for different settings.

Link to comment
Share on other sites

PC,

 

Henk is correct about what he is saying. All values are output in the NCI file as Absolute positions. The "Incremental" setting in the Linking parameters specifies that the depth values are incremental from the Z depth of the geometry on the screen in Mastercam.

 

A "Top of Stock" set to 0.0 "incremental" just means that the top of stock starts at wherever the point lies in Z. A "Depth" of -2.0 "Incremental", does not switch the canned cycle to incremental output, it just means the depth of the hole is calculated based on the drill point that was selected.

 

Since you asked:

 

Clearance: true = incremental, false = absolute | 10021
Retract: true = incremental, false = absolute | 10023
Feed Plane: true = incremental, false = absolute | 10025
Top of Stock: true = incremental, false = absolute | 10028
Depth: true = incremental, false = absolute | 15103

Link to comment
Share on other sites

Hi Colin,

Where do I put those definitions as you wrote:

 

 

 

Thank you Colin

 

Clearance: true = incremental, false = absolute | 10021

Retract: true = incremental, false = absolute | 10023

Feed Plane: true = incremental, false = absolute | 10025

Top of Stock: true = incremental, false = absolute | 10028

Depth: true = incremental, false = absolute | 15103

Link to comment
Share on other sites

Should I put it at this section, Colin?

 

pparameter$ # Run parameter table

if opcode$=13 | opcode$=14, result = fprm (opcode$)

if prmcode$ = 10000, stoper = ucase(sparameter$)

if stoper=snull, stoper = snullop

if prmcode$ = 10010, stock = rpar(sparameter$,1) # Stock to leave in Z

if prmcode$ = 10068, stock1 = rpar(sparameter$,1) # Stock to leave in XY

if prmcode$ = 12068, stock2 = rpar(sparameter$,1) # Stock to leave in Z facing

if prmcode$ = 10020, clearinc = rpar(sparameter$,1) #param 10020 is clearance now and 10021 indicates abs or inc

if prmcode$ = 15100, clearflg = rpar(sparameter$,1)

if prmcode$ = 15145, metvals = rpar(sparameter$,1)

if prmcode$ = 15339, clearstrt = rpar(sparameter$,1)

if prmcode$ = 15346, comp_type = rpar(sparameter$,1)

if prmcode$ = 15182, miscvalon = rpar(sparameter$,1)

if prmcode$ = 20010, sconstplname = ucase(sparameter$)

if prmcode$ = 20011, sconstplcomm = ucase(sparameter$)

if prmcode$ = 20012, stoolplname = ucase(sparameter$)

if prmcode$ = 20013, stoolplcomm = ucase(sparameter$)

if prmcode$ = 20014, swcsplname = ucase(sparameter$)

if prmcode$ = 20015, swcsplcomm = ucase(sparameter$)

if prmcode$ = 20016, smatlname1 = ucase(sparameter$)

if prmcode$ = 20017, smatlname2 = ucase(sparameter$)

if prmcode$ = 20018, stpgrpname = ucase(sparameter$)

if prmcode$ = 12025, rotary_axis2 = rpar(sparameter$,1) #Capture the axis of rotation in Multiaxis Drill and Curve 5 Axis

if prmcode$ = 15371, axissubdir = rpar(sparameter$,1)

if prmcode$ = 10029, operation_depth = rpar(sparameter$, 1) #Capture the full depth of OP

if prmcode$ = 10027, OpTopOfStock = rpar(sparameter$, 1) # Operation Top of Stock

if prmcode$ = 10020, OpClrPlane = rpar(sparameter$, 1) # Operation Clearance plane

if prmcode$ = 15374, OpRtrPlane = rpar(sparameter$, 1) # Operation Retract plane

if prmcode$ = 10024, OpFeedPlane = rpar(sparameter$, 1) # Operation Clearance plane

if prmcode$ = 15100, OpClrPlane_ON = rpar(sparameter$, 1) # Operation Clearance plane set or not

if prmcode$ = 15101, OpRtrPlane_ON = rpar(sparameter$, 1) # Operation Retract plane set or not

if prmcode$ = 12628,

[

hst_flg = 1

hststyle = rpar(sparameter$,1)

]

 

if prmcode$ = 15084, NumEntities = rpar(sparameter$, 1)

if prmcode$ = 15211, DepthCuts = rpar(sparameter$, 1)

 

if prmcode$ = 15240, sOpSeqNo = sparameter$ #This is the operation manager operation number

if prmcode$ = 20001,

[

s20001 = sparameter$

s20002 = sparameter$

]

  • Like 1
Link to comment
Share on other sites

Hi Colin,

I have this message, would you please tell me where do I define your definitions? Thank you

 

04 Jun 2014 06:14:43 AM - <2> - PST LINE (638) - The left side of the formula is the wrong type (var/string)

04 Jun 2014 06:14:43 AM - <2> - PST LINE (1775) - The post block output type processing has failed!, , Illegal character(s) encountered, Label has not been defined[33]

04 Jun 2014 06:14:43 AM - <2> - PST LINE (1775) - The post block output type processing has failed!, , Label has not been defined[44]

04 Jun 2014 06:14:43 AM - <2> - PST LINE (1775) - The post block output type processing has failed!, , Label was expected but was not found[49], Illegal character(s) encountered

04 Jun 2014 06:14:43 AM - <2> - PST LINE (1775) - The post block output type processing has failed!, , Label has not been defined[64]

04 Jun 2014 06:14:43 AM - <2> - PST LINE (1775) - The post block output type processing has failed!, , Label was expected but was not found[70], Illegal character(s) encountered

04 Jun 2014 06:14:43 AM - <2> - PST LINE (635) - The math calculation/formula has an error

Link to comment
Share on other sites
  • 3 months later...
Hallo and a good day.

I hope my english is not so bad, because i have not everyday  practice.

 

I try to create a new Variable to use in MasterCAM X7.

 

up at the beginning of post is :   test_par  :  " "

 

in middle i have write :  if prmcode$ = 15239, test_par = sparameter$

 

now i have the same message  error:   The left side of the formula is the wrong type (var/string)

 

please can you help  me ?

 

Thanks and greetings from Germany......

Link to comment
Share on other sites

 

Hallo and a good day.
I hope my english is not so bad, because i have not everyday  practice.
 
I try to create a new Variable to use in MasterCAM X7.
 
up at the beginning of post is :   test_par  :  " "
 
in middle i have write :  if prmcode$ = 15239, test_par = sparameter$
 
now i have the same message  error:   The left side of the formula is the wrong type (var/string)
 
please can you help  me ?
 
Thanks and greetings from Germany......

 

 

 

You're close. You have to initialize it as a string variable, not a numeric variable. To format simple strings, it must start with an "s"

 

So just change test_par to s_test_par

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