Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Twin Turret Mill/Turn - Okuma - Tools

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
ncprog06
308 Views, 8 Replies

Twin Turret Mill/Turn - Okuma - Tools

Hello i am Marco from Austria,

 

i got some issues with double Tool Numbers on a twin turret lathe (OKUMA LU3000EX).

 

for Example on this Machine i need two T1 Tools, my post is edited to handle 2 turrets.

 

er.PNG

 

okuma.png

 

the NC Code should be look like this:

 

O1001
(T010101 NR=0.4 - ZMIN=0. - GENERAL TURNING)
(T010101 D=5. CR=0. - ZMIN=-5. - FLAT END MILL)
G90 G80
M960
G50 S5000
 

(FACE1)
G0 X800. Z800.
G95 G18
G50 S5000

G13 (Turret 1)

N5 T010101
(AUSSENDREHSTAHL CCGT R0.4)
G97 S2500 M3
M8
G0 Z7.
X103.
Z1.414
X83.
G1 X75.828 F0.2
X73. Z0.
X-0.8
X2.028 Z1.414
G0 X103.
Z7.


(2D CONTOUR1)
G0 X800. Z800.
G94 G17 M110

G14 (Turret 2)

N5 T010101
(Endmill KBG0696)
SB=16234 M13
M8
G0 Z16.
X79.663 C96.263
G137 C0.
G17
G101 X-4.345 Y39.594 F7620.
G1 Z6.
Z2. F2000.
Z-0.5

 

 

8 REPLIES 8
Message 2 of 9
BrandonTBFBF
in reply to: ncprog06

Funny, I don't get that error using your test file.

 

Is there anything in the post you need changed? The only difference I can see is that it sends Turret A home when it calls T1 on Turret B.

Message 3 of 9
ncprog06
in reply to: ncprog06

now i have tried a lot, also in the post processor, it seems to be a Problem with the "Write tool list" function, without the tool list everything seems to be fine.

 

@BrandonTBFBFyes the homing of each turret is correctly, the sample code i postet before was copy and paste manually and so i forgot it

 

write tools.PNG

 

 

 

And anyone knows hot to handle with the "P-Codes" with Fusion ?

 

Message 4 of 9
BrandonTBFBF
in reply to: ncprog06

The issue seems to be with code starting on line 743.

 

