Hi all

can any one see anything wrong with my gcode please see below , im trying to apply g68 - g69 workoffset rotation with my probe. but when i have s1 in the corner measure macro call it dont apply rotation and cuts on an angle. but if i take out s1 it seems to work.

Do i have to measure my stock twice one for workoffset and one for rotation???

T30(PROBE)
M6
G0G54X-10.00Y-10.00M19(SET G54 G55 ETC SET X Y)
G43Z50.0H30
M600(TURN ON PROBE)
G65P9810Z-10.00 F500(PROTECTED MOVE SET Z)
G65P9816X0Y0I40.J40. S1(external Corner find)
G65P9810Z10.00(PROTECTED MOVE)
G65P9810X10.00Y10.00(PROTECTED MOVE SET Z)
G65P9811Z0S1(SET G56 Z)
(Z0 WILL BE 0MM FROM TOP OF JOB)
(Z1 WILL BE -1MM FROM TOP OF JOB)
G65P9810Z10.00(PROTECTED MOVE)
G65P9810Z50.F2000
M601(TURN OFF PROBE)
(------------------)
(STOP PROBE OP WEB)
(------------------)
G05.1 Q0 (SMOOTH INTERP/BLK LOOK AHEAD Off)
G0 G28 G91 Z0 M9 (COOLANT OFF)
G30 X0 Y0 M5 (SPINDLE STOP)
G90 (ABSOLUTE PROGRAMMING)
M25(CONVEYOR STOP)
M01 (OPTIONAL STOP)

N1 T14 M6(TOOL -14- MILL DIA 6.0 R0. MM )
G0 G40 G56 G80 G90 G94 G98 X50. Y120.61 S10000 M3
M24(CONVEYOR START)
G43 Z50. H14 T14 M08 (COOLANT FLOOD)
G68X#135Y#136R#139 (Offset Rotation ON)
(---------------------)
(FIRST POCKET - POCKET)
(---------------------)