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:

Using G10 to write to work offset issue


rgrin
 Share

Recommended Posts

Hi all,

I am using G10 to write to G55 and then later in the program I reference G55 and use it to set G56 and then I reprobe. The issue I am having is when do the second G10 for G56 offset, it is not overwriting the offset in G56 and instead is just adding whatever values specified values in my G10 line into the G56. I think its a syntax error somewhere since it's only issue when I try to run the program all the way thru. But if I start at the 2nd G10 line it overwrites the values like I would expect. Thoughts? Below is an example of my program layout.

 

O1000

M1(SET G55)
G10 L2 P2 X6. Y0. Z-25.602 C0. B0.(SET G55)
M1(SET G55)
G11
G00G17G40G80G90G94G98
G49G53Z.0
N100(Probe part)

----Run first half of program----

M1(SET G56)
G10 L2 P3 X-5.4 Y#5242 Z-24.402 B90. C#5245(SET G56) <--If I run this code on it's own, it overwrites my G56 value, but if ran thru my whole program it does an incremental add to G56
M1(SET G56)
G11
G00G17G40G80G90G94G98
G49G53Z.0
N200(Probe part)

-----Run second half of program)

Link to comment
Share on other sites

I would add G90 before G10

G90 G10 L2 P2....

You might be in incremental mode...  Also might not be a bad idea to add a G53 before the G10 commands.  I'm not an expert on this but I'm not sure how look ahead reacts to G10 commands.  I always play it safe and add G53 as a look ahead stop.

G53

G90 G10 L2 P2....

G56

 

  • Like 1
Link to comment
Share on other sites
3 hours ago, rgrin said:

It looks like you're right about the incremental mode. The last line prior to starting the second half of my program has g91 in it. I will remove that from the program and i bet you i will be good to go.

 

Thanks!

I personally always have G90 on my G10 line. I don't like surprises. :rofl:

  • Like 2
  • Haha 1
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...