var tools = getToolTable();
    if (tools.getNumberOfTools() > 0) {
      for (var i = 0; i < tools.getNumberOfTools(); ++i) {
        var tool = tools.getTool(i);
        var comment = formatTool(tool, false) + " " +
          (tool.diameter != 0 ? "D=" + spatialFormat.format(tool.diameter) + " " : "") +
          (tool.isTurningTool() ? localize("NR") + "=" + spatialFormat.format(tool.noseRadius) : localize("CR") + "=" + spatialFormat.format(tool.cornerRadius)) +
          (tool.taperAngle > 0 && (tool.taperAngle < Math.PI) ? " " + localize("TAPER") + "=" + taperFormat.format(tool.taperAngle) + localize("deg") : "") +
          (zRanges[tool.number] ? " - " + localize("ZMIN") + "=" + spatialFormat.format(zRanges[tool.number].getMinimum()) : "") +
          " - " + localize(getToolTypeName(tool.type));
        writeComment(comment);

 

According to this:

https://cam.autodesk.com/posts/reference/classPostProcessor.html#a52c939232474c2c445ce2a31c3d3ca09

 

getToolList() should be used in place of getToolTable(). You can't swap these functions one-for-one, I tried. Someone smarter than I am will hopefully chime in.

 

What "P-Codes" do you need help with?

Message 5 of 9
ncprog06
in reply to: BrandonTBFBF

ok thanks i will try,

 

 

about the P-Codes i will try to explain it:

 

in this case the 2 turrets work on the same time:

G14 (Revolver B)

N5 T010101
(AUSSENDREHSTAHL CCGT R0.4)
G97 S2500 M3
M8
G0 Z5.
X135.
G1 X115. Z0. F4.8
X105. F0.2
X-0.8
G0 X135.
Z5.
M9
G0 X800. Z800. T0100
M1
 

(PROFILSCHLICHTEN G13)
G0 X800. Z800.
G95 G18
G50 S5000

G13 (Revolver A)

N10 T020202
(AUSSENDREHSTAHL V R0.4)
G97 S2500 M3
M8
G0 Z5.
X125.
Z-0.4
X104.
G1 X100. F0.12
Z-150.4
X104.
G0 X125.
Z5.
M9
G0 X800. Z800. T0200
M1

 

in this case first P0010, when everthing under P0010 is finished it goes to the next step P0020.....

 

P-Codes can be a 4 Digit Number 0001-9999 and must be under the turret selection (G13 or G14)

 

G14 (Revolver B)

P0010

N5 T010101
(AUSSENDREHSTAHL CCGT R0.4)
G97 S2500 M3
M8
G0 Z5.
X135.
G1 X115. Z0. F4.8
X105. F0.2
X-0.8
G0 X135.
Z5.
M9
G0 X800. Z800. T0100
M1
 

(PROFILSCHLICHTEN G13)
G0 X800. Z800.
G95 G18
G50 S5000

G13 (Revolver A)

P0020

N10 T020202
(AUSSENDREHSTAHL V R0.4)
G97 S2500 M3
M8
G0 Z5.
X125.
Z-0.4
X104.
G1 X100. F0.12
Z-150.4
X104.
G0 X125.
Z5.
M9
G0 X800. Z800. T0200
M1

 

i also found this description in the net:

"Matching P codes allow both to start running at the same time.
A non matching P-code will run the lower # P-code until a higher # P-code is encountered."

 

it would be nice if we can implement this with a action code or something

Message 6 of 9
BrandonTBFBF
in reply to: ncprog06

Ahh, wait codes.

 

You can use Manual NC -> Pass Through for those. I do this all the time with my Swiss lathe.

Message 7 of 9
ncprog06
in reply to: ncprog06

Yes, but is there any chance to bring the P-Code under the Turret Code (G13/G14) ?

 

P-codes.PNG

 

 

the output code:

 

X85.
Z1.414
X65.
G1 X57.828 F0.12
X55. Z0.
X-0.8
X2.028 Z1.414
G0 X85.
Z7.
M9
M5
G0 X800. Z800. T0100
M1
 
P0010

(2D-TASCHE1)
G0 X800. Z800.
G94 G17 M110

G13 (Revolver A)

N10 T050505
(KBG0519)
SB=15915 M13
M8
G0 Z16.
X3.795 C341.565
M146
G137 C0.
G17
G101 X1.8 Y-0.6 F7620.

should be look like this:

 

 

X85.
Z1.414
X65.
G1 X57.828 F0.12
X55. Z0.
X-0.8
X2.028 Z1.414
G0 X85.
Z7.
M9
M5
G0 X800. Z800. T0100
M1
 
(2D-TASCHE1)
G0 X800. Z800.
G94 G17 M110

G13 (Revolver A)

P0010    <----------   after Turret Code

N10 T050505
(KBG0519)
SB=15915 M13
M8
G0 Z16.
X3.795 C341.565
M146
G137 C0.
G17
G101 X1.8 Y-0.6 F7620.
Message 8 of 9
BrandonTBFBF
in reply to: ncprog06

Try the attached. I didn't have time to test it thoroughly so use with caution. The way it's set currently it'll only post the codes if there is a tool change.

 

Use Manual NC -> Action -> waitCode:P0010

 

The colon is important.

Message 9 of 9
ncprog06
in reply to: ncprog06

very Nice 👍 P-Codes Working

 

i have made a few tweaks in the Post, now the Machine runs the Programm, out of Fusion without any errors or manual rework.

 

Thanks !!!

 

 

lu3000ex.jpg

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

Post to forums  

Autodesk Design & Make Report