I'm hoping someone can help, I have modified a post for our DAHLIH DMX 320 5 Axis Mill with Fanuc OiMf control, but anything that is programmed in the flat plane (or any plane that is on X0 Y0 is outputted at C-90. rather than C0. , can anyone point me in the right direction to fix this? any other plane outputs correctly.
It is also outputting a tool preselect of T0 after the last tool is called, I cant find out how to change this to output the first tool?
Hi,
It seems your Post is always outputting C as C[WAC-90] and since WAC is 0 on the XY Plane it will always output as -90 with that code.
You can do something similar to the following code
$IF WVF = 0 '' XY Plane.
G0 C[WAC]
$ELSE
G0 C[WAC-90] '' All Other Planes.
$ENDIF
Just be careful where you put this in the Post as you can't place an $IF statement inside another $IF statment in these old stylle non VBA Posts.
Use T[T(1)] to call first tool used, the following code is what I use to place the first tool used back in the spindle at the end of the Heidenhain ISO program when more than one tool is used.