Simple Haas Post Edits

instcell
Enthusiast
Enthusiast

Simple Haas Post Edits

instcell
Enthusiast
Enthusiast

Hi everyone,

 

I need help. I am trying to develop this Haas 5 axis NGC  post to get more people using Fusion 360 on our other equipment in the shop! The community here has been great so far helping to develop our current post processor. 

 

Below are the requested changes:

 

TSC and Coolant:

Where M88 is posted to turn TSC ON, we need M50 instead.

TSC turns OFF with M9, just like regular coolant. So M89 is not necessary, just M9.

 

Indexing:

Where the haas post generates G0 B90. C180. for a tilt and rotate move, can we change that line to look like:

 

G65P9013T90.R180.

 

When the machine only tilts or rotates, (not both at the same time) we need it to look like:

 

Tilt only:

G65P9012T90.

 

Rotate only:

G65P9011R180.

 

If the trunnion is at B(T) and C(R) zero:

G65P9013R0.T0.

 

Obviously the 90 and 180 values are just for example.

 

Any help is greatly appreciated! 

 

Thanks in advance,

Alex Kern

0 Likes
Reply
Accepted solutions (1)
555 Views
4 Replies
Replies (4)

will_1
Alumni
Alumni
Accepted solution

Hi @instcell ,

 

For the coolant... I would change

 

  {id: COOLANT_THROUGH_TOOLon: 88off: 89},
 
... to...
 
  {id: COOLANT_THROUGH_TOOL, on: 50},
 
... and...
 
  {id: COOLANT_FLOOD_THROUGH_TOOLon: [888], off: [899]},
 
... to...
 
  {id: COOLANT_FLOOD_THROUGH_TOOL, on: [50, 8]},
 
Let me know how that works for you.
 
Thanks,
Will

will_1
Alumni
Alumni

@instcell , for the tilts and rotations. I would do something like this.

 

var bOut = aOutput.format(abc.y);

var cOut = cOutput.format(abc.z);

 

If (bOut && cOut) {

    P9013 formatting

} else if (bOut) {

    P9012 formatting

} else if (cOut) {

    P9011 formatting

}

 

You will probably have to change the variable names and parameters. Also, cOut and bOut can be used in the formatting since they are already formatted. Not sure exactly how this should look in your post but I hope this gets you going.

 

Thanks,

Will

0 Likes

instcell
Enthusiast
Enthusiast

Hi Will,

 

Thanks for the quick help. I really appreciate it.


Can you elaborate on what to do with the variables for the G65P90XX output?

 

I am not that great at post edits yet. I have spent some time playing around to see if certain things change anything with no luck... need a bit more guidance. Im just not sure where to add the code - I can do trial and error and testing relatively well, just need the correct direction.

 

If I add your code to the list of variables at the top of the post, the post does not work. 

 

Do I change the variables instead?

    var bOutput = createVariable({prefix:"B"}, abcFormat);

Changing the above to the below does not work.

    var bOut = aOutput.format(abc.y);

 

The coolant edits worked great!

 

Thanks,

Alex Kern

0 Likes

will_1
Alumni
Alumni

Hi @instcell ,

 

aOut and bOut are sort of misnomers since your macro uses R and T. By changing variable names that is what I really mean.

 

You will want to keep aOutput and bOuput if they are useful and maybe add rOutput and tOutput if that is more descriptive. If you add rOutput and tOutput then put your aOut and bOut equal to them. Otherwise, the code outline I gave should work for you.


Thanks,

Will Watkins

0 Likes