Modifications in Fanuc Turning Post
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
