What's new
What's new

LAP on OSP5020

Wade C

Stainless
Joined
Jul 21, 2004
Location
Wiggins CO. USA
Im working on getting the new to me LNC8 up and running and am trying to learn and tackle the control and the use of the LAP programing while I wait for things to come in (tool blocks, holders, etc..). Its quite different than what I am used to (OSP3000) and Im ending up with some questions that Im hoping someone here could enlighten me on...

I threw together what I think is correct from the book example, and pasted it below. (used an old program from the 3000 as the starting point) The questions I have are...

1.) I like to use line numbers - in using a line number in the same line as the "name" of the contour - N307 SHP01 G81 - the book does not show a line number on that line, despite line numbers after it. So Im trying to determine if I should not use a line number on that line, or just use the line number as the name and call that in the G85 line? I see some examples in the book where they call the roughing with the "name" but call the finishing with a line number. And of course no explanation why. Or - maybe I should treat it a bit like a sub-routine? And through that (the contour defining portion) up at the top of the program prior to the main program - where not having a line number would be less drama for me? Many times Ill have two or more LAP cycles in one program and could see having both line numbers and names being helpful - as I long hand all of my programs - no CAM.

2.) I wrote the program as the book showed (omitting the use of G84) including tool change location. I generally do not use a different tool for roughing and finish... and I usually use the same tool prior to the LAP cycle, so its already called up. So to avoid the wasted movements both prior to starting the roughing, as well as for the finish pass, would I just omit the tool change lines (Xt,Zt if youre thinking in terms of how the book lists it)?

3.) Does it look like I did it right? Or should I look at formatting things differently. The reason I ask that, is that there are some programs that were in the machine when I got it, that used LAP, but only roughing, they never called a finish pass, but they are formatted completely different than the book/my attempt (called the G85 first, THEN specified the contour with the G81). And that made me think maybe there is a different/better way to do it?

4.) If I am completely off base with what I have below, Id love to see any working examples anyone might be willing to share.

Code:
$FILENAME-58.MIN%
N300 O58
N300 G97 G95 M156
N301 G50 S3500 M83
N302 G0 X20.0 Z20.0 S3000 M3
N303 T060606 F.002 (VCGT330.5)
N304 G0 X1.25 Z3.802 M8
N305 G1 X-.02
N306 G0 X1.125 Z3.85
N307 SHP01 G81
N308 G0 X.35 Z3.83
N309 G1 G42 Z3.8
N310 G1 X.4640
N311 G3 X.4706 Z3.8 I.0033 K-.3305
... 
N324 G1 X.624 Z2.14
N325 G40 Z2.0550
N326 G80
N327 G0 X20. Z10.
N328 X1.125 Z3.85 S3000 T060606 M8
N329 G85 SHP01 D.12 U.03 W0 F.003
N330 G0 X20. Z10.
N331 T060606 S2000 F.002 M8
N332 G87 SHP01
N333 G0 X1.2 M9
N334 X20. Z10.
... M2
%

Thanks
Wade
 
I think you need to carefully reread the manual. Just a question, why the hell do you NEED line numbers? OSP assigns each line a number anyway that you can use in Sequence Restart. Just more code to look at than you need.
 
So, you are saying I do not have it correct - Okay - Ill just wait til I get stuff in and can get things put back together and try what I have, see where the errors occur, and chase alarm codes from the program and see if that points me in a direction.

Where did I say I "NEED" line numbers? I said I like them... and as I have not ran a single thing on this machine yet, I had no clue the control assigns numbers for sequence restarts etc...

Now, why line numbers are something I like? I hand write my programs, I have two machines, a 1980 LC10 with OSP3000 and this new to me one. The only two CNC lathes Ive ever worked with and yet to do anything with the LNC-8. Both machines will be running the same parts at the same time when I get the LNC-8 up and going. Since the programs will be similar but different, it seemed logical to have line numbers for working with converting the 3000 programs over to the 5020. And, with the OSP3000 on the LC-10... it is a one line LED display for the code. And that line, is ONE WORD. So a line that says N307 G0 X10000 Z30000 M3 M3 [carriage return]
Comes across the display - like this:
N307 (then press the next word key)
G0 (then press the next word key)
X10000 (then press the next word key)
Z30000 (then press the next word key)
M8 (then press the next word key)
M3 (then press the next word key)
* [symbol for carriage return]

