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:

rotation detect


Mark C
 Share

Recommended Posts

Hello all,

Is it possible to scan the file when post processing and detect if a axis rotations are used and if so trigger an event?

What I have in mind is outputting a note after the tooltable to check a axis rotation direction and invert it if not correct. We have several verticals and some go one way and others the other. I don't know which when posting. We have a fairly new operator who didn't know to check and scrapped a part. I nornally add this note myself but have been swamped and forgot to this time.

I like to make things as automatic as possible.

I'm using a post based on the MPMaster V8.1.1 but will be upgrading to V9 as soon as I get a chance

 

Thanks in advance

 

[ 01-20-2003, 09:02 PM: Message edited by: Mark C ]

Link to comment
Share on other sites

It's not the rotation of the spindle. I should have been a little more clear. It's the A axis. And believe me I would rather have them all consistent. It's kind of a sore subject with me. it was to have been taken care of a while ago, but it never happened. Now they just rely on the operators to check for proper rotation

Link to comment
Share on other sites

In mpmaster, there is already some logic in the pwrtt section to omit output of Z depth limits if rotary or 5-Axis moves are found in the file. You would need to apply a check for toolplane positioning, set a flag, and output a string at the top of your file based on that flag.

 

e.g.

 

initialize amsg_flg

 

amsg_flg : 0

 

in pwrtt:

 

code:

  if rotaxis > 0 | rotary_type > 0 | mill5 <> 0 | tlplnno > 1,

[

rot_on_x = sav_rot_on_x #exiting logic

output_z = no #exiting logic

amsg_flg = 1

]

in pheader:

 

code:

  if amsg_flg = 1, "YOUR MESSAGE HERE!"

 

[ 01-21-2003, 11:31 AM: Message edited by: Dave Thomson ]

Link to comment
Share on other sites

Mark,

 

Along with a comment your post could be edited to output macro programs when rotary axis was enabled if your controls support macro. With a M00 at program start the operator would have to specify at the beginning of a program which machine the part was being run on by means of a variable value in the macro program (1 = machine 1 rotation type, 2 = machine 2 rotation type, etc.) and the program would compensate as required. This would eliminate having to generate different programs for different machines as well as eliminate alot of operator error.

 

Steve

Link to comment
Share on other sites

thanks everyone for your thoughts. I agree that getting all the machines to work consistently would be the obvious answer, but we're stuck with things the way they are. Nobody wants to be bothered but it becomes my problem when something goes wrong. But, such is the life of the programmer. I will try your suggestion, Dave

 

Thanks again

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