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 MI1$ to set up macro call line


Recommended Posts

Hi everyone, I'm trying to have my post setup a macro call line for my machine rotations every time the tplane is changed using the MI1$. I need it to output in the beginning of the program, but I don't know how to do this is there a loop process or somewhere I can put this to make it out put it correctly?

 At the beginning of my program output looking like this with the G65P9013 lines setup

%
:0001(FIXTURE - COPY 111)
(PART - FIXTURE - COPY)
(POSTED - 04-17-17 8:00 PM)
(MACHINE - FEELER)
(T1 - 1/2" EM)
(T2 - 3/4" EM)
(T3 - .281 CENTERPOINT DRILL)

G65P9013A#600X0.0Y0.0Z0.0 B45. A90. G54 <<<<<<<P9013 is are macro that defines COR B45. & A90. is the rotation that G54 work offset uses
G65P9013A#600X0.0Y0.0Z0.0 B28.22 A74. G55
G65P9013A#600X0.0Y0.0Z0.0 B28.1 A90. G56

G20
G0 G17 G40 G80 G90 G94 G98
G0 G28 G91 Z0.
G0 G28 G91 Y0.
T0 M6(** T0 - NULL TOOL **)
M26
M40
G0 G54 G90 X0. Y0. S0 M5
G56 B45. A90.
M25
M39
G43 H0 Z0.
G0 G28 G91 Z0.
G0 G28 G91 Y0.

 

Here is what I have in my post......Not much, I did have a lot of other stuff in there but I was really confusing myself... It may take a lot more then this, i'm new and haven't really made it this far into editing code. I have it posted under the psof$ .....It posts out for the 1st tool but not the second or what if I switch rotations using the same tool? 

if mi1$=1,
         "G65P9013A#600X0.0Y0.0Z0.0",*p_out,*s_out,*pwcs,e$

 

Any help or the lead into the right direction would be great. Thanks everyone

 

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