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:

18i Parameter change macro help


GoetzInd
 Share

Recommended Posts

Hey guys. I have a machine here that does not have a rapid overide switch so I am writing a macro to change the rapid speed parameters via M-code. Pretty straight forward accept for the control will not allow for logic to define the R value (actual parameter value). Is there a way to do this? I am trying to avoid a bunch of GOTO's and redundant assignments. Here's what I got so far. TIA

 

Mike

 

%

O9021 (RAPID OVERRIDE MACRO)

(M500 F...)

 

N1 IF [#9 GT100.] GOTO50

 

N2 #11=[#9*.01]

 

G10 L50 (SET PARAMETER VALUES)

N1420 P1 R[25000*#11]

 

N1420 P2 R[20000*#11]

 

N1420 P3 R[11000*#11]

 

N1420 P4 R[18000*#11]

 

N1420 P5 R[100000*#11]

 

N1420 P1 R[100000*#11]

 

G11

 

M99

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Your format seems incorrect;

 

G10 L50 (SET PARAMETER VALUES)

N01420Q1A1P[25000*#11]A2P[20000*#11]A3P[11000*#11]A4P[18000*#11]A5P[100000*#11]

G11

 

Give that a shot...

 

 

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