Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

output feedrate in a section

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
2456 Views, 7 Replies

output feedrate in a section

Does anyone have an example of getting Feedrate
early in a section?

I tried something like

var F = cycle.feedrate;    
write(feedOutput.format(F));

also
var F = getMaximumFeedrate();
write (feedOutput.format(F);

the answer is
F = currentSection.getMaximumFeedrate(); // need to handle as a object.method

Hope this helps someone else...
7 REPLIES 7
Message 2 of 8
fonsecr
in reply to: Anonymous

Not sure what you are actually trying to do but you would likely often want to get a particular feedrate and not just the minimum or maximum feedrate.

You can check out the parametric feed feature. See "useFeedQ" for the generic Heidenhain post. This shows how to get the feedrate in use before the corresponding toolpath is processed.

René Fonseca
Software Architect

Message 3 of 8
Anonymous
in reply to: Anonymous

Rene,

I am most impressed with your monitoring of the
Forum. I am getting more impressed with HSMWorks
software pretty much on the hour.

I will try to go through the mentioned resource.

Actually I was trying to pull various feedrates out
to use in the script. The one I mentioned was the
only one that worked so far. My specific one was
the Down Feed Rate. Is this itemized out somehwere?

If I purchase the software does it come with a ready
to go Hurco VM2 post for 3D or will I have to keep
modifying as I have been? We have the ISNC option
on the unit.

thank you for the excellent service...
Adam
Message 4 of 8
fonsecr
in reply to: Anonymous

The generic HURCO post has an option to switch between ISO NC mode and Basic mode. The generic posts might work out of the box but often further customization can be required. The reseller would normally be able to provide you with the desired post.

René Fonseca
Software Architect

Message 5 of 8
fonsecr
in reply to: Anonymous

One thing to note is that all parameters in the user interface are accessible from the post processor.

This means that you can get any feedrate you would like to use in the post.

Here is an example:
http://forum.hsmworks.com/index.php?topic=53.msg156#msg156

The primary cutting feed can be accessed using the getParameter("operation:tool_feedCutting"). You can see all parameters available simply be using the "dump.cps" post. This will output a text file listing all information transferred to the post processor.

René Fonseca
Software Architect

Message 6 of 8
Anonymous
in reply to: Anonymous

Did the dump.cps and looked at output.

  F = getParameter("operation:tool_feedPlunge");
  writeBlock(feedOutput.format(F));

getParameter() works pretty nice.

How do you pull out various pieces of different
operations. Is there a "cycle ID" that allows you
to know what the difference is between
feedcutting,feedEntry,feedRamp,feedPlunge,feedRetract
by the Cycle?

Didn't quite understand the Q thing yet but I need to
read the posts some more.

thanks for all the help, its working

Message 7 of 8
fonsecr
in reply to: Anonymous

You can scan through all operations (called sections in the post processor) and access all the parameters. Check out the Section class in the post processor manual included with the installation.

Code could look something like this:

var mySection = getSection(mySectionIndex);
if (mySection.hasParameter("myparam")) {
  var value = mySection.getParameter("myparam");
  // use it here
}


You can differentiate the operation strategies using the parameter called "operation-strategy".

René Fonseca
Software Architect

Message 8 of 8
4nonCa00D
in reply to: Anonymous

This helped me a lot, thanks!

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

Post to forums  

Autodesk Design & Make Report