M06 position in post process

M06 position in post process

elias_isaksenCQ4UB
Explorer Explorer
105 Views
1 Reply
Message 1 of 2

M06 position in post process

elias_isaksenCQ4UB
Explorer
Explorer

Hi,

I'm trying to change the position of the M06 code in Fanuc post process, but i can't get it to work

 

This is how it posts now,

(2D-BORE)
N30 T2 M06
N35 S5000 M03
N40 G17 G90 G94
 
I want it like this:
(2D-BORE)
N30 T2
N31 M06
N35 S5000 M03
N40 G17 G90 G94
 
I'm new to fusion and changing post process so all help is appreciated.
0 Likes
106 Views
1 Reply
Reply (1)
Message 2 of 2

a.laasW8M6T
Mentor
Mentor

Hi

 

Find this section of code:

 case COMMAND_LOAD_TOOL:
    writeToolBlock("T" + toolFormat.format(tool.number), mFormat.format(6));
    writeComment(tool.comment);

    var preloadTool = getNextTool(tool.number != getFirstTool().number);
    if (getProperty("preloadTool") && preloadTool) {
      writeBlock("T" + toolFormat.format(preloadTool.number)); // preload next/first tool
    }

 

and change to this:

case COMMAND_LOAD_TOOL:
    writeToolBlock("T" + toolFormat.format(tool.number));
    writeBlock(mFormat.format(6));
    writeComment(tool.comment);

    var preloadTool = getNextTool(tool.number != getFirstTool().number);
    if (getProperty("preloadTool") && preloadTool) {
      writeBlock("T" + toolFormat.format(preloadTool.number)); // preload next/first tool
    }