Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

post process mod - invert X direction on live tooling/radial

1 REPLY 1
Reply
Message 1 of 2
programming2C78B
61 Views, 1 Reply

post process mod - invert X direction on live tooling/radial

setting up our CL1 lathe and it requires the X commands to be negative since its on the "far" side of the part. How can I get these inverted in the post? No changes or flips in the Job Setup are reflecting in the produced code.

I need X-2.5, X-1.2, etc 

programming2C78B_0-1707935840351.png

 

Please click "Accept Solution" if what I wrote solved your issue!
1 REPLY 1
Message 2 of 2

I use this function in my Okuma post for turning in the negative X direction:

 

/** Invert X axis for turning negative. */
function invertAxes(activate) {
  if (activate) {
	xFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:-2}); // diameter mode
	xOutput = createVariable({prefix:"X"}, xFormat);
    iFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:-1});
    iOutput = createReferenceVariable({prefix:"I"}, iFormat);		
  } else {
    xFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:2}); // diameter mode
	xOutput = createVariable({prefix:"X"}, xFormat);
    iFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:1});
    iOutput = createReferenceVariable({prefix:"I"}, iFormat);
  }
}

 

invertAxes(true) to activate, invertAxes(false) to deactivate.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report