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:

post outputing 4th axis rotion in g10 line


Guest
 Share

Recommended Posts

ok all you post guru's. I am creating a post for our new horizontal 4 axis machine. all is going well until I hit a wall trying to insert B values in my g10 lines.

am using a GOTO statement at beginning of .nc file to direct to the following code at end of program.

 

N9999(SET ZERO'S)

( OP1 BASE POSITION G54.1P1 )

G90G40G0

G10L20P1X0.Y0.Z0.(need B value here)

 

( OP1 POS 2)

G90G40G0

G10L20P2X0.Y0.Z0.(need b value here)

 

the above i was able to get directly out of my

post but cant figure out the B variable thing.

my post experience is try all and error.

 

thanks. cheers.gif Doug

Link to comment
Share on other sites

Ok tried to simplify too much.

this is the real end of program that i need:

 

N9999(SET ZERO'S)

( OP1 BASE POSITION G54.1P1 )

G90G40G0

G10L20P1X0.Y0.Z0. (need B rot value here

 

( OP1 POS 2 )

G90G40G0

G65P9018J1J2(need B rot value here)

( OP1 POS 3 )

G65P9018J1J2(need B rot value here) etc. etc.

 

G0T01111

M30

%

 

program O9018 calculates zeros from center line

of rotation (set in common offset) using coords

picked up and set at g54.1 p1. this requires

only setting base position coords say at B0 then will calc. for all subsiquent rotations on that station. got every thing except the rot value coming from my current post.

am thinking that i need to set up variables and asign the cabs values to them? am working on this

but could use any help i could get..

 

cheers

Link to comment
Share on other sites

Doug,

 

I agree with Roger (usually B0) but what I have done in my post is read a misc integer on mt first posted operatio which I set to the rotation I want in my G10.

 

I also have a post question that verrifys the B value it will post (so you have a chance to change it on the fly).

 

It helps me when we are doing de-bugging of our programs, that way it wont make out to the machine at B0 when the parts sitting at a different rotation.

 

Just a couple of ideas

 

Jason

Link to comment
Share on other sites

Here's how I do something similar to what you want;

code:

protcabsmacro

rotcabs = cabs

if (sav_mi2 = 43 | sav_mi2 = 44) & workofs$ >= 0,

[

p_wcs = 900

n$, "G91 G00 X0 G54P", no_spc$, 91,no_spc$, 35, no_spc$, *p_wcs, no_spc$, "+",

no_spc$, *workofs$, no_spc$, 93, e$

]

else, n$, "G91 G00 X0 G54P", no_spc$, 91, no_spc$, 35, no_spc$, "900", no_spc$, 93, e$ #<<<<<<<<<<

n$, "G90 G00 B", no_spc$, *rotcabs, e$ #<<<<<<<<<

n$, "G201", "B", no_spc$, *rotcabs, e$ #<<<<<<<<<

pcan1, pbld, n$, *sgcode, *sgabsinc, pfxout, pfyout,

"(", no_spc$, pfcout, no_spc$, ")", pgear, pwcs2, strcantext, e$ #<<<<<<<<<<

 

{/CODE]

 

This is what I end up with;

G91 G00 X0 G54P[#900]

G90 G00 B315.

G201 B315.

G90 G00 X0 Y0 G59


[/indent]

The G201 is my G65 call for fixture coordinate rotation. You can just use "cabs" instead of "rotcabs" for what you want.

Link to comment
Share on other sites

well theres some proof that our administrator has wasted hours of my time, cant get to the ftp banghead.gif yes that is our fire wall that i am banging my head against.

 

payed by the hour, but consiencious of the big guys buck.

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