Doosan Mill/turn 31i Sub spindle direction

RG_Productions
Advocate Advocate
1,265 Views
9 Replies
Message 1 of 10

Doosan Mill/turn 31i Sub spindle direction

RG_Productions
Advocate
Advocate

Hi,

 

Anyone else need to change the Sub spindle direction when turning? I have the tools setup correctly in the tool library. Is everyone getting around this by setting up incorrect hand turning tools in their libraries to output correct spindle direction?

 

Richard

1 Like
1,266 Views
9 Replies
Replies (9)
Message 2 of 10

paul.clauss
Alumni
Alumni

Hi @RG_Productions 

 

Thanks for posting. The spindle direction is defined in the "Setup" tab of the tool itself - this setting should apply to the main and sub-spindle. Are you getting results different than the setting there?

Screen Shot 2020-02-26 at 8.44.50 AM.png

 

If so, please share a file illustrating the problem (tools used in a toolpath are saved with the file) and share it with me - I'm happy to have a look.

Paul Clauss

Product Support Specialist




1 Like
Message 3 of 10

RG_Productions
Advocate
Advocate

Thanks @paul.clauss as I said my tool library is correct, the sub spindle direction in the post for turning is incorrect. M3 on the Sub Spindle is cw rotation, to mirror the ccw rotation of the main.

0 Likes
Message 4 of 10

paul.clauss
Alumni
Alumni

Hi @RG_Productions 

 

I get a "G96 S200 M3 P13" for the turning tool and a "G97 S10000 M4 P12" for the live tool. This is because the live tool is not defined as using a clockwise direction. Can you clarify exactly which operations you are referring to and what code you expect to see for a particular tool?
tool.png
Paul Clauss

Product Support Specialist




0 Likes
Message 5 of 10

RG_Productions
Advocate
Advocate

@paul.clauss The live tool facing OP was only to check that any edits on the post hadn't effected the live tools.

 

  • RH tools on the main spindle should output M3, LH tools M4.
  • LH tools on the Sub Spindle should output M3 and RH tools M4.

You will see that if you use in spindle direction check box in the tool setup that the tool then engages the work piece backwards.. Therefore it problem lies within the post.

 

On this machine the P codes denote which spindle is in operation.

  • P11 - Main Spindle
  • P12 - live tools
  • P13 - Sub Spindle
0 Likes
Message 6 of 10

paul.clauss
Alumni
Alumni

Hi @RG_Productions 

 

Thanks for posting. I've brought this to the attention of the post team and they stated that "the post does not check if the tool is a left-hand or right-hand tool, it is based solely on the Clockwise checkbox.  This is in the Setup tab for turning tools."

 

For me, when the setup tab is set to CCW, I get an M4. If I enable the "Clockwise" tab, I get an M3. Please see the video below. You can define right or left hand tools with either spindle direction and the post will follow the direction defined for the tool.

 

 

To edit the post to work with the directions for your machine, you could use the VSCode techniques described in this video to find where the spindle codes are coming from in the post and switch them around - I hope this helps! The resources on the HSM Post Processor Forum can always help with post customization as well.

Paul Clauss

Product Support Specialist




0 Likes
Message 7 of 10

RG_Productions
Advocate
Advocate

When you changed the spindle direction in the tool setup. Did you not notice that the tool was then engaging the workpiece backwards, indicating the the post is outputting the incorrect spindle direction for the subspindle. Try rough turning a part a shoulder with that tool geometry.

0 Likes
Message 8 of 10

RG_Productions
Advocate
Advocate

At the machine level, Sub Spindle "M3" is CCW and M4 is CW. Due to the fact that the Sub Spindle has to mirror the direction of the Main Spindle.

 

 

0 Likes
Message 9 of 10

nathanclymer
Explorer
Explorer

Has there been any resolution to this?  My new machine is the same way, and I have to edit M3/M4 for all subspindle ops.

0 Likes
Message 10 of 10

RG_Productions
Advocate
Advocate

In the youtube video of the partnership with Mazak corp, the tooling in the cam for the sub is the wrong way around... haha nice

 

https://www.youtube.com/watch?v=T6U7O1SiMx8

 

I changed the directions for the sub spindle in the post, our machine uses p codes. I haven't tested it extensively yet though..

 

  case "ORIENT_SPINDLE":
    return (spindle == SPINDLE_MAIN) ? 19 : 119;
  case "START_SPINDLE_CW":
    if (properties.useSpindlePcodes) {
        switch (spindle) {
        case SPINDLE_MAIN:
          return 3;
        case SPINDLE_LIVE:
          return 3;
        case SPINDLE_SUB:
          return 4;
        }
    } else {
      switch (spindle) {
      case SPINDLE_MAIN:
        return 3;
      case SPINDLE_LIVE:
        return 33;
      case SPINDLE_SUB:
        return 103;
      }
    }
    break;
  case "START_SPINDLE_CCW":
    if (properties.useSpindlePcodes) {
      switch (spindle) {
        case SPINDLE_MAIN:
          return 4;
        case SPINDLE_LIVE:
          return 4;
        case SPINDLE_SUB:
          return 3;
        };
    } else {
      switch (spindle) {
      case SPINDLE_MAIN:
        return 4;
      case SPINDLE_LIVE:
        return 34;
      case SPINDLE_SUB:
        return 104;
      }
    }

 

 

0 Likes