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:

W axis macro variables


T-guy
 Share

Recommended Posts

Hey all, does any one know what variable is used for the "W" axis? I have a Kuraki/Fanuc15m with a "W" axis Quill. I am creating a macro to measure tool lenght offsets automaticly, but, I can not find the variable. I looked thru the manuals for this machineand even contacted Fanuc.

 

Help me 'O-mighy ones of the net!

Link to comment
Share on other sites

the vaiable in a costom macro body for W is #23

 

If your looking to read in axis position to load

in your TL offset page

 

#5041 1st axis

#5042 2nd axis

#5043 3rd axis

#5044 4th axis

#5045 5th axis

#5046 6th axis

 

here is a sample for reading Z position

 

O0001(TOOL-SETTING PROGRAM);

N1#100=1(set #100 equal to first tool);

N2DO1;(beginning of loop);

N3T[#100](select tool);

N4M6(tool change)

N5#3006=1(SET TOOL OFF 1.0 BLOCK - comment line for operator);

N6#[2000+#100]=#[5023]-1.0(PUT MACHINE Z - 1" INTO OFFSET);

N7G0G91G28Z0.0(rapid to Z axis zero return);

N8#100=#100+1(increment to next tool);

N9END1(end indefinite loop);

N10G90(switch back to absolute coordinates)

M30

%

sample to indicate a bore and load X,Y poition into

offset page,simple by pushing cycle start

 

O0001(INDICATING PROGRAM);

T25 M6

G90G80G40G49G17G20;

G0G57X0Y0B0

G43H25Z10.;

X-5.25 Y3.75

#3006=1(INDICATE);

#101=#5041;(SETS NEW X COORDINATE)

#102=#5042;(SETS NEW Y COORDINATE)

G0Z10.(RETURN TO INITIAL POINT)

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