Edit post to change Z direction for Swiss

Edit post to change Z direction for Swiss

smurphyBTXGS
Explorer Explorer
325 Views
2 Replies
Message 1 of 3

Edit post to change Z direction for Swiss

smurphyBTXGS
Explorer
Explorer

Im trying to find in the post where to set the direction for the Z axis. I've tried playing around with the machine configuration by changing the Z vector in the kinematics but it doesn't appear to change anything when I post the program.

 

We have swiss automatic lathes and the Z cuts in the positive direction. I don't mind having multiple posts based on what configuration I need for the machines. I've had a lot of success editing posts for Mastercam but I cant find the lines of code I need to change in the Fusion post.

 

The post I'm using is the DMG Mori NLX Mill/Turn

0 Likes
326 Views
2 Replies
Replies (2)
Message 2 of 3

CNC_Lee
Collaborator
Collaborator

@smurphyBTXGS 

If the generic DMG Mori NLX Mill/Turn post is not providing the required output, I offer post processor development services and happy to work out a solution for your machine! Please message me if further assistance is needed.

If my post answers your question, please use Accept as Solution.

CNC Lee
Autodesk CAM Post Processor Expert
0 Likes
Message 3 of 3

purpc_cardoso
Explorer
Explorer
var xyzInvertedFormat = createFormat({decimals:(unit == MM ? 3 : 4), scale:-1});

Copy this line to your "Var" zone in your post processor.

 

var zOutput = createVariable({onchange:function () {retracted = false;}, prefix:"Z"}, xyzInvertedFormat);

on the line you see "var ZOutput" replace by xyzInvertedFormat

 

example:

purpc_cardoso_0-1779483227970.png

All Z will be inverted, but you  also need to invert the K for g2/g3
var "kOutput = createOutputVariable({prefix:"K", control:CONTROL_FORCE}, xyzInvertedFormat);"

 

0 Likes