And in a program where you call anything more than once (G0 G1 X10000 etc)... its not easy to know which line you ended up on if you search/jump to a word that may or may not be in the program more than once. So, with line numbers, I can follow along with the control at the Line Number display, then note the line where the error is or change needs to be made, find that in the text file I sent over, figure out the fix/change, search that N### in the control, key over to the correct word, and make the change. I see that as an advantage of line numbers. And now, with a new to me machine, where I have never seen the screen, while its running a program in auto mode, I defaulted to thinking line numbers would be handy. I prefer line numbers on my Fadal 88-HS and Mix Wire so I dont see why I wouldnt want them here too... Maybe its because I dont have a CAM program? Dunno. But I like line numbers, and I have never ran out of memory with a program, and I guess my eyes dont see N307 or N1024 as distracting... so Ive not found a down side of having line numbers for the work I do - sorry it differs from your preferences and expectations.

To each their own I guess.

Wade
 
this is typical wording we use. no tool change, so the finish (G87) immediately follows
our rough lap. we use a lot of common variables, but you can ignore them & replace with
coordinates. I believe your lap "name" (block number) still needs to start with a N.
N320G00X2.575 (start approach)
N330S1370
N340G85 NTURN F.015D.2U.1W.005 (roughing lap)
NTURN G81
N350G00X=XRAD (CHFR .1 X 10)
N360G01G42Z=ZL+.002F.02
N365G03X=XCFR Z=ZL-ZRAD L.03F.007
N370G01X2.49A=180-ANGO F.01
N380X=2.49+V7 Z=ZEND F.018
N390X2.6F.02
N400G40
N410G80
N420G87 NTURN (TURN) (finish cycle)
N440G00X50Z50

hope this helps
 
Thanks!
Your program is more like what I saw in the machine (less the finish pass)... the G85 line, then the G81, then G87

While the book shows G81, then G85 then G87.

Ill do some tinkering, and make up a program formatted like your example.
Ill keep in mind the lap name starting with an "N" - and see if I cant verify that somewhere in the text in the manual. (havent found it yet but will keep an eye out)

Thanks again!!!
Wade
 
I'm not 100% sure with OSP5020, but with newer OSP's it doesn't matter where you place you "subroutine" within (programstart)->(m02,m30)

You could also place it in the beginning of your program:

N123 G81 (DIA100 BOLT)
G00 X0 Z5 (START OF CONTOUR)
G01 G42 Z0 F0.1 (FINISHING FEEDRATE WITH RADIES COMPENSATION(G42))
G75 X50 L1 (DO A STRAIGHT LINE UP TO DIAMETER 50 WITH 1MM CHAMFER)
G76 Z-50 L5 ( DO A STRAIGHT LINE AND MAKE A RADIUS 5 AT THE END OF PATH)
X100
G40 X102 (END RADIUS COMPENSATION WITH A MOTION X+)
G80 (END OF CYCLE
(SOME PROGRAMCODE)
G85 N123 D3 U.2 W.1 F.35 ( DO A ROUGHING CYCLE ON PATH N123 WITH 0.35 FEEDRATE)(LEAVE 0.4 ON DIA AND 0.1 ON PLANE)
SOME MORE PROGRAMCODE)
G87 N123 (DO A FINISHING CYCLE ON SUBROUTINE/PATH N123 WITH 0.1 FEEDRATE
M30 (END OF TAPE :))

This path could also be at the end of your program
()
N123 G81 or G82
G80
()
M30
 
Thanks!

Ill sort through things here hopefully in a few days (after I get various things installed and stuff put back together after a major cleaning session) and see if it does matter or not, and how that all works. Im excited, but nervous as hell... I remember learning the OSP3000 and the things it would do that I didnt know to look for... just worried about those kinds of things :D But Im a worry wart too...

Thanks
Wade
 








 
Back
Top