There was some discussion about horizontal programming and rotation macros in this thread. http://www.emasterca...ndpost&p=737320 I shared my Fanuc offset rotation macro and said I would share Okuma when I finished it. So here it is.   OROT (PW = WORK OFFSET TO BE USED FOR CALC) (PH = NEW WORK OFFSET NUMBER) (PB = INDEX AMOUNT) XMPS=0 (MACHINE POS X ROTATION) ZMPS=-9.9444 (MACHINE POS Z ROTATION) SOFF=PW (W) FOFF=PH INDX=PB VZOFB[FOFF]=VZOFB[sOFF] VZOFY[FOFF]=VZOFY[sOFF] CXOF=V
    • Like
    7