HSM Post Processor Forum

HSM Post Processor Forum

Reply
Highlighted
Post 1 of 3
Accepted Solution

Editing fanuc mill-turn post processor

90 Views, 2 Replies
03-15-2017 11:07 PM

Hi,

 

Can someone here help me to change fanuc mill-turn post processor:

  1. tool call from T101 become T0101
  2. Polar coordinate interpolation G112 become G12.1

Thanks in advance.

1. Search in your post for

writeBlock("T" + + toolFormat.format(tool.number) + toolFormat.format(compensationOffset));

and change it to:

writeBlock("T" + toolFormat.format(tool.number) + toolFormat.format(compensationOffset));

2. search for:

case "POLAR_INTERPOLATION_ON":
return 112;
break;

change it to:

 case "POLAR_INTERPOLATION_ON":
return 12.1;
break;

 

search for:

var gPolarModal = createModal({}, gFormat); // G112, G113

change it to:

var gPolarModal = createModal({}, g1Format); // G112, G113

 

add somewhere at the beginning of your post this:

var g1Format = createFormat({prefix:"G",decimals:1});

 

cheers 

Re: Editing fanuc mill-turn post processor

03-16-2017 02:58 AM in reply to: Reyhan.WIDODO

1. Search in your post for

writeBlock("T" + + toolFormat.format(tool.number) + toolFormat.format(compensationOffset));

and change it to:

writeBlock("T" + toolFormat.format(tool.number) + toolFormat.format(compensationOffset));

2. search for:

case "POLAR_INTERPOLATION_ON": 
    return 112;
    break;

change it to:

 case "POLAR_INTERPOLATION_ON": 
    return 12.1;
    break;

 

search for:

var gPolarModal = createModal({}, gFormat); // G112, G113

change it to:

var gPolarModal = createModal({}, g1Format); // G112, G113

 

add somewhere at the beginning of your post this:

var g1Format = createFormat({prefix:"G",decimals:1});

 

cheers 



Ivan Stanojevic
3D Solutions Technology


Post 3 of 3

Re: Editing fanuc mill-turn post processor

03-16-2017 06:42 PM in reply to: ivan.stanojevic

That's work!! Thanks ivan for sharing your idea.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post