Modifications in Fanuc Turning Post

Modifications in Fanuc Turning Post

Anonymous
Not applicable
388 Views
2 Replies
Message 1 of 3

Modifications in Fanuc Turning Post

Anonymous
Not applicable

Hi,

 

I need some modifications to be made to the Generic Fanuc Turning post.

 

1.) The Tool Call. (eg. T1010) i need it to be posted in every operation even if the same tool is used. I already know the Manual NC method, but i need to put this in the post because this is what i want by default.

 

2.) 

Instead of Coolant on just after Tool Index. I need the M7 code to be on just before the Linear Interpolation (G1) line.

 

N10 (Face2)
T0202
(NOSE RADIUS=0.4)
M7
G95
G92 S5000
G96 S45 M3
G0 X75. Z12.
G0 Z7.414 (...I want M7 here)
G1 X57.828 F0.2
X55. Z6.

 

also i have attached my modified fanuc turning cps file where i have put Coolant OFF (M9) for every operation in onSectionEnd(). I tried shifting M7 to the location i want but then it only ouputs M7 if there is a change of Tool and since i have put M9 after every operation. The Coolant doesn't start when same tool is used in the next operation.

The Following is the Code i tried to shift M7 location.

 

if (insertToolCall) {
gMotionModal.reset();

if (properties.type == "A") {
writeBlock(
gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y), zOutput.format(initialPosition.z)
);
} else {
writeBlock(
gAbsIncModal.format(90),
gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y), zOutput.format(initialPosition.z)
);
}
// set coolant after we have positioned at Z
setCoolant(tool.coolant);
gMotionModal.reset();
}

if (gotPartCatcher &&
(currentSection.partCatcher ||
(typeof currentSection.partCatcher == "undefined") &&
hasParameter("operation-strategy") &&
(getParameter("operation-strategy") == "turningPart"))) {
// activate part catcher here
}

 

 

Also note that my Javascript coding knowledge is very limited. Whatever editing i have done in the post is based on my understanding of the answers i found on other posts.

0 Likes
389 Views
2 Replies
Replies (2)
Message 2 of 3

Laurens-3DTechDraw
Mentor
Mentor

The fix for the coolant is quite easy

 

Move it down just a little.

if (insertToolCall) {
gMotionModal.reset();

if (properties.type == "A") {
writeBlock(
gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y), zOutput.format(initialPosition.z)
);
} else {
writeBlock(
gAbsIncModal.format(90),
gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y), zOutput.format(initialPosition.z)
);
}

gMotionModal.reset();
}

// set coolant after we have positioned at Z
setCoolant(tool.coolant);

if (gotPartCatcher &&
(currentSection.partCatcher ||
(typeof currentSection.partCatcher == "undefined") &&
hasParameter("operation-strategy") &&
(getParameter("operation-strategy") == "turningPart"))) {
// activate part catcher here
}

Laurens Wijnschenk
3DTechDraw

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


Message 3 of 3

Anonymous
Not applicable

Perfect! Thanks.

 

Now please someone help me with Force Tool Change in each operation.

0 Likes