Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How can I let the B axis turning during the spindle turning and output post?

Genius
Genius

Shouldn't the CAM be asking to post a new B angle, mom_out_angle_pos(0), without having to calculate it?

 

I tried putting the B angle output into the circular move in Motion Control but I don't get any B angles posted.

 

Can anyone verify that posting new B angles is supported in NX11.02.7 MP4?

Thank you,

Jesse

 

Tool Orientation.PNGCircular Move.PNG

 

 

 

 

 

No B.PNG

 

Re: How can I let the B axis turning during the spindle turning and output post?

Gears Phenom Gears Phenom
Gears Phenom

I think not.

mom_out_angle_pos are calculated rotary axes with 5ax kinematics for  5ax mills.

 

Even If you made some lathe post you know that there is some angle of the tool

(you can turn part paralel or perpendicular to the part axis or in other angles)

and this angle is not in mom_out_angle_pos, so you have to calculate it from tool axis.

 

If this calculation is not wotking I dont know how to deal with it - so we have a problem.

 

N0020 (FINISH_TURN_OD)
N0030 G50 X0.0 Z0.0
N0040 T02 H00 M06
N0050 G94 G00 X231.646 Z-38. B45.
N0060 G03 X223.646 Z-46. I-8. K0.0 F250. B45.
N0070 G97 S0 M03
N0080 G01 X220. B45.
N0090 (b=45)
N0100 X200.25 B0.0
N0110 (b=0)
N0120 G02 X196. Z-50.25 I0.0 K-4.25 B0.0
N0130 G01 Z-60. B0.0
N0140 (b=0)
N0150 G03 X160. Z-96. I-36. K0.0 B0.0
N0160 (b=10)
N0170 G01 X120. B45.
N0180 (b=45)
N0190 G03 X104. Z-80. I0.0 K16. B45.
N0200 (b=75)
N0210 G01 Z-5.104 B90.
N0220 (b=90)
N0230 G02 X102.755 Z-2.098 I-4.25 K0.0 B90.
N0240 G01 X97.828 Z2.828 B45.
N0250 (b=45)
N0260 X95.665 Z4.992 B45.
N0270 G03 Z16.306 I5.657 K5.657 B45.
N0280 M02

 As I described before in my previous post there is some B10 and tool axis didnt get it.

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: How can I let the B axis turning during the spindle turning and output post?

Genius
Genius

Ah ok I see why you need to set it with the equation now, thank you.  I got mine working, with no ommissions right now, but I will keep my eye out for missing B calls like you are getting.  My only suggestion for troubleshooting your issue would be to go into the Review Tool when posting and be sure that array mom_tool_axis is showing up when necessary for your calculation.  I changed the conditions as follows to suit my needs:

 

global mom_out_angle_pos
global mom_tool_axis
global RAD2DEG
global mom_machine_mode

if { [array exists mom_tool_axis] && [string equal $mom_machine_mode "TURN"]} {
set mom_out_angle_pos(0) [expr $RAD2DEG*atan2($mom_tool_axis(0),$mom_tool_axis(2))]
}

Re: How can I let the B axis turning during the spindle turning and output post?

Gears Phenom Gears Phenom
Gears Phenom

In block where should be B10 tool axis is 001 - what is not OK. It is probably set from rpevious move.

Procedure is checking if tool axis exists, but fact it exists shouldnt mean it is ok.

I dont know how machine control works on machines. maybe B in circular move is not supported.

Maybe the line output is needed. Try generate operation with line output and postprocess.

Let me know 

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: How can I let the B axis turning during the spindle turning and output post?

Genius
Genius

Juraj,

I was able to find a variable for which "Reorient Tool Holder" type you are using, mom_use_b_axis:

= 0 for none

= 1 for fixed B-axis

= 2 for variable

 

And I changed my IF statement too.  I just have the if array exists in there so that it does not try to calculate if it is not there and throw an error:

if { [array exists mom_tool_axis] && [string equal $mom_machine_mode "TURN"] && $mom_use_b_axis==2} {

 

This all works great for me for circular moves.

 

Sorry I don't know what to do about your tool axis being wrong.  I would expect it to recalculate every time you have a new B position, and to post those values in the review file, so if it doesn't I would suspect some kind of glitch, have you tried calling GTAC?

Re: How can I let the B axis turning during the spindle turning and output post?

Gears Phenom Gears Phenom
Gears Phenom

can you put here just nc code from that operation here please?

I dont know if I did somethhing wrong or version of my nx .

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: How can I let the B axis turning during the spindle turning and output post?

Genius
Genius

This is the output from a variable B on a finish turn operation.  I placed 5 changes in B and they all output during the cutting move.  The first B1=0.0 is just for the positioning move.

 

Capture.PNG

Re: How can I let the B axis turning during the spindle turning and output post?

Gears Phenom Gears Phenom
Gears Phenom

but I cant see B in circular move, can you postprocess the same operation I did ?

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: How can I let the B axis turning during the spindle turning and output post?

Genius
Genius

Ah ok I understand.  I am also unable to get B to post the new angle when it is on a circular move such as G3.  And when I look at the mom_tool_axis values I see:

V mom_tool_axis[0] = 1.0
V mom_tool_axis[1] = 0.00000000000000000
V mom_tool_axis[2] = -0.00000000000000127

 

When I should actually see:

V mom_tool_axis[0] = 0.86602540378443826
V mom_tool_axis[1] = 0.00000000000000000
V mom_tool_axis[2] = 0.50000000000000067

 

I hope we can get an answer to this issue.

Re: How can I let the B axis turning during the spindle turning and output post?

Gears Phenom Gears Phenom
Gears Phenom

But again, I dont know if machine accept G2/3 with B. Maybe line output is needed. I have no experience with turning with changing B.

Try to generate that operation with line output and postprocess, attach here the part or the outputed nc code.

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Learn online





Solution Information