Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Milling question on Doosan 2000SY


Recommended Posts

I have a Doosan 2000SY lathe with live tooling, sub spindle and y axis. What I want to be able to do, is mill two flats 90 degrees apart on 1/4" diameter rod while holding the material in the main and sub spindle. I would like to know what the best practice might be for this and what the code might look like. I think I need to command an M135 after an M35 to allow the sub spindle to free wheel while the main spindle indexes.

 

Any help is appreciated.

 

Kind regards.

Clarence

Link to comment
Share on other sites

Thank you Crazy^Millman.

 

I don't know who MTB Solutions is. I think the dealer for North Idaho is CNC Machine Services out of Oregon.

 

The machine is new to me and our first lathe with a sub spindle, so I am feeling my way around the machine and trying to learn as quickly as I can. I don't know if there is some special trick to what I am attempting to do.

 

Kind regards.

Clarence

Link to comment
Share on other sites
Guest MTB Technical Services

I have a Doosan 2000SY lathe with live tooling, sub spindle and y axis. What I want to be able to do, is mill two flats 90 degrees apart on 1/4" diameter rod while holding the material in the main and sub spindle. I would like to know what the best practice might be for this and what the code might look like. I think I need to command an M135 after an M35 to allow the sub spindle to free wheel while the main spindle indexes.

 

Any help is appreciated.

 

Kind regards.

Clarence

 

You really need to read the manual.

There are plenty of good examples there to get your feet wet.

 

Here's a manual that should help.

https://dl.dropboxus...AMMING rev2.pdf

 

Keep in mind that there may be some differences, depending upon the vintage of your machine.

If it is labeled Doosan only, and not Doosan/Daewoo, the previous manual and the codes below should be good.

Doosan standardized all the M-Codes across the Turning and Milling lines back in 2009-2010 when they went to the 30i series and the 0i-TD.

If your machine is prior to that change over, it will most likely have an 18i-TC control.

Here's a cross reference chart to the current M-Codes.

https://dl.dropboxus...TC_20090825.pdf

 

M03 P11 is CW Main Spindle

M04 P11 is CCW Main Spindle

M05 P11 Main Spindle Stop

 

M03 P13 ( or P21, depends on the machine) is CW Sub Spindle

M04 P13 ( or P21, depends on the machine) is CCW SubSpindle

M05 P13 ( or P21, depends on the machine) Sub Spindle Stop

 

M03 P12 is CW Live Tool

M04 P12 is CCW Live Tool

M05 P12 Live Tool Stop

 

M35 engages the C-Axis on the Main spindle and enables the live-tooling to be called (Milling Mode).

M135 engages the C-Axis on the sub-spindle and enables the live-tooling to be called (Milling Mode).

M136 will synchronize the C-Axis Main and -C-Axis Sub.

M137 will cancel the synchronization.

M34 disengages the C-Axis from the Main Spindle allowing it to freely spin (Return to Turning Mode).

M134 disengages the C-Axis from the Main Spindle allowing it to freely spin (Return to Turning Mode).

 

Keep in mind that the Y-axis on your lathe is very limited. It's a total of 4.1 inches of travel.

The closer you get to X0 centerline you will lose Y-axis travel as Y is a non-orthogonal virtualized axis.

  • Like 1
Link to comment
Share on other sites

Thank you Tim,

 

I have the 21i control. The machine is a 2006. I purchased it used back in March. I think when I said "new to me", I confused the fact that it is a used machine.

 

I haven't seen a P code after any of the M codes. My M code for live tooling forward rotation is M33 and M35 is live tooling stop.

 

