I really hope this doesnt crash my "Secret Identity" on this forum.......:devious:
I have a similair thread on a programming issue with the okuma LC40 Twin-turret lathe.
Here is a variable program (very, very messy, i didnt write it but a bloke just before my time did) of a simple rough face/od, drill, rough bore, finish bore and finish face/od sequence:
$CBUSH.MIN%
G13
(U-DRILL GOES 7MM PAST HALF OF FINISHED LENGTH)
N0600 V1=120.0 (STOCK DIA V1)
N0601 V7=259.0 (FIN LENTH OF PART V7)
N0602 V3=119.30 (FIN OD V3)
N0603 V5=099.00 (STEP DIA V5)
N0604 V8=07.00 (CHAMPFER SIZE V8)
N0605 V6=32.00 (STEP LENTH V6) V9=[V7/2]
N0606 V2=50.0 (U-DRILL DIA V2)
N0607 V4=66.00 (FINISH BORE V4)
N0608
N2 G0 X800 Z350 P10
N3 G50 S750
NAT1
N99 G0 G97 X=V1+5 Z32 S400 M42 T010101 M3 M8 P11
N100 Z3
N101 G96 G110 S180
N102 G85 NLAP1 D1 F.3 W.2
NLAP1 G82
N103 G0 X=V1+5 Z0
N104 G1 X-2 F.2
N105 G80
N106 G0 X=V1+2 Z3
N107 G85 NLAP2 D6 F.28 U.8 W.1
NLAP2 G81
N108 G0 X=[V5-[V8*2]] Z3
N109 G01 G42 Z0 F.25
N110 X=V5 A135
N111 Z=-V6
N112 X=V3-2
N113 X=V3 A135
N114 Z=-[V9+2]
N115 G02 X=V3+4 Z=-[V9+4] I2
N116 G1 X=V1+5
N117 G40
N118 G80
N119 G97 G0 X800 Z350 S400 T0100 M87
N120 M1
G14
N2 G0 X800 Z350 P10
NBT1
N200 G0 G97 X1. Z32 S420 M43 T010101 M3 M8 P20
N201 Z5
N202 G1 Z=-[V9+7] F.1
G1 X0.Z=-[V9+5]
N203 G0 Z30
N204 X800 Z350 T0100
N205 M1
NBT5
N300 G0 X=V2 Z32 T050505 M3 M8 M43 S800
N301 Z5
N302 G96 G111 S140
N303 G85 NLAP3 D5 F.250 U.8 W.1
NLAP3 G81
N304 G0 X=[V4+2] Z3
N305 G1 Z0 G41 F.28
N306 X=V4 A225
N307 Z=-[V9+2]
N308(G3 X=[V4-4] Z=-[V9+4] I-2.)
N309 G1 X=[V2-1]
N310 G40
N311 G80
NBT05
G96 S220
N313 G87 NLAP3
N314 G0 Z30
N315 G97 X800 Z350 T0500 S400 M5 M9
N316 M1
N500 G0 X900 Z750 P99
N390 G13
NAT03
N400 G0 X=[V1+3] Z32 T030303 M3 M8 M42 P40
N401 Z5
N402 G96 G110 S200
N403 G87 NLAP2
N404 G0 Z0
N405 X=V5
N406 G1 X=V4-2 F.25
N405 G0 X800 Z350 T0300 M5 M9 G97 S400 M86
N500 G0 X900 Z750 P99
N47 M02
%
Can the Twin-turret Gurus, please break the program apart (where the "P" codes G13 (A Turret) and G14 (B Turret) are concerned please, and just explain what is going on.
I'm gonna take a piccy of the control tomorrow and i'll be asking a couple more questions on the operation of both turrets.
Thanks Again Guys.