In our shop, we use Sinumerik machines mostly. After post processing we change the feeds to parameters that can be set by the operator. To accomplish this, the feeds in the program are renamed to parameters like F500 -> F=R21, etc.
Is there any way to get this done in the post processor itself ? I tried putting a script as follows :
function ReplaceFeeds()
{
var res = "";
String.replace("F500","F=R21");
String.replace("F1000","F=R22");
String.replace("F3000","F=R24");
res += StandardResponse();
return res;
}
and calling this script after post processing in the Script properties. I had an intuition that it is important to execute this script at the end of processing, maybe I am wrong. I don't know, any help would be greatly appreciated!
Thanks a lot!
Solved! Go to Solution.
You could build a filter into the post to output the parameter using if/else logic rather than a script.
You'll need to build logic to catch whatever parameters you wish to output.
Example: F500 -> F=R21
If%p(Feed rate)%==500
F=R21
Else if%p(Feed rate)%==750
F=R22
If these are constants, F500 is always R21, this would be very easy to setup. If the numbers need to be sequential, it would be a bit more work to ensure every time the same feed rate is called, the correct assignment is used. But still easier than scripting, in my opinion.
Jonathan Artiss
Senior Applications Engineer | DSI
Thanks for the reply, I guess this snippet should be called inside the feed block right ?
1. Create user parameters FQ, FR
2. Create script:
3. Modify Move Linear command
It is a good idea to type the following for the "Toolpath Start" or "Program Start" command:
To find all occurrences of "FeedRate" do this:
I only use the built-in help, but you can also study the generic postprocessors provided by Autodesk.
These are typically found here:
c:\Users\Public\Documents\Autodesk\Manufacturing Post Processor Utility 2021\Generic\
You may want to look at "c: \ Program Files \ Autodesk \ PowerMill 2021 \ lib \ help \ cldata \ cldata.htm" once, although it won't be of much practical use, but at least you'll see what's in the "engine room."
Can't find what you're looking for? Ask the community or share your knowledge.