I am trying to modify a post processor for a bed mill with a universal head.
the machine can work in Z axis, Y axis, and X axis in both + and - directions.
the machine is a butler with a fanuc series 6 control.
i have a working post for the Z axis. its a modified 4 axis mill post and works great.
however when programing the Y axis i use the back T/C Plane in mastercam, drawing the part in mastercam exactly how it sits on the machine.
i have copied and edited my Z post to output all Z movements as Y movements,
and vise versa to suit my machine.
the problem is all my X axis co-ordinates are inverted because im using the back T/C Plane.
because X is inverted, so is my I for rad centre.
so far i have edited my post to output all X and I values with a + sign.
then changing (X+ to X-)(X-- to X) and same for I.
im desperate to find a way to get my post to swith + for - so i dont have to edit every program.
ive tried using:
xabs = xabs * -1 # <------Invert axis output
on all rapid, feed, and circular
movements but got funny results.
any ideas?