your OKK code in blue
only needs the modification in red to run on Okuma ( method of end cycle required )( like the Fanucs use M98/M99 ) G15H12
M120
M50
G0G90B178.
G0G90X-5.975Y8.870S1800M03
G56H12Z9.1T13
G81X-5.975Y8.870Z8.12R9.1F12. M54
G80
M5
There are 3 modes of return after a "drill cycle" M52 ( return to initial level )( see example below ) M53 ( return to G71 point) ( G71 Zvalue must be stated before cycle ) M54 ( return to R plane )
G15H12
M120
M50
G0G90B178.
G0G90X-5.975Y8.870S1800M03
G56H12Z20.
G71 Z10.5
G81X-5.975Y8.870Z8.12R9.1F12. M52 ( returns to Z20.)
X-2. Y-2. M53 ( returns to Z10.5)
X-1 Y-1. M54 ( returns to Z9.1)
X0. Y0. P5. M53 ( 5 sec.dwell added + retract to Z10.5 at end )
X1. Y1. Z8.0 P0 M52 ( new drill depth + dwell cancelled + retract to Z20 at end )
X2. Y2. Z7.5 R9.5 M54 (new depth + new retract + retract to Z9.5 at end )
G80 ( Use G0 if you don't want the spindle to stop )( G0 also cancels the cycle)
M5
...
M30
remember, each address is modal until cancelled or overwritten by a new value
my example will run on an Okuma as is. |