For me, it is learning "how" to read the manuals is as important as to "what" I have read in the manuals. I have never had a machine like this. The sub spindle has added a whole new level to what I am doing here and I am still just beginning to scratch the surface as to what this machine is capable of compared to what I have had in the past. I read everything that I can and try to figure out ways that I can incorporate it into what I do. This forum has been a tremendous help in my education to better myself and to improve my efficiency in the work that I do (usually relatively simple 2 1/2" stuff).

 

Kind regards.

Clarence

Link to comment
Share on other sites
Guest MTB Technical Services

Thank you Tim,

 

I have the 21i control. The machine is a 2006. I purchased it used back in March. I think when I said "new to me", I confused the fact that it is a used machine.

 

I haven't seen a P code after any of the M codes. My M code for live tooling forward rotation is M33 and M35 is live tooling stop.

 

For me, it is learning "how" to read the manuals is as important as to "what" I have read in the manuals. I have never had a machine like this. The sub spindle has added a whole new level to what I am doing here and I am still just beginning to scratch the surface as to what this machine is capable of compared to what I have had in the past. I read everything that I can and try to figure out ways that I can incorporate it into what I do. This forum has been a tremendous help in my education to better myself and to improve my efficiency in the work that I do (usually relatively simple 2 1/2" stuff).

 

Kind regards.

Clarence

 

The manual I gave you the link to is still a good reference.

All that will be different is the lack of the P-code for the spindles and having to cross-reference the new M-codes to the old.

The programming syntax will still be the same.

Link to comment
Share on other sites

Thank you Tim,

 

I took a quick look through it and it looks very much like the manuals that I have. I will give the newer manuals a more thorough examination in the next few days.

 

I just haven't seen an example of how to hold onto the shaft with the main and the sub and index the part. I have seen the examples with indexing in the main or the sub but not both. That is why I mentioned allowing the sub to free wheel and drive the indexing with the main. I just don't have any experience doing that yet so I am not sure that is the proper way to go. I hope to begin some experimentation in the next week or so.

 

Thank you for your help.

Link to comment
Share on other sites

The whole idea of main and sub spindle come into play. Synchronization of both normally comes through a Mcode process like Tim laid out for you. M35 so when you have the main as driving or Master Spindle then M136 should take control of both. Now if both need to be in the C axis mode M35 and M135 to use M136 on that machine I am not sure. I believe he mistyped the M134 as I would think it relates to Releasing the Sub Spindle since on most Fanuc controls the M1XX code control sub spindle stuff, but I think you get the point. Next question is who or where did you get your post for that machine. Without one you are asking for all types of problems. Thinking Mill/Turn requires a different type of mind set and process thinking. Controlling everything comes down to how far ahead you are looking. Also do not get trapped into the idea everything must start in the main spindle. Sometimes it is best to start in the sub and then transfer to the main.

 

You put up good files and pictures and such and we will be glad to help as best we can. Shooting off one liners without a lot of information does not give us enough to help. Best of luck and keep learning and growing.

Link to comment
Share on other sites

Thank you Crazy^Millman.

 

I got my post from my reseller in Sandy, UT. It is specifically for this machine, but I had to make some changes so that I was more comfortable with it. Some examples are: The tool table is in accending order, the tool table now allows for the same tool number but different offset values, moving x home before changing tools. Pretty minor stuff, but I am more comfortable.

 

I have gotten the machine and MasterCam to do most everything that I have asked of it, and I can make it work in the main or the sub, but both together is new.

 

I am finding out that Mill/Turn is a whole new mind set. I am just trying not to have my thinking be to narrow. A whole new world awaits.

 

Kind regards.

Clarence

Link to comment
Share on other sites

Thank you Crazy^Millman.

 

I got my post from my reseller in Sandy, UT. It is specifically for this machine, but I had to make some changes so that I was more comfortable with it. Some examples are: The tool table is in accending order, the tool table now allows for the same tool number but different offset values, moving x home before changing tools. Pretty minor stuff, but I am more comfortable.

 

I have gotten the machine and MasterCam to do most everything that I have asked of it, and I can make it work in the main or the sub, but both together is new.

 

I am finding out that Mill/Turn is a whole new mind set. I am just trying not to have my thinking be to narrow. A whole new world awaits.

 

Kind regards.

Clarence

 

Well sir then you are well on your way and look forward to seeing the work you get done and how you are able to make the machine do things you need.

Link to comment
Share on other sites
Guest MTB Technical Services

%

O0011(EXAMPLE - 2000SY - LIVE MILL)

 

(PREPARATION FOR START OF PROGRAM)

(INITIALIZE - RAPID, ZX PLANE, TNR COMP CANCEL, CYCLE CANCEL, UPR FEED)

G00 G18 G40 G80 G99

G00 G28 U0.0 V0.0 (ZERO RETURN X-AXIS & Y-AXIS)

G00 G28 W0.0 (ZERO RETURN Z-AXIS)

G00 G28 G53 B0.0 (ZERO RETURN SUB-SPINDLE AXIS)

M00

 

(LOAD BAR IN LEFT SPINDLE)

(CLOSE JAWS)

(PRESS CYCLE START)

 

G97 (DIRECT RPM MODE)

M34 (C-AXIS MODE OFF - LEFT SPINDLE)

M134 (C-AXIS MODE OFF - SUB SPINDLE)

M19 (ORIENT THE LEFT)

M119 (ORIENT THE RIGHT)

M131 (ALLOW THE RIGHT TO OPEN)

M169 (OPEN RIGHT JAWS)

G04 U1.0 (WAIT A SECOND)

G54 G98 G00 B0.5 (RAPID TO 0.5 AWAY FROM FRONT OF BAR)

M86 (TORQUE SKIP)

G31 P99 B-1.0 F50.0 (FEED ONTO THE PART)

(MODIFY B-AXIS VALUE PER PART/JAWS)

M87 (TORQUE SKIP CANCEL)

M168 (CLOSE RIGHT JAWS)

G04 U1.0 (WAIT A SECOND)

M35 (LEFT SPINDLE C-AXIS MODE ON)

M135 (SUB SPINDLE C-AXIS MODE ON)

M128 (SYNCHRONIZE LEFT & RIGHT C-AXES)

G99 (UPR FEED)

 

(PREPARATION FOR START OF OPERATION)

T0606 (0.75 SOLID CARBIDE END MILL)

M08 (COOLANT ON)

G97 S1500 M33 (DIRECT RPM MODE - 1500 RPM - LIVE SPINDLE CLOCKWISE)

 

G00 C0.0

G00 X8.0 Z-4.0 (POSITION TO SAFE CLEARANCE)

 

M89 (C-AXIS CLAMP)

 

(POSITION TO START POINT)

X1.0

Y-1.0

 

(MILL FLAT AT C0.0)

G01 X0.2 F0.0075

Y0.0

Z-10.0

Y-1.0

G00 X6.0

Z-4.0

M90 (C-AXIS UNCLAMP)

 

(POSITION TO START POINT)

G00 C180.0

M89 (C-AXIS CLAMP)

X1.0

 

(MILL FLAT AT C180.0)

G01 X0.2 F0.0075

Y0.0

Z-10.0

Y-1.0

G00 X6.0

M90 (C-AXIS UNCLAMP)

 

(END PROGRAM/TOOL CHANGE PREPARATION)

G00 G28 U0.0 V0.0 (ZERO RETURN X-AXIS & Y-AXIS)

G00 G28 W0.0 (ZERO RETURN Z-AXIS)

T0600 (CANCEL OFFSET FOR CURRENT TOOL)

M09 (COOLANT OFF)

 

M129 (CANCEL C-AXES SYNCHRONIZATION)

M35 (LIVE SPINDLE OFF)

M131 (ALLOW THE RIGHT TO OPEN)

M169 (OPEN RIGHT JAWS)

G04 U1.0 (WAIT A SECOND)

G00 G28 G53 B0.0 (ZERO RETURN SUB-SPINDLE AXIS)

M34 (C-AXIS MODE OFF - LEFT SPINDLE)

M134 (C-AXIS MODE OFF - SUB SPINDLE)

M30

%

  • Like 2
Link to comment
Share on other sites

%

O0011(EXAMPLE - 2000SY - LIVE MILL)

 

(PREPARATION FOR START OF PROGRAM)

(INITIALIZE - RAPID, ZX PLANE, TNR COMP CANCEL, CYCLE CANCEL, UPR FEED)

G00 G18 G40 G80 G99

G00 G28 U0.0 V0.0 (ZERO RETURN X-AXIS & Y-AXIS)

G00 G28 W0.0 (ZERO RETURN Z-AXIS)

G00 G28 G53 B0.0 (ZERO RETURN SUB-SPINDLE AXIS)

M00

 

(LOAD BAR IN LEFT SPINDLE)

(CLOSE JAWS)

(PRESS CYCLE START)

 

G97 (DIRECT RPM MODE)

M34 (C-AXIS MODE OFF - LEFT SPINDLE)

M134 (C-AXIS MODE OFF - RIGHT SPINDLE)

M19 (ORIENT THE LEFT)

M119 (ORIENT THE RIGHT)

M131 (ALLOW THE RIGHT TO OPEN)

M169 (OPEN RIGHT JAWS)

G04 U1.0 (WAIT A SECOND)

G54 G98 G00 B0.5 (RAPID TO 0.5 AWAY FROM FRONT OF BAR)

M86 (TORQUE SKIP)

G31 P99 B-1.0 F50.0 (FEED ONTO THE PART)

(MODIFY B-AXIS VALUE PER PART/JAWS)

M87 (TORQUE SKIP CANCEL)

M168 (CLOSE RIGHT JAWS)

G04 U1.0 (WAIT A SECOND)

M35 (LEFT SPINDLE C-AXIS MODE ON)

M135 (LEFT SPINDLE C-AXIS MODE ON)

M128 (SYNCHRONIZE LEFT & RIGHT C-AXES)

G99 (UPR FEED)

 

(PREPARATION FOR START OF OPERATION)

T0606 (0.75 SOLID CARBIDE END MILL)

M08 (COOLANT ON)

G97 S1500 M33 (DIRECT RPM MODE - 1500 RPM - LIVE SPINDLE CLOCKWISE)

 

G00 C0.0

G00 X8.0 Z-4.0 (POSITION TO SAFE CLEARANCE)

 

M89 (C-AXIS CLAMP)

 

(POSITION TO START POINT)

X1.0

Y-1.0

 

(MILL FLAT AT C0.0)

G01 X0.2 F0.0075

Y0.0

Z-10.0

Y-1.0

G00 X6.0

Z-4.0

M90 (C-AXIS UNCLAMP)

 

(POSITION TO START POINT)

G00 C180.0

M89 (C-AXIS CLAMP)

X1.0

 

(MILL FLAT AT C180.0)

G01 X0.2 F0.0075

Y0.0

Z-10.0

Y-1.0

G00 X6.0

M90 (C-AXIS UNCLAMP)

 

(END PROGRAM/TOOL CHANGE PREPARATION)

G00 G28 U0.0 V0.0 (ZERO RETURN X-AXIS & Y-AXIS)

G00 G28 W0.0 (ZERO RETURN Z-AXIS)

T0600 (CANCEL OFFSET FOR CURRENT TOOL)

M09 (COOLANT OFF)

 

M129 (CANCEL C-AXES SYNCHRONIZATION)

M35 (LIVE SPINDLE OFF)

M131 (ALLOW THE RIGHT TO OPEN)

M169 (OPEN RIGHT JAWS)

G04 U1.0 (WAIT A SECOND)

G00 G28 G53 B0.0 (ZERO RETURN SUB-SPINDLE AXIS)

M34 (C-AXIS MODE OFF - LEFT SPINDLE)

M134 (C-AXIS MODE OFF - RIGHT SPINDLE)

M30

%

 

Like I said give Tim a call he knows that brand of machine better than just about anyone. :unworthy:

Link to comment
Share on other sites

Wow, thank you both.

 

Tim, I will look over that sample code. I have to have my M code cheat sheet pages out to understand it all. I have had troubles in the past with the various interactions of the M codes, but I have been starting to understand.

 

Thanks again. I will post what I end up doing and how I went about it.

 

Kind regards.

Clarence

Link to comment
Share on other sites
Guest MTB Technical Services

Clarence,

 

I just did that sample from memory but you should be OK.

 

It will run on your SY.

 

You only have the upper turret correct?

Link to comment
Share on other sites
  • 2 years later...

sorry to bring up an old post but we are having a problem getting out doosan 2000sy to start milling. we have it transferring to the sub parting off, moving b back, then rigid taping, after the tap finishes the live tooling goes in to do its hex milling. but we get a c axis commanded while in spindle mode. we have the m135 in there but it still alarms out. any ideas?

Link to comment
Share on other sites

First off, did you do an M291, reverse axis assignment?  It makes the A axis (normally sub spindle) and turns it into the C axis (normally main spindle).  When you are finished, you will want to do an M290 to put it back to normal.

 

Could you post a snippet of code so that I can compare it to some of the code that I have that I know works.

 

Which control?  Mine is the 18i.

 

Kind regards.

Clarence

Link to comment
Share on other sites
heres a snip of the bottom of the program. mind you this program ran 100 parts, we changed it just to tap a different tap now alarms again with C in it before instead of the A it would not run right without alarming. after swapping to A's instead of C it ran fine for the first batch

 

N9T525G97S1000M104 

(.5 SPOT DRILL)

M110 

G0G40Z-1.M8

X0.Y0. 

Z-.05

G1Z.18F.002

G0Z-1.M9 

G28U0.V0.

G0Z-6. 

M1 

 

N10T424

(3/8-16 TAP) 

M110 

G0X0.Z-.1Y0.M8 

G97S200M104

M29S200

G84X0.Y0.Z.5F.0625 

G84X0.Y0.Z.75F.0625

G84X0.Y0.Z1.F.0625 

G84X0.Y0.Z1.42F.0625 

G80

G0G40X6.Z-6.M9 

G28U0.V0.

M1 

 

N11T1030G55

G97S200M104

G4P2000

M105 

M110 

M119 

M35

M135 

G97S1000M33

***HERES WHERE IT ALARMS***

G0A0. 

M189 

G0G40X1.Z-1. 

Y-.5M8 

Z.38 

X.685

G1Y.5F.003 

G0X1.Y-.5

M190 

X.685

A60.0

M189 

G1Y.5

G0X1.Y-.5

X.685

G1Y.5

G0X1.Y-.5

M190 

X.685

A120.0 

M189 

G1Y.5

G0X1.Y-.5

M190 

X.685

A180.0 

M189 

G1Y.5

G0X1.Y-.5

M190 

X.685

A240.0 

M189 

G1Y.5

G0X1.Y-.5

M190 

X.685

A300.0 

M189 

G1Y.5

G0X1.

G28U0.V0.M9

M190 

G0Z-6. 

M35

M105 

M111 

M10

M169 

M108 

M114 

M109 

M168 

M11

/M30 

M99

%

Link to comment
Share on other sites
I have attached a snippet of code that ran just last week.

 

The biggest difference I see is I am not using M35 in combination with M135.  From what I read in my book, the order of M35 to M135 matters and if I understand my book correctly, then it appears you have the order correct.

 

I also don't use M119.  When parting I synchronize the sub to the main, so angularity is maintained.

 

Finally, I use M291 to change the axis assignments.  I mainly did this because Mastercam wanted to use C for everything and I just haven't gotten around to fixing it.

 

Hope this help.

 

(TOOL - 11 OFFSET - 23)

(T1123 - THIN BIT TOOLING FOR SUB)

N14 G18 G98 G20 G00 G40 G28 U0.

G55 T1100

T1123

M190

G50 S3000

G96 S150 M104

G0 Z-.03 M8

G0 X1.05

Z.125

G99 G1 X.95 F.002

X.372

Z.02

Z-.03

G0 Z-1.

M9

G28 U0.

G28 V0.

M105

T1100

M01

 

(TOOL - 3 OFFSET - 15)

(T0315 - C DRILL IN AXIAL HEAD)

M291 (REVERSE C AXIS ASSIGNMENT)

M110

(C-AXIS FACE DRILL)

N15 G28 U0.

T0315

G55

G17 G97 G98

M135

M190

G28 C0

G0 C135.

G0 Z-.075 M8

G0 X.6647

G97 S1700 M34

Z.025

G1 Z.6227 F8.

G0 Z-.075

C45.

Z.025

G1 Z.6227

G0 Z-.075

C-45.

Z.025

G1 Z.6227

G0 Z-.075

C-135.

Z.025

G1 Z.6227

G0 Z-.075

M9

X9.

G28 V0.

G28 U0. H0.

T0300

M01

 

(TOOL - 10 OFFSET - 22)

(T1022 - 3/32 CARBIDE DRILL IN RADIAL HEAD)

(C-AXIS CROSS DRILL)

N16 G28 U0.

T1022

G55

G19 G97 G98

M135

M190

G28 C0

G0 C135.

G0 Z.375 M8

G0 X1.398

G97 S2500 M33

X1.198

G1 X.748 F10.

G0 X1.398

X1.198 C45.

G1 X.748

G0 X1.398

X1.198 C315.

G1 X.748

G0 X1.398

X1.198 C225.

G1 X.748

G0 X1.398

M9

X9.

G28 V0.

G28 U0. H0.

T1000

M01

 

(TOOL - 5 OFFSET - 17)

(T0517 - 6MM FLAT ENDMILL RADIAL HEAD)

M110

N17 G28 U0.

T0517

G55

G19 G97 G98

M135

M190

G28 C0

G0 C90.

M189

G0 Z-.0167 M8

G0 X1.2

G97 S2500 M33

X1.1

G1 X.86 F20.

Z.125 F13.4

X1.0209 Z.8905

X1.1209 F20.

G0 X1.2

Z-.0167

X1.1

G1 X.74

Z.125 F13.4

X1.0609 Z1.6516

G0 X1.2

Y.0079 Z-.0167

X1.1

G1 X.7 F20.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...