Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Doosan SMX 2100ST G400 B-Axis on secondary spindle

10 REPLIES 10
Reply
Message 1 of 11
DCDForeman
823 Views, 10 Replies

Doosan SMX 2100ST G400 B-Axis on secondary spindle

I've been working with the Doosan Mill/Turn with Fanuc 0i/31i Post set to Puma SMX. I've adjusted the post to default for secondary spindles, multiple turrets, and that sort of thing. 

 

I'm currently having issues with G400 on the secondary spindle. The code is mostly good, except it is putting the b-axis at -90 deg, or -45 deg, when those need to be positive values while working on the second spindle. I've been able to adjust the post to output positive values, but it causes the main spindle to reverse B-axis values.

 

The setup has the secondary spindle selected, which can be seen with the M3 P21, and the J2 in the G400 line.

 

Below is the Post portion I can adjust to reverse the Value of B-Axis. If there was a SPINDLE_SUB that was independent of this, I think that would solve my issue, but I'm no expert in Java. I did try copying this adding SPINDLE_SUB, but it seemed to be ignored.

"

  // define machine configuration
  var bAxis;
  var cAxis;
  if (section.getSpindle() == SPINDLE_PRIMARY) {
    bAxis = createAxis({coordinate:1, table:false, axis:[0, -1, 0], range:[-90, 45], preference:0, tcp:true});
    cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], cyclic:true, preference:0, tcp:operationSupportsTCP});
  } else {
    bAxis = createAxis({coordinate:1, table:false, axis:[0, 1, 0], range:[-45, 90], preference:0, tcp:true});
    cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, -1], cyclic:true, preference:0, tcp:operationSupportsTCP});
  }
"

 

Sample code below, note the G400 B-90 should be G400 B(+)90

"

%
O1235 (UPPER CHANNEL)
(T12012 D=0. NR=0.008 - ZMIN=-1.5415 - BORING TURNING)
G0 G18 G20 G40 G54 G80 G99 M110
M134
M34

N1(ID ROUGH)
G0 G28 U0. V0.
G28 W0.
M190
G55
G99 G18
G50 S800
T12000
M6 T12000
T12012
M8
G97 S800 M3 P21
M110
G400 B-90. J2. R1.
G0 X0.67 Y0. Z-2.0004
G96 S235 M3 P21
Z-0.01
X0.79
G1 Z1.5268 F0.002
G3 X0.75 Z1.5415 R0.039
Labels (3)
10 REPLIES 10
Message 2 of 11
AdamKunzo
in reply to: DCDForeman

Hi,

 

This should give you an idea how to do it.

 

https://forums.autodesk.com/t5/hsm-post-processor-forum/x-limit-sub-spindle/td-p/12532531

 

If you still need a help, send me a message and I will help.

 

 

Message 3 of 11
Arun.rs
in reply to: DCDForeman

HI @DCDForeman 

 

Thanks for raising your concern via Forum.

 

Could you please send me the model file? Once you save the file as .F3d, export it and re-attach it to this thread. Don't forget to zip the file before attaching.

 

Regards



Arun.RS
Technical Consultant - Post Processor
Message 4 of 11
DCDForeman
in reply to: Arun.rs

Hi @Arun.rs 

 

I've attached the 3df file of the part, and the post I'm working with in a Zip file.

 

 

The OP2 Upper is where the problems seem to arise.

 

T1, the G400 positions the Neutral CNMG tool at B-45, instead of B45.  

 

T71, the G400 positions the threading tool in B-90, instead of B90. 

Message 5 of 11
DCDForeman
in reply to: AdamKunzo

Hi @AdamKunzo,

 

I'm not sure how to apply this to my post.

 

The issue seems to be in the turning, since the milling spindle is outputting the positive B axis when appropriate (at least in B90 direction). I've attempted to alter the code you provided to B-axis, and insert it into the post, it seems to either be ignored, or error,

 

I have my post and 3df file attached to this thread now, if you're interested in having a look.

Message 6 of 11
Arun.rs
in reply to: Arun.rs

HI @DCDForeman 

 

Apologies for delay in reply.

 

I have modified the post with few changes, kindly check the output with all conditions before actual trail on machine.

 

Regards

 



Arun.RS
Technical Consultant - Post Processor
Message 7 of 11
DCDForeman
in reply to: Arun.rs

Hi @Arun.rs ,

 

Thanks for the update! I've looked at the code output with this now post. The Turning portion seems to have been corrected with the changes you've made. 

 

Eg.

(UPPER CNMG 432-PM 4425)
G97 S2878 M3 P21
G400 B45. J2. R4.
 
and 
 
( T10010 - 10MM BORING .93 STICKOUT W.0079RAD  )
G97 S3000 M3 P21
G400 B90. J2. R1.
 
However, this seems to have effected the milling, and drilling on the second spindle.  Previously the milling was posting correctly with B90.,  now it is posting the milling with B180. 180. is outside of the machines range. 
 
eg. 
 
( T55055 - 12EM 1.25FL SQ 6FLT THRU-C          )
G97 S2292 M3 P12
M190
G400 B180. J0.
Message 8 of 11
DCDForeman
in reply to: DCDForeman

Hi @Arun.rs 

 

I'm wondering if there has been any progress with this post?

 

Any information would be appreciated.

 

Message 9 of 11
Arun.rs
in reply to: DCDForeman

HI @DCDForeman 

 

Apologies for the delay in my reply.

 

I made a few tweaks to the post. Please check the output and let me know your feedback.

 



Arun.RS
Technical Consultant - Post Processor
Message 10 of 11
DCDForeman
in reply to: Arun.rs

Hi @Arun.rs 

 

I'm happy you're working on it, no problem with the delay!

 

I've posted it with the part, and we aren't quite there yet.

 

This should be drilling at B-90. and B90. It is posting out with B0., and B90.

 

eg.

( T27027 - .75 880 DINGLEBERRY INSRT DRILL       )
G97 S3107 M3 P12
M90
G400 B0. J0.
 
eg.
M189
M190
G400 B90. J0.
 
 
Also I see that the tool isn't going to be at home when it does the second G400, which will likely lead to a crash.
 
eg.
( T27027 - .75 880 DINGLEBERRY INSRT DRILL       )
G97 S3107 M3 P12
M90
G400 B0. J0.
G0 C0.
M89
M7
G0 Z0.625
X0. Y0.
G80
G0 X0.45
G87 X0. Z-0.605 R-0.025 F12.427 M89
G80
G0 Z0.625

(34 DRILL - RIGHT)
G55
G17
M135
M190
G0 G28 H0.
M189
M190
G400 B90. J0.
 
 
From my first look, the turning tools seem to be okay. It looks like this only affects the milling tools.
 
Thank you for your effort! If there is anything I can do to assist, please let me know!
 
 
 

 

Message 11 of 11
DCDForeman
in reply to: DCDForeman

@Arun.rs 

Just checking to see if there has been any progress with this.

 

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report