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:

4-axis lathe wait codes


jvarney
 Share

Recommended Posts

Does anybody have any resources or insight on programming wait codes for a dual-turret machine? Just started running our Okuma LU-35. I'm doin allright rewriting the programs to run on the machine manually, but that's not why I bought a cam system... I'm assuming it has something to do with the misc integers but not sure. Also, sorry to ask, but does anybody know where to get a good post for this machine. I got several from my reseller but none of them actually post code the machine will run. Unfortunately, they really don't know much as far as posts, support or training. I guess they only specialize in sales. Thank you. ☺☺☺

Link to comment
Share on other sites

Sorry, man, but you are going to be SOL without a heavily-customized post. Okuma uses P codes for wait / synch. If you command a P10 on the upper turret and a P20 on the lower turret at the beginning of your program, the upper turret will run and the lower turret will sit until it sees a P20 or greater on the upper turret; if you command P20 on the upper turret, both turrets will then run simultaneously, if you command a P30 on the upper turret, the lower turret will run while the upper turret sits. Negative P values "reset" the clock sp that you don't end up with P10000 at the end of your program.

 

Tough to digest by reading, I'd really suggest that you get the Okuma Applications Engineer down there to come in and give you some "real" training.

 

C

Link to comment
Share on other sites

First off, welcome to the forum. You can setup misc. integers for wait codes but it still isn't rock solid (depending on machine config.) We have a nakamura TW20-MMYY. dual turret (top left, top right) dual spindle. The turrets only service the one spindle so you cant crash turrets. the only place we need a wait code is at the partoff-transfer. I was able to include that into the post to add those. It gets alot more difficult when you need waitcodes througout the program and the only effective way I have seen it done is with a editor after posting. Your reseller should be able to create a custom post for you, but be prepared they are not cheap.

Link to comment
Share on other sites

I have a "base" program that I know is right and tight and use that program as a reference to cut-and-paste the stuff that I don't want to invest the effort to make MC post correctly; I know that's not the answer you're looking for, but that's what many of us are doing.

 

C

Link to comment
Share on other sites

Here is sync'd canned rough cycle. This actually runs on an LR25 4 axis. But the code will run on the LU also.

 

Note this is manually edited code, not straight from mastercam. Basically posted from mcam, added pcodes, then copied for the lower turret.

 

code:

 G13

(TURRET "A")

(ROUGH FACE & TURN)

(CNMG TURNING TOOL)

(WITH A CNMG433 3/64 TNR INSERT)

G50 S1800

N1 G0 M8

X50 Z50

T0101

G96 S750 M42 M3 P10

X4.15 Z.06

G1X-.0625 F.008

G0X4.15 Z.08

X4.15 Z.02

G1 X.125 F.010

X-.0625 F.002

G0 X4.05 Z.05 P20

G85 NLAP1 D.20 U.04 W.010 F.020 P21

NLAP1 G81

G0 X1.3478 Z.05 P22

G1 Z0. F.005 P23

G3 X1.6071 Z-.1104 K-.1313 F.003

G1 X1.6291 Z-.1515

X2.7500 Z-3.9947 F.012

G1 Z-4.125 F.008

X3.74 F.005

G3 X3.8054 Z-4.1385 K-.0463

G1 X3.935 Z-4.2068

G80 P25

G0 X50 Z50

T1200

G97 S1200 M42 M3 P30

T0400 P45

M1 P48

G14

(TURRET "B")

(ROUGH TURN)

(CNMG TURNING TOOL)

(WITH A CNMG433 3/64 TNR INSERT)

G50 S1800

N1 G0 M8

X50 Z50

T0909

G96 S750 M42 M3 P10

X4.15 Z.25

G0 X4.05 Z.05 P20

G85 NLAP1 D.20 U.04 W.010 F.020 P21

NLAP1 G81

G0 X1.3478 Z.05 P22

G1 Z0. F.005 P23

G3 X1.6071 Z-.1104 K-.1313 F.003

G1 X1.6291 Z-.1515

X2.7500 Z-3.9947 F.012

G1 Z-4.125 F.008

X3.74 F.005

G3 X3.8054 Z-4.1385 K-.0463

G1 X3.935 Z-4.2068

G80 P25

G0 X50 Z50

T0200

