Feedrate Units Adjustment

Feedrate Units Adjustment

Anonymous
Not applicable
1,762 Views
6 Replies
Message 1 of 7

Feedrate Units Adjustment

Anonymous
Not applicable

So I am currently transitioning from toolpathing with AlphaCam to Inventor HSM and I am having some issues. The problem is that the feedrates output by the alphcam post appear to be in units of in/sec as opposed to in/min, but the feedrates stored in the tool library are certainly in in/min so the post is apparently converting the numbers. Is there a way to get similar performance out of the HSM post by modifying the code? As it stands the gcode from HSM has feedrates 60 times the feedrate coming from alphacam and I'd prefer to not do the conversion by hand.

 

I'm using the MultiCam ISO post.

0 Likes
Accepted solutions (2)
1,763 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

So I figured out what to do, but I'm still wondering if there's anything else I should do to have a more complete solution.

I changed a line "var f = feedOutput.format(feed/60);" in the "onLinear" function adding the "/60" to the input. My worry is that this is not the only time a feedrate is set, but I cannot find anywhere else that a similar function is being used, e.g. in the "onCircular" function there is a "feed" parameter but I don't see that parameter used anywhere within the function. Thoughts?

0 Likes
Message 3 of 7

Anonymous
Not applicable
Accepted solution

So I've finished the adjustments and everything appears to be working correctly. The easiest and most clear solution I found is to add the line "feed = feed/60;" to any function that takes in "feed" as an argument.

0 Likes
Message 4 of 7

Laurens-3DTechDraw
Mentor
Mentor
Accepted solution

Hi @Anonymous

 

I think an easier and prettier solution is tho scale all the feed output in one go.

To do that change this line:

var feedFormat = createFormat({decimals:(unit == MM ? 1 : 2)});

To:

var feedFormat = createFormat({decimals:(unit == MM ? 1 : 2), scale:(1/60)});

That should divide all the feed output by 60.

 

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
René for Legend.


0 Likes
Message 5 of 7

Anonymous
Not applicable

Yes I agree 100%! I did skim through the post processor manual but I didn't know that was an option. Thanks!

 

Also, how did you make those code blocks?

0 Likes
Message 6 of 7

Laurens-3DTechDraw
Mentor
Mentor

 

When replying online there is a </> button.

That allows you to add code blocks.

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
René for Legend.


0 Likes
Message 7 of 7

Anonymous
Not applicable

Hi, 

I've been trying to add those lines to my post processor, but the federate remains way too high since fusion 360 is in in/min and milticam in in/sec. 

Does anybody have any idea why it wouldn't work ? 

Thank you !

0 Likes