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:

5 axis post help


RDub
 Share

Recommended Posts

one for the propeller heads (my propeller is broken)... I am trying to adjust the generic 5 axis post to work for one of our machines but have a few problems. Any help would be appreciated. I am not sure if this is stuff that I just havent found yet or that it is unfindable because it is in the encrypted portion of the post.

 

1) What does the M185 code do (CMS 5 axis router)?

2) I have enabled clamping but am getting no lock or unlock codes in the program

 

Thanks for any help,

Robert

Link to comment
Share on other sites

What is calling the M185 code the post or do you need that code from the posted code?

 

Clamping could be a could be a couple things have you looked in the Control Def and see if there should be called from there or in the Machine Def even though I think on the 5 axis Machine the Machine def is just Eye candy more than anything.

 

Also is this a post you got from a Dealer or 3rd party if so you are probably going to have ot contact them if is locked up real tight.

 

HTH

Link to comment
Share on other sites

the M185 is from a current program for the machine that I am trying to get generic post output to match. This is from a working program for the CMS...

 

N5 T1 M06 (3/8 CUSTOM)

N6 M31 (B-AXIS UNLOCK)

N7 M33 (C-AXIS UNLOCK)

N8 G00 G90 G55 C47.252

N9 M185

N10 G00 X70.6358 Y-45.627 S4980 M03

N11 G43.4 H1 Z35.

N12 G00 B0.

N13 M34 (C-AXIS LOCK)

N14 Z30.1997 B90.

N15 M32 (B-AXIS LOCK)

N16 G94 G01 G41.2 D1 X69.957 Y-46.3614 F40.

N17 Z28.6997

N18 G00 G40 X70.6358 Y-45.627

N19 M31 (B-AXIS UNLOCK)

N20 Z35. B0.

 

As for the post it is the generic 5axis post that came with Mastercam. I will look at the machine def to see if I can turn on clamping, I just assumed that since a working post spit out the code using the same machine def as what I am proving my newer version on that it wouldnt be a MD issue. I will look anyhow.

 

Thanks

Link to comment
Share on other sites

Ok can you post up code you are getting from the post you have been working on.

 

Look here in the post for add the M185:

 

code:

p_goto_strt_tl  #Make the tool start up at toolchange

pfd_shft_inc

psign_ang_out

 

##### Custom changes allowed below #####

 

if use_clamp & not(opcode$ = three | cuttype <> zero),

[

p_lock = zero

s_lock = zero

pbld, n$, s_slock, e$

pbld, n$, s_plock, e$

]

if stagetool <= one, pbld, n$, *t$, "M6", e$

 

if n_tpln_mch > m_one, #Toolplane mapping mode

[

#Enter your mapping scheme here...

pg68_map

pbld, n$, "G43", *tlngno$, *zabs_s, e$

pbld, n$, *sg00, pwcs, "X0.", "Y0.", *zabs_s, e$

pcan1, pbld, n$, *sgcode, *xabs_s, *yabs_s, *p_out, strcantext, e$

]

else, #5 axis and regular mode ( n_tpln_mch = -2)

[

if cut_ra_head & use_g45, #Swap xout and yout based on offset axis

[

tloffno2 = tlngno$ + g45_of_add

pcan1, pbld, n$, *sgcode, pwcs, *sgabsinc, *yout, *p_out,

*speed, *spindle, pgear, strcantext, e$

pbld, n$, "G45", *tloffno2, *xout, e$

]

else,

[

pcan1, pbld, n$, *sgcode, pwcs, *sgabsinc, *xout, *yout, *p_out,

*speed, *spindle, pgear, strcantext, e$

]

]

if stagetool = one, pbld, n$, *next_tool$, e$

if use_clamp & not(opcode$ = three | cuttype <> zero),

[

p_lock = one

s_lock = one

pbld, n$, s_slock, e$

pbld, n$, s_plock, e$

]

 

if n_tpln_mch > m_one, #Toolplane mapping mode

[

#Enter your mapping scheme here...

pg68

pbld, n$, *xout, *yout, *zout, scoolant, e$

]

pbld, n$, "M185", e$ #<---- ADD this Line

else, pbld, n$, "G43", *tlngno$, *zout, scoolant, e$


Now this will output this everytime. If you want a condition to do this like turn it on and off this can be done. If you only need it when doing 5 axis this condition can be added to the post very easy just need to let me know and I will help you sort through it.

 

Clamping and unclamping can be easy messed up with a minor post change so make sure by comparing the post to an unchanged post to make sure you did not miss something or mess up something.

Link to comment
Share on other sites

That is what i tried yesterday, but then i found out what the m185 is, it turns on the electric spindle unit prior to the m3 code. It only needs to be done at the beginning of the file not at each tool change which is what happened with the changes i made yesterday. I will compare what you posted above and see if I added the m185 line in the correct spot.

 

Here is what "my post" output...

 

N5 T1 M06 ( 3/8 CUSTOM )

N6 G00 G90 G55 C0.

N7 M185 <-- still needs work

N8 G00 X70.6358 Y-45.627 S4980 M03

N9 G43 H1 Z35.

N10 Z30.1997 C47.252 B90.

N11 G01 X69.957 Y-46.3614 F40.

N12 Z28.6997

N13 G00 X70.6358 Y-45.627

N14 Z35. B0.

Link to comment
Share on other sites

would there be a way to format it so that it would look at the tool number and only output the M185 if it were the 1st time the tool was called? That way I wouldnt have to worry about 14 different programmers always remembering to set mi5 to 1?

Link to comment
Share on other sites

would there be a way to format it so that it would look at the tool number and only output the M185 if it were the 1st time the tool was called? That way I wouldnt have to worry about 14 different programmers always remembering to set mr5 to 1?

Link to comment
Share on other sites

Ok, next issue...

 

on block 8 of the needed output it outputs the initial C position before it calls the tool offset so it can prewind...

 

N5 T1 M06 (3/8 CUSTOM)

N6 M31 (B-AXIS UNLOCK)

N7 M33 (C-AXIS UNLOCK)

N8 G00 G90 G55 C47.252

N9 M185

N10 G00 X70.6358 Y-45.627 S4980 M03

N11 G43.4 H1 Z35.

N12 G00 B0.

N13 M34 (C-AXIS LOCK)

N14 Z30.1997 B90.

N15 M32 (B-AXIS LOCK)

N16 G94 G01 G41.2 D1 X69.957 Y-46.3614 F40.

N17 Z28.6997

N18 G00 G40 X70.6358 Y-45.627

N19 M31 (B-AXIS UNLOCK)

N20 Z35. B0.

 

In my post it puts the initial c position after the tool offset is called, I had the post output the C in the same place as I need it but at that point since nothing has moved, it outputs a C0. How do I have it look ahead and pull that C value before it moves to the initial x and y positions?

Link to comment
Share on other sites

forgot to tag this on...

 

Here is what "my post" output...

 

N5 T1 M06 ( 3/8 CUSTOM )

N6 G00 G90 G55 C0.

N7 M185 <-- still needs work

N8 G00 X70.6358 Y-45.627 S4980 M03

N9 G43 H1 Z35.

N10 Z30.1997 C47.252 B90.

N11 G01 X69.957 Y-46.3614 F40.

N12 Z28.6997

N13 G00 X70.6358 Y-45.627

N14 Z35. B0.

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