G97 S1200 M42 M3 P30

M1

HTH

Let me know if you need anything specific.

Link to comment
Share on other sites

Yep...pinch turning on that one.

 

quote:

I haven't seen Okuma code in many moons. That is pinch turning. We always started the top tool .01 closer in Z and the bottom tool .100 closer in X so they would cut first and second pass at same time, then the depth of cut could be doubled for each turret.

I personally prefer doing it that way, double depth of cut, depending on the part of course.

But, there is always more than one way to skin a cat.

 

I'd post another example, but my work day ended an hour and a half ago. tongue.gif

 

Anyone else have some example code? Or are we just gonna criticize what i posted? biggrin.gif

 

Edit: BTW 32 Okuma CNC's, 15 of em lathes.

and that's just in this building. wink.gif

Link to comment
Share on other sites

here you go:

code:

$LK97570.MIN%

G14

(LOWER TURRET)

(MACHINE - OKUMA LU-15)

(CUSTOMER - ADD CUSTOMER)

(PART # - 901-036-422-103)

(MODEL # - 901-036-422-103.MCX)

(PROGRAMMER - RON
B)

(PROGRAM NAME - LK97570.MIN)

(DATE - FEB. 12 2008)

(TIME - 11:59 AM)

(PROGRAM REV - N/C)

(TOOL - 1 - DDJNR-164D - DNMG-432 - OFFSET - 0 - INSERT - DNMG-432 - HOLDER - DDJNR-164D)

(TOOL - 2 - DDJNR-164D - DNMG-432 LOWER - OFFSET - 0 - INSERT - DNMG-432 - HOLDER - DDJNR-164D)

(TOOL - 6 - OD FINISH LEFT - 35 DEG. - OFFSET - 0 - INSERT - VNMG-431 - HOLDER - MVJNL-164D)

(TOOL - 5 - DDJNL-164D - DNMG-432 - OFFSET - 0 - INSERT - DNMG-432 - HOLDER - DDJNL-164D)

(TOOL - 3 - DDJNL-164D - DNMG-432 - OFFSET - 0 - INSERT - DNMG-432 - HOLDER - DDJNL-164D)

(TOOL - 4 - OD FINISH LEFT - 35 DEG. LOWER - OFFSET - 0 - INSERT - VNMG-431 - HOLDER - MVJNR-164D)

M56 (ENGAGE TAILSTOCK)

G13

(UPPER TURRET)

(TOOL - 1 OFFSET - 1)

(DDJNR-164D - DNMG-432 INSERT - DNMG-432)

G0 X20. Z20. P10

N1 T0101

G18 G95

G50 S3000

G97 S750 M03 P20

G96 S320 G110 P30

G0 X1.7283 Z5.2984 M8

G1 X1.5534 Z5.3469 F.014

X1.4052 Z5.2132

Z.22

X1.5

X1.6414 Z.2907 P40

G0 Z5.1828

X1.6001

G1 X1.4252 Z5.2313

X1.257 Z5.0796

Z.22

X1.4252

X1.5666 Z.2907 P50

G0 Z5.0491

X1.4519

G1 X1.277 Z5.0976

X1.1088 Z4.9459

Z.22

X1.277

X1.4184 Z.2907 P60

G0 Z4.9154

X1.3037

G1 X1.1288 Z4.9639

X.9606 Z4.8122

Z.22

X1.1288

X1.2702 Z.2907 P70

G0 Z4.7818

X1.1555

G1 X.9806 Z4.8302

X.8124 Z4.6785

Z.22

X.9806

X1.122 Z.2907 P80

G0 Z4.6481

X1.0073

G1 X.8324 Z4.6966

X.6642 Z4.5449

Z.22

X.8324

X.9738 Z.2907 P90

G0 Z4.5144

X.8591 P140

G1 X.6842 Z4.5629 F.005 P150

X.516 Z4.4112

Z.2788

G2 X.6335 Z.22 L.0587

G1 X.6842

X.8256 Z.2907 P160

M9

G0 X20. Z20.P170

M05

M01

G14

(LOWER TURRET)

(TOOL - 8 OFFSET - 8)

(DDJNR-164D - DNMG-432 LOWER INSERT - DNMG-432)

G0 X20. Z20. P10

N1 T0808

G18 G95

G50 S3000

G97 S750 M03 P20

G96 S320 G111(P30)

G0 X1.8001 Z5.2828 M8

G1 X1.6252 Z5.3313 F.014

X1.457 Z5.1796

Z.22

X1.5

X1.6414 Z.2907 P40

G0 X1.6519

Z5.1491

G1 X1.477 Z5.1976

X1.3088 Z5.0459

Z.22

X1.477

X1.6184 Z.2907 P50

G0 Z5.0154

X1.5037

G1 X1.3288 Z5.0639

X1.1606 Z4.9122

Z.22

X1.3288

X1.4702 Z.2907 P60

G0 Z4.8818

X1.3555

G1 X1.1806 Z4.9302

X1.0124 Z4.7785

Z.22

X1.1806

X1.322 Z.2907 P70

G0 Z4.7481

X1.2073

G1 X1.0324 Z4.7966

X.8642 Z4.6449

Z.22

X1.0324

X1.1738 Z.2907 P80

G0 Z4.6144

X1.0591

G1 X.8842 Z4.6629

X.716 Z4.5112

Z.2788

G2 X.8335 Z.22 L.0588

G1 X.8842

X1.0256 Z.2907 P90

M9

G0 X20. Z20. P100

M05

M01

(TOOL - 4 OFFSET - 4)

(OD FINISH LEFT - 35 DEG. INSERT - VNMG-431)

N2

G0 X20. Z20. P110

T0404

G18 G95

G50 S3000

G97 S750 M03 P120

G96 S320 G111 P130

G0 Z4.6748M8

X.9623 P140

G1 X.7891 Z4.7248 F.005 P150

X.496 Z4.471

Z.2944

G2 X.6647 Z.21 L.0843

G1 X1.5

X1.6414 Z.2807 P160

G0 X20. Z20.P175

M05

M01

G13

(UPPER TURRET)

(TOOL - 7 OFFSET - 7)

(DDJNL-164D - DNMG-432 INSERT - DNMG-432)

N2

G0 X20. Z20. P180

T0707

G18 G95

G50 S3000

G97 S750 M03P190

G96 S040 G111 P200

G0 X1.7283 Z3.6466 M8

G1 X1.5534 Z3.5981 F.007

X1.4052 Z3.7318

Z8.775

X1.5

X1.6414 Z8.7043 P210

G0 Z3.7622

X1.6001

G1 X1.4252 Z3.7137

X1.257 Z3.8654

Z8.775

X1.4252

X1.5666 Z8.7043 P220

G0 Z3.8959

X1.4519

G1 X1.277 Z3.8474

X1.1088 Z3.9991

Z8.775

X1.277

X1.4184 Z8.7043 P230

G0 Z4.0296

X1.3037

G1 X1.1288 Z3.9811

X.9606 Z4.1328

Z8.775

X1.1288

X1.2702 Z8.7043 P240

G0 Z4.1632

X1.1555

G1 X.9806 Z4.1148

X.8124 Z4.2665

Z8.775

X.9806

X1.122 Z8.7043 P250

G0 Z4.2969

X1.0073

G1 X.8324 Z4.2484

X.6642 Z4.4001

Z8.775

X.8324

X.9738 Z8.7043 P260

G0 Z4.4306

X.8591 P310

G1 X.6842 Z4.3821 F.005 P320

X.516 Z4.5338

Z8.7163

G3 X.6335 Z8.775 L.0587

G1 X.6842

X.8256 Z8.7043 P330

G0X1.650

M9

G0 X20. Z20.(P340)

M05(P340)

G14

(LOWER TURRET)

(TOOL - 2 OFFSET - 2)

(DDJNL-164D - DNMG-432 INSERT - DNMG-432)

N3

G0 X20. Z20. P180

T0202

G18 G95

G50 S3000

G97 S750 M03P190

G96 S040 G111 P200

G0 X1.8001 Z3.6622 M8

G1 X1.6252 Z3.6137 F.007

X1.457 Z3.7654

Z8.775

X1.5

X1.6414 Z8.7043 P210

G0 X1.6519

Z3.7959

G1 X1.477 Z3.7474

X1.3088 Z3.8991

Z8.775

X1.477

X1.6184 Z8.7043 P220

G0 Z3.9296

X1.5037

G1 X1.3288 Z3.8811

X1.1606 Z4.0328

Z8.775

X1.3288

X1.4702 Z8.7043 P230

G0 Z4.0632

X1.3555

G1 X1.1806 Z4.0148

X1.0124 Z4.1665

Z8.775

X1.1806

X1.322 Z8.7043 P240

G0 Z4.1969

X1.2073

G1 X1.0324 Z4.1484

X.8642 Z4.3001

Z8.775

X1.0324

X1.1738 Z8.7043 P250

G0 Z4.3306

X1.0591

G1 X.8842 Z4.2821

X.716 Z4.4338

Z8.7163

G3 X.8335 Z8.775 L.0588

G1 X.8842

X1.6256 Z8.7043 P260

M9

G0 X20. Z20. P270

M05

M01

(TOOL - 6 OFFSET - 6)

(OD FINISH LEFT - 35 DEG. LOWER INSERT - VNMG-431)

N4

G0 X20. Z20. P280

T0606

G18 G95

G50 S3000

G97 S750 M03 P290

G96 S045 G111 P300

G0 Z4.2702 M8

X.9623 P310

G1 X.7891 Z4.2202 F.005 P320

X.496 Z4.474

Z8.7006

G3 X.6647 Z8.785 L.0843

G1 X1.5

X1.6414 Z8.7143 P330

M9

G0 X20. Z20.P340

M05

M02

%


HTH

Link to comment
Share on other sites

LOL Late to the party again

 

quote:

Why so many synch codes?

It is an Old control so it needs lots of Sync codes

 

Below are 2 sets of Code for the same machine

 

In LAP3

 

NA001

N0022 MT=00101

N0023 M321

N0024 G97 S622 M41 M03 M08 P0020

N0025 G20 HP=4

N0026 TL=001001 BA=45 M603

N0027 G00 X128 Z4

N0028 G96 G110 S250 P0030

N0029 G85 N0030 D4 F0.7 U0.4 W0.2 P0040

N0030 G81

N0031 G00 X20

N0032 G01 Z0 G42 E0.7 P0010

N0033 X24 Z-2 P0020

N0034 Z-19 P0030

N0035 Z-25 P0040

N0036 X58 E1.05 P0050

N0037 Z-50 E0.7 P0060

N0038 X76 E1.05 P0070

N0039 Z-70 E0.7 P0080

N0040 X100 E1.05 P0090

N0041 G03 X110 Z-75 K-5 E0.7 P0100

N0042 G01 Z-78.284 P0110

N0043 G40

N0044 G80

N0045 G97 S622 P0050

N0046 G00 X1200

N0047 G20 HP=4

N0048 M09

N0049 P0070

N0050 G14

N0051 G140

(B=02S=< ROUGH: OD,T= 001001,V=250 ,F=0.7 , CW, CON>)

NB001

N0052 G97 S622 M41 M03 M08 P0020

N0053 G00 X128 Z4 T001001

N0054 G96 G110 S250 P0030

N0055 G85 N0056 D4 F0.7 U0.4 W0.2 P0040

N0056 G81

N0057 G00 X20

N0058 G01 Z0 G42 E0.7 P0010

N0059 X24 Z-2 P0020

N0060 Z-19 P0030

N0061 Z-25 P0040

N0062 X58 E1.05 P0050

N0063 Z-50 E0.7 P0060

N0064 X76 E1.05 P0070

N0065 Z-70 E0.7 P0080

N0066 X100 E1.05 P0090

N0067 G03 X110 Z-75 K-5 E0.7 P0100

N0068 G01 Z-78.284 P0110

N0069 G40

N0070 G80

N0071 G97 S622 P0050

N0072 G00 X1200

N0073 G20 HP=4

N0074 M05 M09 P0060

N0075 M01 P0080

N0076 G13

N0077 P0090

N0078 G14

N0079 P0090

N0080 G13

N0081 P0130

N0082 G14

N0083 P0130

N0084 M02

 

 

and LAP4

 

N0001 G13

N0002 G140

N0003 P0010

N0004 M216

N0005 G20 HP=4

N0006 G50 S2500

N0007 G14

N0008 G140

N0009 P0010

N0010 M216

N0011 G00 X800 Z400

N0012 G50 S2500

N0013 G13

N0014 G141

N0015 G14

N0016 G140

N0100 G13

N0101 G140

NA001

N0102 MT=00101

N0103 M321

N0104 VLMON[2]=10

N0105 G97 S696 M41 M04 P0020

N0106 G20 HP=4

N0107 TL=001001 BA=45 M603

N0108 G00 X128

N0109 Z5.4

N0110 G96 G110 S280 P0030

N0111 G85 NL001 D5 F0.35 M85 P0040

NL001 G83

N0112 G01 X20.4 Z0.2

N0113 X120

N0114 Z-76.2

N0115 G81

N0116 G00 X18.703 Z0.932 G42

N0117 G01 X24.4 Z-1.917 E0.35

N0118 Z-25.8

N0119 X58.1 E0.525

N0120 Z-49.8 E0.35

N0121 X76.2 E0.525

N0122 Z-69.8 E0.35

N0123 X100 E0.525

N0124 G03 X110.4 Z-75 K-5.2 E0.35

N0125 G01 Z-78

N0126 X122.4 E0.525

N0127 G40

N0128 G80

N0129 G00 X128

N0130 VLMON[2]=0

N0131 G97 S696 P0050

N0132 G20 HP=4

N0133 P0070

N0200 G14

N0201 G140

NB001

N0202 VLMON[1]=10

N0203 G97 S696 M41 M04 P0020

N0204 G00 Z6 T001001

N0205 X128

N0206 Z5.4

N0207 G96 G110 S280 P0030

N0208 G85 NL002 D5 F0.35 M85 P0040

NL002 G83

N0209 G01 X20.4 Z0.2

N0210 X120

N0211 Z-76.2

N0212 G81

N0213 G00 X18.703 Z0.932 G42

N0214 G01 X24.4 Z-1.917 E0.35

N0215 Z-25.8

N0216 X58.1 E0.525

N0217 Z-49.8 E0.35

N0218 X76.2 E0.525

N0219 Z-69.8 E0.35

N0220 X100 E0.525

N0221 G03 X110.4 Z-75 K-5.2 E0.35

N0222 G01 Z-78

N0223 X122.4 E0.525

N0224 G40

N0225 G80

N0226 G00 X128

N0227 VLMON[1]=0

N0228 G97 S696 P0050

N0229 Z6

N0230 X800

N0231 X800 Z400 T001000

N0232 M05 P0060

N0233 M01 P0080

N0234 G13

N0235 P0090

N0236 G14

N0237 P0090

N0238 G13

N0239 P0130

N0240 G14

N0241 P0130

N0242 M215

N0243 G13

N0244 G140

N0245 M215

N0246 G14

N0247 G140

N0248 M02

 

 

But to answer your question. The best and chepest solution for Supported twin turret turning on an OKUMA is to buy ADVANCED ONE TOUCH FOR PC from your local Okuma dealer. The cost will be the same as a custom Mastercam post.

Link to comment
Share on other sites

Actually, I have the full Okuma ADMAC Parts package with One touch IGF, OSP simulation and complete 3d machine models. It can do some awesome stuff.

I haven't really used the one touch IGF much. headscratch.gif

The problem i have with admac is that it takes me way to long to program parts with it start to finish. It seems that the amount of time allocated to programming a part these days keeps getting shorter and shorter. bs.gif

I can just do it way faster with mcam and manual edits if 4ax. Then a quick program check.

 

On the other hand, it does give you 100% guaranteed and fully verified code with all the "bells and whistles" specifically for your machine.

Link to comment
Share on other sites

quote:

Actually, I have the full Okuma ADMAC Parts package with One touch IGF, OSP simulation and complete 3d machine models. It can do some awesome stuff.


So you have the full suite, ADMAC-parts + 3D Virtual monitor Do you have IGF-XL or Advanced one touch?

 

ADMAC parts can open the IGF and PDA files as well as create AAT files. If your machine has CAS then 3DVM can be linked directly to that

Link to comment
Share on other sites

The only "problem" with IGF is that it makes some ugly code for 2-turret machines; certainly will run but the back-and-forth in the programs makes it hard to follow for dunces like me.

 

We have [13] Okuma lathes now, so I am catching you...I am even if you count our two Okuma & Howas...

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...