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:

Posting origin x, y, and z


STANDARD_63
 Share

Recommended Posts

I'm trying to post x, y and z origin into my NC file. Master cam interprets the parameter as a part of the code. The post code looks like this:

 

 

code:

--------------------------------------------------------------------------------

 

"#510=", t_orgin_x$, "( X DISTANCE FROM CENTERLINE OF 3R CHUCK TO PART 0 )", e$

"#511=", t_orgin_y$, "( Y DISTANCE FROM CENTERLINE OF 3R CHUCK TO PART 0 )", e$

"#513=", t_orgin_z$, "( Z DISTANCE FROM TOP OF 3R CHUCK TO PART 0 )", e$

 

--------------------------------------------------------------------------------

 

When the nc is posted it looks like this:

 

code:

--------------------------------------------------------------------------------

 

#510= t_orgin_x$ 15.825 ( X DISTANCE FROM CENTERLINE OF 3R CHUCK TO PART 0 )

#511= t_orgin_y$ 1.595 ( Y DISTANCE FROM CENTERLINE OF 3R CHUCK TO PART 0 )

#513= t_orgin_z$ 1.312 ( Z DISTANCE FROM TOP OF 3R CHUCK TO PART 0 )

 

--------------------------------------------------------------------------------

 

I would like the nc to look like this:

 

code:

--------------------------------------------------------------------------------

 

#510= 15.825 ( X DISTANCE FROM CENTERLINE OF 3R CHUCK TO PART 0 )

#511= 1.595 ( Y DISTANCE FROM CENTERLINE OF 3R CHUCK TO PART 0 )

#513= 1.312 ( Z DISTANCE FROM TOP OF 3R CHUCK TO PART 0 )

 

--------------------------------------------------------------------------------

 

Can anyone help me?

Link to comment
Share on other sites

Standard,

 

How have you formatted those variables? Are they pre-defined? I don't think they are...

 

Pre-Defined variables all end with the dollar sign ($) and the variable will turn blue in the Mastercam X text editor when you type it in.

 

If these are predefined variables in Mastercam, you will still need to create a format Assignment line to properly format the variables for output...

 

Where are you getting these values from inside the Mastercam interface?

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