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:

forcing A axis output- MP master


Recommended Posts

I need some hand holding here...

 

Haas MiniMill with HRT160 4th axis, and I need A axis output at toolchanges, I am using a modified MPMaster post. Currently, I get no A output at the start, if A=0, and I do not get A output at a toolchange if A doesn't change. I have fiddled with 'sav_rot_on_x' and 'frc_cinit', to no avail. I get the unlock and lock codes, but no A. Currently, my G54 A0 is different from Machine A0. Any help appreciated.

 

Code Sample:

 

G00 G17 G40 G80 G90

T1 M06 ( 1/4 FL EM CBD 3 FL MW090413)

(MAX - Z.6686)

(MIN - Z.355)

M11 (UNLOCK)

G00 G17 G90 G54 X-2.7267 Y-.9363 S6000 M03 <---- Need A0 here

M10 (LOCK)

G43 H1 Z.6686

Z.4686

Link to comment
Share on other sites

The reason you are not getting A-axis output is likely because you are not programming any tool paths at positions other than A0 (remember that if the tool plane and wcs plane are the same, there is no rotation). As a result, the rot_on_x variable is not being set as the rotary axis information from the machine definition is not being passed to the post.

 

With that being said you can override the settings in the pset_mach post block by commenting out where the rot_on_x variable is set and hard coding the rot_on_x variable to 1 (for rotary about X-axis) or 2 (for rotary about Y-axis):

 

pset_mach       #Set post switches by reading machine def parameters
     rot_ax_cnt = 0
     rotaxerror = 0
     rot_on_x = 0  #Turn off rotary axis unless it is detected in machine read - supresses rotary output in 3 axis machines

     ...      

     #We only need these set at toolchange (and start of file).  No need to set them each time a user may call rd_md
     #if sav_rot_on_x = zero, rot_on_x = zero        <--Comment out this line
     #else, rot_on_x = rot_axis                      <--Comment out this line
     rot_on_x = 1                                    <--Add this line

 

HTH

Link to comment
Share on other sites

I made the changes you suggested, and it is still not behaving.

 

Code snippets, 3 toolpaths. First two are on top plane, last is on front.

 

G00 G17 G40 G80 G90

T1 M06 ( 1/4 FL EM CBD 3 FL MW090413)

(MAX - Z1.2764)

(MIN - Z.2763)

M11 (UNLOCK)

G00 G17 G90 G54 X-2.7267 Y-.9363 S6000 M03

M10 (LOCK)

G43 H1 Z.6686

Z.4686

 

 

....

 

G00 Z.6686

(INDEX) <---- Feature, not rotational move

X-2.9839 Y-1.0606

Z.4686

 

....

 

G00 Z.6686

G91 G28 Z0.

(FLAT)

M11 (UNLOCK)

G00 G90 A-90. X-2.7547 Y.73

M10 (LOCK)

G43 H1 Z1.27

Z1.07

 

 

----------

I also found/was led to this part of the post, and uncommented the line as indicated. No change.

 

pwrtt$ # Write tool table, scans entire file, null tools are negative

if rotaxis$ > 0 | rotary_type$ > 0 | mill5$ <> 0,

[

sav_rot_on_x = rot_on_x

output_z = no$

]

if vmc = 0 & tlplnno$ <> 2, sav_rot_on_x = rot_on_x

if vmc = 1 & tlplnno$ > 1, sav_rot_on_x = rot_on_x

sav_rot_on_x = rot_on_x #Uncomment this line to output rotary axis value even when it's not used

 

 

------

I really like the idea of scanning the toolpaths and not outputting A if there are no rotational moves, but outputting them at toolchanges when there are rotational moves in the program.

 

TIA

Link to comment
Share on other sites

Post Revision 11.1.0811

 

I did a file compare with the MPMaster I dl'ed from the X5 link. There are some differences, but not ones that would obviously fix this.

 

If I am to send the file to you through the site messenger, I am not smart enough to figure out how to attach files.

Link to comment
Share on other sites
  • 2 weeks later...

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