The post gives the Wrong spindle angle and disengaging direction when using boring bar with shift.

The post gives the Wrong spindle angle and disengaging direction when using boring bar with shift.

werkplaatsZ45TW
Enthusiast Enthusiast
1,605 Views
6 Replies
Message 1 of 7

The post gives the Wrong spindle angle and disengaging direction when using boring bar with shift.

werkplaatsZ45TW
Enthusiast
Enthusiast

When i post my operation the post processor automaticly give disengaging direction acording to my given spindle shift orientation, i want (Q336) it to be 90°. Then  i want my boringbar (bb) moving in x-0.5 the direction, then Q214 should be 1. But the post outcome is Q214=2, see the pictures. So, i need to change the spindle angle with 90°. What should i write in the lines 1693 or/and 1694 to change the angle with 90° compared to what Q336 is gonna be.

 

I hope it is clear what i mean.

 

Thanks,

 Roald

0 Likes
Accepted solutions (2)
1,606 Views
6 Replies
Replies (6)
Message 2 of 7

a.laasW8M6T
Mentor
Mentor

I dont know if this is the correct way  to do it bit I modified the angle in this part of the Post code to get the disengaging direction correct for my application

/** Returns the best discrete disengagement direction for the specified direction. */
function getDisengagementDirection(direction) {
  switch (getQuadrant(direction + 315 * Math.PI / 180)) {
  case 0:
    return 3;
  case 1:
    return 4;
  case 2:
    return 1;
  case 3:
    return 2;
  }
  error(localize("Invalid disengagement direction."));
  return 3;
}

 

My spindle 0 position is facing -Y so this disengages with the angle Q336 = 0 and uses disengaging direction 4.

 

that way i dont mess with anything in the operation in fusion i just select fin boring shift and go.

Andrew Laas
Senior Machinist, Scott Automation


EESignature

0 Likes
Message 3 of 7

werkplaatsZ45TW
Enthusiast
Enthusiast

Hello and thanks for your reply!

 

This could be a solution, but it is not what  i am looking for and also, i don't know where to place this bit of code in the post. I think that the post i have is almost good, accept the disengagementdirection and the spindle angle have a 90° difference. That is what i want to modify.

 

Thanks!

0 Likes
Message 4 of 7

a.laasW8M6T
Mentor
Mentor

can you share your actual post processor file here, I can have a look at it and see what I can do.

Andrew Laas
Senior Machinist, Scott Automation


EESignature

Message 5 of 7

werkplaatsZ45TW
Enthusiast
Enthusiast

Hello,

First thanks for your reaction, much appreciated!

I dropped the post down here. (lines 1670 till 1682)

The post automaticly chooses a disengaging direction, but not the right one.

When i fill in 90°(plus and minus 45°) it chooses disengaging direction 2 instead of 1

340°(plus and minus 45°) it chooses disengaging direction 1 instead of 2

260°(plus and minus 45°) it chooses disengaging direction 4 instead of 3

170°(plus and minus 45°) it chooses disengaging direction 3 instead of 4

 

Is this what you need to have and know?

 

Thanks in advance,

 

Roald

 

 

0 Likes
Message 6 of 7

a.laasW8M6T
Mentor
Mentor
Accepted solution

Ok I have it figured out.

 

I modified the Function from lines 1654-1669

/** Returns the best discrete disengagement direction for the specified direction. */
function getDisengagementDirection(direction) {
  switch (getQuadrant(direction + 45 * Math.PI / 180)) {
  case 0:
    return 3;
  case 1:
    return 4;
  case 2:
    return 1;
  case 3:
    return 2;
  }
  error(localize("Invalid disengagement direction."));
  return 3;
}

 

To the following

/** Returns the best discrete disengagement direction for the specified direction. */
function getDisengagementDirection(direction) {
  switch (getQuadrant(direction + 45 * Math.PI / 180)) {
  case 0:
    return 4;
  case 1:
    return 3;
  case 2:
    return 2;
  case 3:
    return 1;
  }
  error(localize("Invalid disengagement direction."));
  return 3;
}

 

This now outputs the direction following how you have described

 

I have uploaded the modified post

 

 

 

Andrew Laas
Senior Machinist, Scott Automation


EESignature

Message 7 of 7

werkplaatsZ45TW
Enthusiast
Enthusiast
Accepted solution

Wow, thank you so much for helping me out, it works perfect!!!

 

Thank you so much, have a great day,

 

Many thanks,

 

Roald

 

 

0 Likes