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:

Force 4th Axis output at Tool change


Recommended Posts

Current post outputs 4th axis rotation at tool change only if position is different from the previous position. How can I force it to output the 4th axis rotation at every tool change.

 

The machine is a Maatsura HMC 405 with 5 degree indexing.

 

The post we are using is:

 

V14.00 E1 P0 T1232650364 M14.00 I0

# Post Name : Generic Fanuc 4X Mill.pst

# Product : Mill

# Machine Name : Generic

# Control Name : Fanuc

# Description : Generic 4 Axis Mill Post

# 4-axis/Axis subs. : Yes

# 5-axis : No

# Subprograms : Yes

# Executable : MP 14.0

Link to comment
Share on other sites

Here is what I get from my post.

T5 M6
G0 G90 G54 X-.3 Y1. A0. S3000 M3
.....
T4 M6
G0 G90 G54 X-.3 Y1. A0. S3000 M3
.....
T4 M6
G0 G90 G54 X.3 Y-1. A180. S3000 M3
.....
T5 M6
G0 G90 G54 X.3 Y-1. A180. S3000 M3
.....
T5 M6
G0 G90 G54 X.3 Y-1. A180. S3000 M3 <--------- Even the same tool and position posts out the A180.

As you can see whether the position is the same or different, the A coordinate still gets posted. I noticed that the pfcout command is in my psof$, ptlchg$, and ptlchg0$ blocks and it forces the rotary coordinate to be posted. Check it out in your post. If it is missing then here is what my pfcout looks like,

pfcout          #Force C axis output 
     if index = zero & rot_on_x,
       [
       if use_rotmcode & cabs <> prv_cabs, *sindx_mc
       if absinc$ = zero, *cabs, !cinc
       else, *cinc, !cabs
       ]

Link to comment
Share on other sites

Thanks for the response.

 

The postblock pfcout is right. However, this post apparently was modified to output the rotary axis motion before the other positioning moves using a pindex postblock .

 

The output reads:

 

 

G90 B0.

G0 G90 G54 P211 X-7.0075 Y-1.48 S4500 M3

G43 H1 Z2.02 T2

M8

M50Z.02

 

 

Here is how it is written in the psof$ postblock:

pindex

if mi1$ > one, absinc$ = zero

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

[if nextdc$ <> 7, *speed, *spindle], pgear, strcantext, e$

pbld, n$, sg43, *tlngno$, pfzout, scoolant, pstagetool, e$

 

Not sure how this is supposed to function.

Link to comment
Share on other sites

In the attached file the Tool 8 is on the same tool plane as Tool 7, so there is no output of an index command. We need the index command to output even if the rotation is the same.

 

It is redundant, but if an operator drops down in the progam to rerun a tool, the pallet needs to index to position.

 

 

 

 

 

Link to comment
Share on other sites
  • 1 month later...

Thanks all,

 

This for an indexed axis not for a full rotary axis.

 

Had to copy pindex and create pfindex and call it in in ptlchg$ and ptlchg0$

 

 

This is the post mod_

 

pfindex #Index output 'FORCED'

if index & rot_on_x,

[

#if (prv_indx_out <> fmtrnd(indx_out)) | (prv_cabs <> fmtrnd(cabs)),

[

if rot_lock, pbld, n$, *sunlock, e$

pbld, n$, [if use_rotmcode, `sindx_mc], *sgabsinc, *indx_out, e$

!cabs, !cinc

if rot_lock, pbld, n$, *slock, e$

]

]

 

pindex #Index output

if index & rot_on_x,

[

if (prv_indx_out <> fmtrnd(indx_out)) | (prv_cabs <> fmtrnd(cabs)),

[

if rot_lock, pbld, n$, *sunlock, e$

pbld, n$, [if use_rotmcode, `sindx_mc], *sgabsinc, *indx_out, e$

!cabs, !cinc

if rot_lock, pbld, n$, *slock, e$

]

]

 

 

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